Skip to content

Issue getting token in Government Environment - Fairfax #48

@luke01215

Description

@luke01215

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions