Share via

az role assignment create hangs

Chen Lim 0 Reputation points
2024-10-24T17:40:20.72+00:00

I'm following the steps at https://learn.microsoft.com/en-us/azure/application-gateway/tutorial-ingress-controller-add-on-new to set up AKS with an ingress controller. The process hangs / takes too long on the command:

az role assignment create --assignee $agicAddonIdentity --scope $appGatewaySubnetId --role "Network Contributor"

I'm running this via the web terminal. It's timed out twice.

Any tips or advice to workaround this?

Thanks.

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.


1 answer

Sort by: Most helpful
  1. Anonymous
    2024-10-25T21:00:57.1733333+00:00

    Hi Chen Lim,
    Based upon your question, sometimes transient issues can cause timeouts. Wait a few minutes and then try running the command again.

    Run the Azure CLI commands from your local machine instead of the web terminal and ensure that your account has the necessary permissions to create role assignments, you may need Owner or User Access Administrator permissions on the subscription or resource group.

    Make sure your Azure CLI is updated to the latest version, as issues are often resolved in newer releases. Additionally, you can add --debug to your command to get more detailed logs, which may help you identify the cause of the timeout.

    If the information is helpful, please consider by clicking the "Accept Answer & Upvote" on the post.

    Thank you.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.