I need to execute the next command:
az container create --resource-group myresourcegroup --name mycontainer --image myregistry.azurecr.io/myimage:latest --dns-name-label mysite --ports 80 --environment-variables 'SQLALCHEMY_DATABASE_URI'='postgresql://psql.postgres.database.azure.com:5432/postgres?user=myuser@psql&password=myPassword&sslmode=require'
I used this sample
But it fails due to PowerShell doesn't recognize the string after 'SQLALCHEMY_DATABASE_URI'=
as string. It parses the last one as command arguments. I tried to pass environment variables as a dict @{'SQLALCHEMY_DATABASE_URI'='myconnectionstring'}
but it didn't help.
What's a right way to make it?