git config --local commit.gpgsign false
This file contains 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
git fetch | |
git merge origin/main |
This file contains 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
$result = curl "https://api.github.com/search/code?q=healthcare+repo%3AMicrosoftDocs%2Farchitecture-center+language%3AMarkdown+path%3Adocs&type=Code&page=1" | convertfrom-json | |
$result.items | format-table name, path |
This file contains 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
$spnName = Read-Host -Prompt "Enter new FHIR SPN name" | |
$subId = Read-Host -Prompt "Enter Azure Subscription Id" | |
$rgName = Read-Host -Prompt "Enter resource group name of FHIR API" | |
$fhirName = Read-Host -Prompt "Enter name of FHIR API resource (i.e. myfhirapi)" | |
az login | |
$spn = az ad sp create-for-rbac -n $spnName | convertfrom-json | |
az role assignment create --role "FHIR Data Reader" --assignee $spn.appId ` | |
--scope "/subscriptions/$subId/resourceGroups/$rgName/providers/Microsoft.HealthcareApis/services/$fhirName" |
This file contains 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
az login | |
az account get-access-token ` | |
-t c2c1d092-cf24-4636-a284-203c93601579 ` | |
--scope api://f0e9be33-2224-430d-a7b7-6e6c1ab69a29/.default |
This file contains 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
$subscriptionId = "<azure subscription id>" | |
Connect-AzAccount -SubscriptionId $subscriptionId | |
$users = Import-Csv ./userlist.csv | |
foreach ($user in $users) { | |
$user | |
$g = Get-AzResourceGroup -Name $user.AzureGroup -ErrorVariable notFound -ErrorAction SilentlyContinue | |
if ($notFound) { | |
$g = New-AzResourceGroup -Name $user.AzureGroup -Location "Central US" |
This file contains 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
$appId = "04b07795-8ddb-461a-bbee-02f9e1bf7b46" #global appId for az CLI | |
$apiId = "5d6db6cd-cce5-47c4-8700-000efa22e068" #appId of your custom API | |
$requestScope = "api://localhost/5d6db6cd-cce5-47c4-8700-000efa22e068/.default" #scope exposed by your custom API app registration | |
## First time only | |
az login | |
az ad sp create --id $appId | |
az ad app permission grant --id $appId --api $apiId --scope "access_as_user" | |
## Get new token |
Here is the procedure that works the best while being the least destructive
- Open the repo using a new Codespace
- Using the terminal, download BFG tool.
cd ..
curl https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar bfg.jar
- IMPORTANT Clone a mirror of the repo (the git database only) so we don't mess with any local files