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}", |
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
# export cert from keychain to PEM | |
security find-certificate -c "Titanium Root Certificate Authority" -a -p > proxy-cert.pem | |
# add trusted cert to keychain | |
security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db proxy-cert.pem |
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
New-Item -ItemType Directory -Force -Path .\devproxy -ErrorAction Stop | Out-Null | |
Set-Location .\devproxy | Out-Null | |
# Get the full path of the current directory | |
$full_path = Resolve-Path . | |
# Get the latest Dev Proxy version | |
Write-Host "Getting latest Dev Proxy version..." | |
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/microsoft/dev-proxy/releases/latest" -ErrorAction Stop | |
$version = $response.tag_name |
NewerOlder