Training
Certification
Microsoft Certified: Azure Administrator Associate - Certifications
Demonstrate key skills to configure, manage, secure, and administer key professional functions in Microsoft Azure.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Microsoft Azure Government delivers a dedicated cloud with world-class security and compliance, enabling US government agencies and their partners to transform their workloads to the cloud. To manage your Azure Government cloud workloads and applications you can connect to Azure Government using different tools, as described in the following video.
This quickstart shows how to use the Azure CLI to access and start managing resources in Azure Government. If you don't have an Azure Government subscription, create a free account before you begin.
Install the Azure CLI locally by following the instructions in Install the Azure CLI.
In Azure Government, there is no equivalent to Azure Cloud Shell that you can find in the Azure portal.
Connect to Azure Government by setting the cloud with the name AzureUSGovernment
.
az cloud set --name AzureUSGovernment
Once the cloud has been set, you can continue logging in:
az login
When you type login
, a browser is launched for you to log in. Choose your Azure Government account and log in with appropriate credentials.
To confirm the cloud has correctly been set to AzureUSGovernment
, run:
az cloud list --output table
The isActive
flag for the AzureUSGovernment
item should be set to true
.
You use the same command as for global Azure.
az account list-locations
This quickstart showed you how to use CLI to connect to Azure Government. Once you are connected to Azure Government, you may want to explore Azure services. Make sure you check out the variations, described in Compare Azure Government and global Azure. To learn more about Azure services, continue to the Azure documentation.
Training
Certification
Microsoft Certified: Azure Administrator Associate - Certifications
Demonstrate key skills to configure, manage, secure, and administer key professional functions in Microsoft Azure.
Documentation
How to manage Azure subscriptions – Azure CLI
Learn about Azure tenants, users, and subscriptions. Use Azure CLI to manage your subscriptions, create management groups, and lock subscriptions.
Azure cloud management - Azure CLI
Create, sign in, and manage multiple clouds with the Azure CLI. Learn how to get information on clouds, change the current cloud, and register/unregister new clouds.
Sign in with Azure CLI — Login and Authentication
Learn the different authentication types for your Azure CLI login — sign in with Azure CLI automatically, locally, or interactively using the az login command.