-
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
Keyvault create cmd fails in ADFS env #4216
Comments
The |
I can take a first look to understand why a graph token was used for keyvault operation |
It is used to assign access permissions for the KeyVault to the active user. |
Yes, |
Description
Outline the issue here:
az keyvault create --name keyvaultName --resource-group UtilitiesRG --location Redmond --sku standard --enabled-for-deployment true --enabled-for-template-deployment true
fails in Azure Stack ADFS environment with the following error message:
"The access token has been obtained from wrong audience or resource 'https://graph.redmond.ext-n25r0405.masd.stbtest.microsoft.com/'. It should exactly match (including forward slash) with one of the allowed audiences 'https://management.adfs.n25r0405.masd.stbtest.microsoft.com/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx."
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here:
pip install
CLI Version: What version of the CLI and modules are installed? (Use
az --version
)Answer here:
azure-cli (2.0.13+1.dev20170813)
OS Version: What OS and version are you using?
Answer here:
Windows Server 2016 datacenter
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here:
cmd.exe
The text was updated successfully, but these errors were encountered: