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 \
--restart-policy Never \
--command-line "nextflow run nextflow-io/hello"
Create a container instance using a yaml file
az container create --resource-group demo --name openemr --file aci.yml
Use secure copy utility to copy files from remote linux VM to local machine
scp -r azureuser@simplelinuxvm-hli6aqxtwj2yy.centralus.cloudapp.azure.com:~/pipelines/havoc/. .
Create a basic 1-node cluster with monitoring
az aks create \
--resource-group demo \
--name demoCluster \
--node-count 1 \
--enable-addons monitoring \
--generate-ssh-keys
Get an access token for resource
az account get-access-token --resource=https://graph.microsoft.com --query accessToken --output tsv