Skip to content
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

Closed
viananth opened this issue Aug 14, 2017 · 5 comments
Closed

Keyvault create cmd fails in ADFS env #4216

viananth opened this issue Aug 14, 2017 · 5 comments
Labels
Cloud KeyVault az keyvault Service Attention This issue is responsible by Azure service team.

Comments

@viananth
Copy link
Member

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

@tjprescott tjprescott added KeyVault az keyvault Cloud labels Aug 15, 2017
@tjprescott
Copy link
Member

The keyvault-create command makes Graph API calls using the active_directory_graph_resource_id property of the cloud. Does the Stack environment's cloud configuration have this endpoint set? Do the RBAC commands work?

@yugangw-msft
Copy link
Contributor

I can take a first look to understand why a graph token was used for keyvault operation

@tjprescott
Copy link
Member

It is used to assign access permissions for the KeyVault to the active user.

@viananth
Copy link
Member Author

Yes, active_directory_graph_resource_id is set. And the authentication fails because keyvault create makes Graph api calls instead of active-directory call.

@viananth
Copy link
Member Author

viananth commented Sep 5, 2017

@viananth viananth closed this as completed Sep 5, 2017
@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
@haroldrandom haroldrandom added Cloud KeyVault az keyvault Service Attention This issue is responsible by Azure service team. labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cloud KeyVault az keyvault Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants