Hi, thankyou for the response. I was able to resolve the issue after setting the subscription explicitly using the command below.
az set --subscription-id [ID]
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
az network dns zone list
returns empty array. I am using my personal account to run the command. When I login to azure portal using the same account, I see the dns zones listed. Do I need additional roles to be able to run the above command ?
az role assignment list --assignee ${assignee}
returns empty array.
Hi, thankyou for the response. I was able to resolve the issue after setting the subscription explicitly using the command below.
az set --subscription-id [ID]
Thank you for getting back and glad to know the issue was resolved.
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I am summarizing the troubleshooting steps above and posting the solution as an answer. It will be hlpful if you could click "Accept the answer" which might be beneficial to other community members reading this thread.
Troubleshooting steps followed:
I understand you can see the DNS zones listed when you login into the Azure Portal.
az network dns zone list
using Azure Could Shell? This will let us know if the issue is in the local set-up or the user needs any additional role assignment. Please share a screenshot if you observe any errors.Solution obtained:
You were able to resolve the issue after setting the subscription explicitly using the command below.
az set --subscription-id [ID]
Thank you!