projectkudu / ARMClient

A simple command line tool to invoke the Azure Resource Manager API
http://blog.davidebbo.com/2015/01/azure-resource-manager-client.html
Other
316 stars 97 forks source link

Issue getting token in Government Environment - Fairfax #48

Open luke01215 opened 5 years ago

luke01215 commented 5 years ago

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 commented 5 years ago

I am also getting this issue with ARMClient version 1.3.0.0