geosolutions-it / C195-azure-workspace

1 stars 2 forks source link

C195-azure-workspace

This repo contains scripts and configuration files to deploy all the services needed to run CKAN in Azure.


In order to be able to run the az commands and to make docker commands to interact with Azure, you need to perform the login procedure that will open the browser locally for the authentication steps.

Login into Azure with your tenant id; you need to specify the tenant otherwise Azure won't recognize the subscription id:

docker login azure --tenant-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Create a local aci context (make sure your docker command is up-to-date enough to deal with ACI context, or you can get misleading error messages):

docker context create aci azurecontext --subscription-id yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy

In order to be able to push images to the Azure registry, you have to login to the acr:

az acr login --name <REGISTRY NAME>