question

UdayKiranReddyureddy-2664 avatar image
0 Votes"
UdayKiranReddyureddy-2664 asked UdayKiranReddyureddy-2664 commented

Error configuring kubernetes cluster to github actions.

I followed this link and tried to configure a service principal.

But got below error.

az ad sp create-for-rbac --name "myApp" --role contributor --scopes /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP> --sdk-auth

az ad sp create-for-rbac --name "githubActionsApp" --role contributor --scopes /subscriptions/01f7b0dd-dba4-4502-94ce-7c8cde09b954/resourceGroups/martserverqa --sdk-auth

But got below error.

PS C:\Users\UReddy> az ad sp create-for-rbac --name "githubActionsApp" --role contributor --scopes /subscriptions/01f7b0dd-dba4-4502-94ce-7c8cde09b954/resourceGroups/martserverqa --sdk-auth
Changing "githubActionsApp" to a valid URI of "http://githubActionsApp", which is the required format used for service principal names
Values of identifierUris property must use a verified domain of the organization or its subdomain: 'http://githubActionsApp'









azure-kubernetes-serviceazure-rbac
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered UdayKiranReddyureddy-2664 commented

Hello @UdayKiranReddyureddy-2664 ,
Are you still facing the same issue ?
I don't see any issue with the command , Can you retry the command with a different name ServicePrincipal Name?
Can you also try the command with out assigning the role i.e. az ad sp create-for-rbac --name "githubActionsApp"




Regards,
Shiva.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Shiva, thanks for the reply.
This issue is fixed once I update my azure cli installation.

Can you check this issue. https://docs.microsoft.com/en-us/answers/questions/612656/unable-to-connect-aks-cluster-using-github-actions.html

0 Votes 0 ·