Open vamshicholleti93 opened 1 year ago
Hi @vamshicholleti93,
2.38.1 is not the latest Azure CLI(2.53.0).
If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
Thank you for opening this issue, we will look into it.
I am trying to update az cli
but not able to upgrade it
[core@bastionNode ~]$
[core@bastionNode ~]$ az --version
azure-cli 2.38.1 *
core 2.38.1 *
telemetry 1.0.6 *
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
Python location '/usr/bin/python3.6'
Extensions directory '/home/core/.azure/cliextensions'
Python (Linux) 3.6.8 (default, Jun 12 2019, 01:12:31)
[GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
Legal docs and information: aka.ms/AzureCliLegal
You have 3 updates available. Consider updating your CLI installation with 'az upgrade'
Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
[core@bastionNode ~]$
[core@bastionNode ~]$
[core@bastionNode ~]$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.38.1. Latest version available is 2.53.0.
Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
Last metadata expiration check: 0:19:57 ago on Tue 10 Oct 2023 05:07:04 AM UTC.
Dependencies resolved.
Nothing to do.
Complete!
CLI upgrade failed or aborted.
Insufficient privileges to complete the operation
seems more like a usage fault than a bug.
You may need to check the doc.
2.38.1 is the latest version in your OS. You can try the latest version in a modern OS to see if the error persists.
I upgraded az version to 2.53 Even on the updated version I could see the same issue.
Could you please let me know the command to check the permission. so that I will check and update the screenshot here.
Thanks
By the way, I am able to create app registration using UI, By this I can say that I have sufficient privileges to perform that operation. Using az-cli I face this issue, so could you please check and help me to resolve this issue. I would need az cli commands to use it in my automation scripts
Thanks
Hi @yonzhan @bebound Could you please check my recent comments and let me know the reason for the issue and help me to resolve it
Thank
Describe the bug
I am trying to execute some azure cli commands but it says "Insufficient privileges to complete the operation." , when I checked my permissions in the Azure portal, I found that I have sufficient privileges to perform that action and able to perform it through the portal. But not able to perform same operation through "az cli".
Here is the screenshot of list of role assigned roles for me on azure portal.
Related command
az ad app create --display-name
Errors
Insufficient privileges to complete the operation.
Issue script & Debug output
Expected behavior
On the execution of below command. it should create an app registration successfully
Environment Summary
Additional context
I am also trying to refer the az cli doc to create app registration, create a custom role and assign a custom role to it . But could not find any doc related to above topics.
This link is not active https://learn.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli, It shows "404 - Page not found" error.