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

Issue getting token in Government Environment - Fairfax #48

Open
luke01215 opened this issue Dec 18, 2018 · 1 comment
Open

Issue getting token in Government Environment - Fairfax #48

luke01215 opened this issue Dec 18, 2018 · 1 comment

Comments

@luke01215
Copy link

I am attempting to utilize the arm client to download the arm template for a logic app.

These are the steps to replicate.

ARMClient.exe login FairFax

Following the info on
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-create-deploy-template

I am then doing the following.
armclient token $SubscriptionId | Get-LogicAppTemplate -LogicApp MyApp -ResourceGroup MyRG -SubscriptionId $SubscriptionId -Verbose | Out-File C:\template.json

When I do that command, I get the following error.
Object reference not set to an instance of an object.

I believe the issue lies in the GetDefaultEnv because the behavior of Government is different than commercial and I believe this to be returning AzureEnvironments.Prod.

Please let me know if you need additional information!

@jotobinMSFT-zz
Copy link

I am also getting this issue with ARMClient version 1.3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants