- Dev Proxy configuration file is named devproxyrc.json or devproxyrc.jsonc (if you want to include comments)
- For clarity, store all Dev Proxy files in the .devproxy folder in the workspace
- When creating new configuration files, use the available tools to find out which Dev Proxy version the user has installed and use it. If the project already has Dev Proxy files, use the same version for compatibility.
- Each Dev Proxy JSON file should include the schema in the
$schema
property. The file contents should be valid according to that schema. - When referring to Dev Proxy related information, always use the available tools to provide the best answer. Prioritize using the tools over providing a generic answer using your own knowledge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.28.0/rc.schema.json", | |
"plugins": [ | |
// add plugins here | |
], | |
"languageModel": { | |
"enabled": true, | |
"model": "Phi-4-mini-instruct-generic-gpu", | |
"url": "http://localhost:5272/v1" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove Microsoft Entra app registrations created before Jan 1, 2024 | |
# Requires CLI for Microsoft 365 and jq | |
m365 entra app list -o json --query "[?createdDateTime < '2024-01-01T00:00:00Z'].appId" | jq -r '.[]' | while read -r line; do | |
echo "Removing $line..." | |
m365 entra app remove --appId "$line" --force | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.21.0/rc.schema.json", | |
"plugins": [ | |
{ | |
"name": "AuthPlugin", | |
"enabled": true, | |
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll", | |
"configSection": "apiKey" | |
} | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension microsoftGraph | |
resource identity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = { | |
location: resourceGroup().location | |
name: 'my-connector' | |
} | |
resource graphSp 'Microsoft.Graph/[email protected]' existing = { | |
appId: '00000003-0000-0000-c000-000000000000' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension microsoftGraph | |
resource appRegistration 'Microsoft.Graph/[email protected]' = { | |
displayName: 'My Graph connector' | |
uniqueName: 'my-graph-connector' | |
signInAudience: 'AzureADMyOrg' | |
requiredResourceAccess: [ | |
{ | |
resourceAppId: '00000003-0000-0000-c000-000000000000' | |
resourceAccess: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/board-formatting.schema.json", | |
"hideSelection": false, | |
"formatter": { | |
"elmType": "div", | |
"attributes": { | |
"class": "sp-card-container sp-card-container-noPadding" | |
}, | |
"children": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/crudapi.schema.json", | |
"baseUrl": "https://api.contoso.com/v1/customers", | |
"dataFile": "customers-data.json", | |
"actions": [ | |
{ | |
"action": "getAll" | |
}, | |
{ | |
"action": "getOne", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"baseUrl": "https://api.contoso.com/v1/customers", | |
"dataFile": "customers-data.json", | |
"actions": [ | |
{ | |
"action": "getAll" | |
}, | |
{ | |
"action": "getOne", | |
"url": "/{customer-id}", |
NewerOlder