Error executing release pipeline for Continuous Deployment with AKS

%3CLINGO-SUB%20id%3D%22lingo-sub-2594364%22%20slang%3D%22en-US%22%3EError%20executing%20release%20pipeline%20for%20Continuous%20Deployment%20with%20AKS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2594364%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20been%20following%20the%20steps%20to%20execute%20Release%20pipeline%20following%20these%20links%20%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fazure.github.io%2Fapplication-gateway-kubernetes-ingress%2Fhow-tos%2Fcontinuous-deployment%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.github.io%2Fapplication-gateway-kubernetes-ingress%2Fhow-tos%2Fcontinuous-deployment%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fapplication-gateway-kubernetes-ingress%2Fblob%2Fmaster%2Fdocs%2Fhow-tos%2Fcontinuous-deployment.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2Fapplication-gateway-kubernetes-ingress%2Fblob%2Fmaster%2Fdocs%2Fhow-tos%2Fcontinuous-deployment.md%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20am%20facing%20an%20error%20%2C%20looks%20like%20pipeline%20is%20not%20able%20to%20find%20the%20Principal%20ID%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E2021-07-28T15%3A15%3A59.1832610Z%20Setting%20AZURE_CONFIG_DIR%20env%20variable%20to%3A%20%2Fhome%2Fvsts%2Fwork%2F_temp%2F.azclitask%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A15%3A59.1838681Z%20Setting%20active%20cloud%20to%3A%20AzureCloud%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A15%3A59.1849656Z%20%5Bcommand%5D%2Fusr%2Fbin%2Faz%20cloud%20set%20-n%20AzureCloud%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A15%3A59.4258685Z%20%5Bcommand%5D%2Fusr%2Fbin%2Faz%20login%20--service-principal%20-u%20***%20--password%3D***%20--tenant%20***%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A00.0105962Z%20%5B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A00.0106252Z%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A00.0106758Z%20%22cloudName%22%3A%20%22AzureCloud%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A00.0108400Z%20%22homeTenantId%22%3A%20%22%3C%2FSPAN%3E%3CEM%3E%3CSTRONG%3E%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0108921Z%20%22id%22%3A%20%2290005c67-7555-493b-ba11-a38de0084ce6%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0109239Z%20%22isDefault%22%3A%20true%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0109519Z%20%22managedByTenants%22%3A%20%5B%5D%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0109966Z%20%22name%22%3A%20%22Azure%20Pass%20-%20Sponsorship-13July%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0110272Z%20%22state%22%3A%20%22Enabled%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0110867Z%20%22tenantId%22%3A%20%22%3C%2FSTRONG%3E%3C%2FEM%3E%3CSPAN%3E%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A00.0111364Z%20%22user%22%3A%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A00.0111997Z%20%22name%22%3A%20%22%3C%2FSPAN%3E%3CEM%3E%3CSTRONG%3E%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0112296Z%20%22type%22%3A%20%22servicePrincipal%22%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0112550Z%20%7D%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0112773Z%20%7D%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0112957Z%20%5D%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.0120323Z%20%5Bcommand%5D%2Fusr%2Fbin%2Faz%20account%20set%20--subscription%2090005c67-7555-493b-ba11-a38de0084ce6%3CBR%20%2F%3E2021-07-28T15%3A16%3A00.2442631Z%20%5Bcommand%5D%2Fbin%2Fbash%20%2Fhome%2Fvsts%2Fwork%2F_temp%2Fazureclitaskscript1627485358779.sh%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5385918Z%20%7B%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5387380Z%20%22clientId%22%3A%20%221031baeb-212d-43fd-8662-0955be9eaa4e%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5389254Z%20%22clientSecretUrl%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fcontrol-eastus.identity.azure.net%2Fsubscriptions%2F90005c67-7555-493b-ba11-a38de0084ce6%2Fresourcegroups%2FMC_resource-group_aks-cluster_eastus%2Fproviders%2FMicrosoft.ManagedIdentity%2FuserAssignedIdentities%2Fagic-identity%2Fcredentials%3Ftid%3D***%26amp%3Boid%3Df4dd0eb7-132f-4d33-a9fb-df951cc81ee8%26amp%3Baid%3D1031baeb-212d-43fd-8662-0955be9eaa4e%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcontrol-eastus.identity.azure.net%2Fsubscriptions%2F90005c67-7555-493b-ba11-a38de0084ce6%2Fresourcegroups%2FMC_resource-group_aks-cluster_eastus%2Fproviders%2FMicrosoft.ManagedIdentity%2FuserAssignedIdentities%2Fagic-identity%2Fcredentials%3Ftid%3D***%26amp%3Boid%3Df4dd0eb7-132f-4d33-a9fb-df951cc81ee8%26amp%3Baid%3D1031baeb-212d-43fd-8662-0955be9eaa4e%3C%2FA%3E%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5390734Z%20%22id%22%3A%20%22%2Fsubscriptions%2F90005c67-7555-493b-ba11-a38de0084ce6%2Fresourcegroups%2FMC_resource-group_aks-cluster_eastus%2Fproviders%2FMicrosoft.ManagedIdentity%2FuserAssignedIdentities%2Fagic-identity%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5391300Z%20%22location%22%3A%20%22eastus%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5392044Z%20%22name%22%3A%20%22agic-identity%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5392564Z%20%22principalId%22%3A%20%22f4dd0eb7-132f-4d33-a9fb-df951cc81ee8%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5393115Z%20%22resourceGroup%22%3A%20%22MC_resource-group_aks-cluster_eastus%22%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5393455Z%20%22tags%22%3A%20%7B%7D%2C%3CBR%20%2F%3E2021-07-28T15%3A16%3A05.5404411Z%20%22tenantId%22%3A%20%22%3C%2FSTRONG%3E%3C%2FEM%3E%3CSPAN%3E%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A05.5404898Z%20%22type%22%3A%20%22Microsoft.ManagedIdentity%2FuserAssignedIdentities%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A05.5405224Z%20%7D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A08.8767293Z%20WARNING%3A%20Failed%20to%20query%20--assignee-principal-type%20for%20f4dd0eb7-132f-4d33-a9fb-df951cc81ee8%20by%20invoking%20Graph%20API.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A08.8768766Z%20RBAC%20server%20might%20reject%20creating%20role%20assignment%20without%20--assignee-principal-type%20in%20the%20future.%20Better%20to%20specify%20--assignee-principal-type%20manually.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A10.0120410Z%20ERROR%3A%20Principal%20f4dd0eb7132f4d33a9fbdf951cc81ee8%20does%20not%20exist%20in%20the%20directory%20***.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A10.8664081Z%20WARNING%3A%20Failed%20to%20query%20--assignee-principal-type%20for%20f4dd0eb7-132f-4d33-a9fb-df951cc81ee8%20by%20invoking%20Graph%20API.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A10.8665060Z%20RBAC%20server%20might%20reject%20creating%20role%20assignment%20without%20--assignee-principal-type%20in%20the%20future.%20Better%20to%20specify%20--assignee-principal-type%20manually.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A11.7955580Z%20ERROR%3A%20Principal%20f4dd0eb7132f4d33a9fbdf951cc81ee8%20does%20not%20exist%20in%20the%20directory%20***.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A11.8685975Z%20%23%23%5Berror%5DScript%20failed%20with%20error%3A%20Error%3A%20The%20process%20'%2Fbin%2Fbash'%20failed%20with%20exit%20code%201%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A11.8702755Z%20%5Bcommand%5D%2Fusr%2Fbin%2Faz%20account%20clear%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2021-07-28T15%3A16%3A12.1424485Z%20%23%23%5Bsection%5DFinishing%3A%20Create%20AGIC%20Identity%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAlso%20opened%20Issue%20here%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fapplication-gateway-kubernetes-ingress%2Fissues%2F1231%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2Fapplication-gateway-kubernetes-ingress%2Fissues%2F1231%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Senior Member

I have been following the steps to execute Release pipeline following these links :

https://azure.github.io/application-gateway-kubernetes-ingress/how-tos/continuous-deployment/

https://github.com/Azure/application-gateway-kubernetes-ingress/blob/master/docs/how-tos/continuous-...

 

But I am facing an error , looks like pipeline is not able to find the Principal ID:

 

 

2021-07-28T15:15:59.1832610Z Setting AZURE_CONFIG_DIR env variable to: /home/vsts/work/_temp/.azclitask
2021-07-28T15:15:59.1838681Z Setting active cloud to: AzureCloud
2021-07-28T15:15:59.1849656Z [command]/usr/bin/az cloud set -n AzureCloud
2021-07-28T15:15:59.4258685Z [command]/usr/bin/az login --service-principal -u *** --password=*** --tenant ***
2021-07-28T15:16:00.0105962Z [
2021-07-28T15:16:00.0106252Z {
2021-07-28T15:16:00.0106758Z "cloudName": "AzureCloud",
2021-07-28T15:16:00.0108400Z "homeTenantId": "",
2021-07-28T15:16:00.0108921Z "id": "90005c67-7555-493b-ba11-a38de0084ce6",
2021-07-28T15:16:00.0109239Z "isDefault": true,
2021-07-28T15:16:00.0109519Z "managedByTenants": [],
2021-07-28T15:16:00.0109966Z "name": "Azure Pass - Sponsorship-13July",
2021-07-28T15:16:00.0110272Z "state": "Enabled",
2021-07-28T15:16:00.0110867Z "tenantId": "
",
2021-07-28T15:16:00.0111364Z "user": {
2021-07-28T15:16:00.0111997Z "name": "",
2021-07-28T15:16:00.0112296Z "type": "servicePrincipal"
2021-07-28T15:16:00.0112550Z }
2021-07-28T15:16:00.0112773Z }
2021-07-28T15:16:00.0112957Z ]
2021-07-28T15:16:00.0120323Z [command]/usr/bin/az account set --subscription 90005c67-7555-493b-ba11-a38de0084ce6
2021-07-28T15:16:00.2442631Z [command]/bin/bash /home/vsts/work/_temp/azureclitaskscript1627485358779.sh
2021-07-28T15:16:05.5385918Z {
2021-07-28T15:16:05.5387380Z "clientId": "1031baeb-212d-43fd-8662-0955be9eaa4e",
2021-07-28T15:16:05.5389254Z "clientSecretUrl": "https://control-eastus.identity.azure.net/subscriptions/90005c67-7555-493b-ba11-a38de0084ce6/resourc...",
2021-07-28T15:16:05.5390734Z "id": "/subscriptions/90005c67-7555-493b-ba11-a38de0084ce6/resourcegroups/MC_resource-group_aks-cluster_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agic-identity",
2021-07-28T15:16:05.5391300Z "location": "eastus",
2021-07-28T15:16:05.5392044Z "name": "agic-identity",
2021-07-28T15:16:05.5392564Z "principalId": "f4dd0eb7-132f-4d33-a9fb-df951cc81ee8",
2021-07-28T15:16:05.5393115Z "resourceGroup": "MC_resource-group_aks-cluster_eastus",
2021-07-28T15:16:05.5393455Z "tags": {},
2021-07-28T15:16:05.5404411Z "tenantId": "
",
2021-07-28T15:16:05.5404898Z "type": "Microsoft.ManagedIdentity/userAssignedIdentities"
2021-07-28T15:16:05.5405224Z }
2021-07-28T15:16:08.8767293Z WARNING: Failed to query --assignee-principal-type for f4dd0eb7-132f-4d33-a9fb-df951cc81ee8 by invoking Graph API.
2021-07-28T15:16:08.8768766Z RBAC server might reject creating role assignment without --assignee-principal-type in the future. Better to specify --assignee-principal-type manually.
2021-07-28T15:16:10.0120410Z ERROR: Principal f4dd0eb7132f4d33a9fbdf951cc81ee8 does not exist in the directory ***.
2021-07-28T15:16:10.8664081Z WARNING: Failed to query --assignee-principal-type for f4dd0eb7-132f-4d33-a9fb-df951cc81ee8 by invoking Graph API.
2021-07-28T15:16:10.8665060Z RBAC server might reject creating role assignment without --assignee-principal-type in the future. Better to specify --assignee-principal-type manually.
2021-07-28T15:16:11.7955580Z ERROR: Principal f4dd0eb7132f4d33a9fbdf951cc81ee8 does not exist in the directory ***.
2021-07-28T15:16:11.8685975Z ##[error]Script failed with error: Error: The process '/bin/bash' failed with exit code 1
2021-07-28T15:16:11.8702755Z [command]/usr/bin/az account clear
2021-07-28T15:16:12.1424485Z ##[section]Finishing: Create AGIC Identity

Also opened Issue here - https://github.com/Azure/application-gateway-kubernetes-ingress/issues/1231

 

 

 

0 Replies