Useful code snippets for future reference
Run nextflow-io/hello sample pipeline in ACI
az container create \
--resource-group demo-aci \
--name demo-aci \
--image nextflow/nextflow:21.10.6 \
Here is the procedure that works the best while being the least destructive
cd ..
curl https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar bfg.jar
$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 |
$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" |
az login | |
az account get-access-token ` | |
-t c2c1d092-cf24-4636-a284-203c93601579 ` | |
--scope api://f0e9be33-2224-430d-a7b7-6e6c1ab69a29/.default |
$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" |
$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 |
git config --local commit.gpgsign false
git fetch | |
git merge origin/main |