-
Notifications
You must be signed in to change notification settings - Fork 1
Home
srikanth-pusarla edited this page Aug 6, 2020
·
5 revisions
ACR:
- Create Azure container Registry through Azure Cli or Azure Portal.
- Create secrets for Azure Container Registry in Github ACR = "Login server",REGISTRY_USERNAME and REGISTRY_PASSWORD
AKS:
- Create Azure Kubernetes Service through Azure Cli or Azure Portal.
- Run the command in Azure cli to create service principal
az ad sp create-for-rbac --name "myApp" --role contributor
--scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group}
--sdk-auth ("Note:Replace the subscription-id and resource group values") - The output is the role assignment credentials that provide access to your Service. Copy this JSON object, which you can use to authenticate from GitHub with the secret named "AZURE_CREDENTIALS"