Open elearningforce-ag opened 9 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shenmuxiaosen, @avanigupta.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shenmuxiaosen, @avanigupta.
I checked and the resourceid and endpoint of app config were not set for the sovereign clouds. https://github.com/Azure/azure-powershell-common/blob/main/src/Authentication.Abstractions/AzureEnvironmentConstants.cs#L271-L275 I have looped in App Configuration team. @shenmuxiaosen @avanigupta we can totally support this if you could provide a list of resource IDs and endpoints for different clouds.
@elearningforce-ag Could see run the following cmdlets to see whether the issue is workarounded?
$context = Get-AzContext
$context.Environment.ExtendedProperties['AzureAppConfigurationEndpointResourceId'] = "https://azconfig.azure.us"
$context.Environment.ExtendedProperties['AzureAppConfigurationEndpointSuffix'] = "azconfig.azure.us"
set-AzContext -Context $context
@elearningforce-ag Could see run the following cmdlets to see whether the issue is workarounded?
$context = Get-AzContext $context.Environment.ExtendedProperties['AzureAppConfigurationEndpointResourceId'] = "https://azconfig.azure.us" $context.Environment.ExtendedProperties['AzureAppConfigurationEndpointSuffix'] = "azconfig.azure.us" set-AzContext -Context $context
Yes, this workaround solved the issue. Thank you.
Description
When I run any AppConfiguration command in US Government tenant like Set-AzAppConfigurationKeyValue for example I get the following error: AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope AzureAppConfigurationEndpointResourceId/.default is not valid.
Looks like government endpoint is not set in Authentication module. The url of AppConfiguration instance in government is ".azconfig.azure.us".
Issue script & Debug output
Environment data
Module versions
Error output