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!
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!