The Logic App Properties windows doesn't list Azure Gov Subscription that I am using in VS2019. I can use Cloud Explorer and other tools except being able to use Logic App Designer so I can develop and deploy apps to Gov Subs.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi @melzoghbi - Thank you for your feedback! We will review and update as appropriate.
@melzoghbi Are you using Azure Environment Selector to ensure you're on Azure Government environment? If not, please give that a try and let us know.
@melzoghbi Following up on my previous comment above, please let us know if we can assist further. Otherwise, we'll proceed to close this issue.
@mike-urnun-msft & @melzoghbi: We'll update the topic with more info about this extension.
@mike-urnun-msft: #please-close
First, the Gov. Selector extension is not supported in VS2019 latest build as of v16.3.7. VS2019 is designed to connect to any environment without the need to install the Azure Environment Selector extension. Till today using build 16.3.7, Logic App Template in #VS2019 doesn't list Government subscriptions! so the issue for logic app project template is not working till this point using this build. you need to re-activate this issue since others are face the same issue.
I'm still experiencing this issue. Any update on this?
This topic walks through how to set up Visual Studio 2019 so that you can use Azure Government subscriptions:
https://docs.microsoft.com/azure/azure-government/documentation-government-connect-vs
Thanks @ecfan. I've set up access to Azure Government in VS2019, and I'm able to do deployments and see the subscription and resources in Cloud Explorer. What's not working is when you go to open a Logic App in Designer View, and it asks you to pick a subscription.
Hi @ccapellan,
Apologies for the delay, but the engineering team provided a solution, which I'll add to the doc. After you add the discovery endpoint for Azure Government Cloud, which you did, you need to rename the generated JSON file that Step 2 generates:
In Visual Studio, on the Tools menu, select Options > Environment > Accounts.
Under Registered Azure Clouds, select Add. From the Discovery endpoint list, select Azure U.S. Government (https://login.microsoftonline.us).
This step generates a JSON file named Azure U.S. Government-A3EC617673C6C70CC6B9472656832A26.Configuration
at this location:
%localappdata%\.IdentityService\AadConfigurations
Close Visual Studio.
Rename the generated JSON file to AadProvider.Configuration.json
.
Restart Visual Studio.
On the File menu, select Account Settings.
Under All Accounts, select Add an account, and sign in with your Azure Government account.
Visual Studio now works with Azure Government accounts by default.
To revert this setup, delete the JSON file at the following location and restart Visual Studio:
%localappdata%\.IdentityService\AadConfigurations\AadProvider.Configuration.json
Thanks @ecfan. That worked for me!
I've been looking for this solution, thanks @ecfan !
Most helpful comment
First, the Gov. Selector extension is not supported in VS2019 latest build as of v16.3.7. VS2019 is designed to connect to any environment without the need to install the Azure Environment Selector extension. Till today using build 16.3.7, Logic App Template in #VS2019 doesn't list Government subscriptions! so the issue for logic app project template is not working till this point using this build. you need to re-activate this issue since others are face the same issue.