-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting token from Cloud Shell intermittently fails with 400 Client Error: Bad Request #11749
Comments
@jiasli Please take a look. |
This is Cloud Shell issue. Could you run with To get unblocked, please run |
I reran the module again and it worked fine, Only difference this time is I ran Terraform Destroy command to delete the plan and then ran az ad sp create command and it worked fine, It doesn't really explain what happened !!! |
WorkaroundsThere are 2 workarounds:
|
This worked for me. Thanks. |
@jiasli this is still happening and hurt AKS user experience, please prioritize and fix this issue. |
I am seeing this issue using CentOS with AzureCLI installed. Is there any progress here? any direction I should be pointed |
Please create a new issue for us to track. |
I'm also getting this error. For me, it was when I ran |
I get the same error using Windows 11 - Windows Terminal, click on the drop-down to get to an Azure Cli instance. Following the device login page I'm able to work other commands but not the below:
|
Workaround doesn't work for me. Getting error while doing az login. |
@sherdana, your message is corrupted. Also, you are not on Cloud Shell, but Windows machine. Please create a new issue with detailed information and error message. |
Running |
Per Azure/azure-cli#11749 it appears this is a known issue and the only workaround is to attempt to login again.
This issue doesn't happen on Cloud Shell created by Azure Portal, but still exists on Cloud shell created by Doc site. Is there anyone can connect Cloud Shell team to investigate the issue? |
A similar error is occurring in the Microsoft Training lab Exercise - Configure a system-assigned managed identity for an Azure VM, first command. |
This workaround for cloud shell no longer works!!!
|
This is still an issue that crashed my deployment. running the following command without
resulted in error:
but after running EDIT: copy/pasted complete literal error |
I'm getting following when I'm running following command :
ARM_CLIENT_SECRET=$(az ad sp create-for-rbac
--name http://tf-sp-$UNIQUE_ID
--role Contributor
--scopes "/subscriptions/$ARM_SUBSCRIPTION_ID"
--query password
--output tsv)
Please note that I've stored ARM Subscription ID successfully and ran above command as part of creating Service Principal.
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az ad sp create-for-rbac
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az ad sp create-for-rbac --name {} --role {} --scopes {} --query {} --output {}
Expected Behavior
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: