The Azure CLI provides a cross platform command line interface for working with Azure. If you are on Windows you might want to take a look at PowerShell, see Ryan’s post here on how to configure that.
- Install the CLI
- Follow the instructions here
- Add the Azure Gov Environment
- Execute this command
- Execute this command
- Download the publish settings file for your Azure Government Subscription
- Using an InPrivate browser window, log into the Azure Government Management Portal
- Don't forget to use your something.onmicrosoft.com username and be sure to select "work or school account"
- After you have logged in navigate to the following URL in the same browser window. https://manage.windowsazure.us/publishsettings/index
- This will trigger the download of a file, you will need its name and location for the next step
- Connect it to your subscription
- Execute this command (replacing the path you downloaded publish settings file to and the name it was given)
- Execute this command (replacing the path you downloaded publish settings file to and the name it was given)
You should now have access to all the classic (Service Management) CLI commands.