bringing up containers in azure

Create a resource group

az group create --name myGroup --location eastus

Create the container

az container create --resource-group myGroup --name myName --image tensorflow/tensorflow --dns-name-label myDnsName --ports 8888

Show status

az container show --resource-group myGroup --name myName --query "{FQDN:ipAddress.fqdn,ProvisioningState:provisioningState}" --out table

azure container repository login

az login
az acr login --name repoName

creating a service principal with cli

# create - returns client id & secret
az ad sp create-for-rbac -n "my-service-principal"

# reset
az ad sp reset-credentials --name "my-service-principal"

creating azure signalr service with cli

# standard
az signalr create --name mySignalR --resource-group myResourceGroup --sku Standard_S1

# free
az signalr create --name mySignalR --resource-group myResourceGroup --sku Free_F1

# get connection string
az signalr key list -n mySignalR -g myResourceGroup --query primaryConnectionString -o tsv

az acr login fails on mac

The following should just work:

az acr login -n myRegistry

But on MacOS I was getting this:

Error saving credentials: error storing credentials - err: exit status 1, out: `The user name or passphrase you entered is not correct.`
Login failed.

Thanks to this stackoverflow question the solution was to:

Try opening Keychain Right-click on the login keychain and try locking it and then unlocking it again.