Closed shmack01 closed 3 years ago
Hi @shmack01 - thanks for reporting this.
I've attached an updated version of the extension (gov-friendly-vscode-azurecognitivesearch.zip) for you with a small tweak that will make this work for gov cloud. To install it:
After installing the extension, please make sure the settings of the Azure Account extension look like this:
And that the settings for the Azure Cognitive Seach extension (Settings -> Extensions -> Azure Cognitive Search) look like this:
Could you let me know if that works for you?
In case you're wondering, the updated extension I attached changes the value of this line to point to search.azure.us
from search.windows.net
.
I will try to get an update in so this is a better experience and doesn't require a separate version of the extension.
Works perfectly! Thank you for adding the update for the US Gov endpoint.
Awesome, glad to hear it :)
This is a great extension, but it doesn't pick up the current Azure Account environment setting, such as APIM, Function Apps, etc. In VS Code, when you are signed in with the "Azure Account" extension for Azure Government the following error occurs:
Error: The access token has been obtained for wrong audience or resource 'https://management.core.windows.net/". It should exactly match with one of the allowed audiences 'https://management.core.usgovclientapi.net"....