Popular articles using the Azure CLI

The Azure CLI is used in many Azure services resulting in articles being spread across document repositories. This page provides links to select popular articles.

Compute

Area Type Link Description
Virtual Machines Tutorial: Linux Create a Linux virtual machine with the Azure CLI Create a virtual machine. Learn about output queries and setting environment variables.
Virtual Machines Quickstart: Linux Create a Linux virtual machine using the Azure CLI Create and deploy a Linux virtual machine. Open a port for web traffic, and install a web server.
Virtual Machines How-to guide: Linux Create a Linus image of a virtual machine or VHD Deprovision an existing virtual machine, create an image, and create a new virtual machine from the captured image.
Virtual Machines How-to guide: Linux Upload a VHD to Azure using the Azure CLI Create an empty managed disk, upload your local VHD file, and copy a managed disk.
Virtual Machines How-to guide: Linux Create a shared image gallery using the Azure CLI Create a Shared Image Gallery of custom VM images with others in your organization, within or across regions, or within an AAzure Active Directory tenant.
Virtual Machines How-to guide: Linux Deploy Spot VMs using the Azure CLI (preview) Deploy a Linux Spot virtual machine that will not be evicted based on price.
Virtual Machines Quickstart: Windows Create a Windows virtual machine using the Azure CLI Deploy a virtual machine in Azure that runs Windows Server 2016.
Virtual Machines Learn Module Manage virtual machines using the Azure CLI Create, start, stop, and perform additional management tasks related to virtual machines.
Azure Kubernetes Service (AKS) Quickstart Deploy an Azure Kubernetes Service (AKS) cluster using the Azure CLI Deploy and manage AKS clusters. See how to monitor the health of the cluster and pods that run your application.
Azure Batch Sample Run a job and tasks with Azure Batch using the Azure CLI Create a Batch job and add a series of tasks to the job. Monitor a job and its tasks.
Azure Batch Sample Create and manage a Windows pool in Azure Batch using the Azure CLI Create and manage a pool of Windows compute nodes with a Cloud Services configuration.
Azure Container Instance Quickstart Deploy a container instance using the Azure CLI Deploy an isolated Docker container and make its application available with a fully qualified domain name (FQDN). Execute a single deployment command, then browse to the application running in the container.
Azure Function Quickstart Create a function in Azure that responds to HTTP requests using the Azure CLI Use command-line tools to create a function that responds to HTTP requests. After testing the code locally, deploy the function to the serverless environment of Azure Functions.

Networking

Area Type Link Description
Virtual Network Quickstart Create a virtual network using the Azure CLI Create a virtual network, deploy two virtual machines into the virtual network, and connected to the virtual machines from the internet.
Virtual Network How-to guide Enable Accelerated Networking on a Linux virtual machine using the Azure CLI Create a Linux virtual machine, handle dynamic binding and revocation of virtual function, and enable Accelerated Networking.

Internet of Things

Area Type Link Description
IoT Hub Tutorial Configure IoT Hub message routing using the Azure CLI Set up and use custom routing queries with IoT Hub.

Developer Tools

Area Type Link Description
Azure App Configuration Samples Azure CLI samples for Azure App Configuration Get links to bash scripts that use the Azure CLI for Azure App Configuration.
Azure DevOps Get Started: DevOps Pipeline Create your first Azure Pipeline using the Azure CLI Create a new pipeline in a cloned GitHub directory, manage and run your pipelines.
Azure DevOps How-to guide: DevOps Pipeline Azure Pipeline deployment tasks using the Azure CLI In a build or release pipeline, run a shell or batch script containing the Azure CLI. Commands run on cross-platform agents running on Linux, macOS, or Windows operating systems.
Azure DevOps Tutorial: Jenkins Pipeline Deploy to Azure App Service with Jenkins using the Azure CLI Create and configure a Jenkins virtual machine, create a web app in Azure, and prepare a GitHub repository. Create and run the Jenkins pipeline.

Databases

Area Type Link Description
SQL Database Sample Configure Azure SQL Database using the Azure CLI Azure CLI samples for Azure SQL Database.
MySQL Quickstart Create an Azure Database for MySQL server using the Azure CLI Create an Azure Database for MySQL server. Configure a firewall rule and SSL settings. Get and use connection information.
Cosmos DB How-to guide Manage Azure Cosmos resources using the Azure CLI Use common commands to automate management of your Azure Cosmos DB accounts, databases, and containers.
Cosmos DB Sample Azure CLI samples for Azure Cosmos DB SQL (Core) API Get links to sample Azure CLI scripts for Azure Cosmos DB SQL (Core) API.

Analytics

Area Type Link Description
Azure Event Hub Quickstart Create an event hub using the Azure CLI Create an Event Hubs namespace, and an event hub.
HDInsight How-to-guide Create HDInsight clusters using the Azure CLI Create a HDInsight 3.6 cluster.
HDInsight Tutorial Manage Azure HDInsight clusters using the Azure CLI List, show, delete, and scale HDInsight clusters.

Management and Governance

Area Type Link Description
Resource Manager Templates How-to guide Deploy resources with Azure Resource Manager templates and the Azure CLI Deploy your resources to Azure using templates.
Resource Manager groups How-to guide Manage Azure Resource Manager resource groups by using the Azure CLI Use Azure Resource Manager to manage your Azure resource groups.
Resource Graph Quickstart Run your first Resource Graph query using the Azure CLI Add Azure Resource Graph to your Azure CLI installation and run your first Resource Graph query.
Policy assignment Quickstart Create a policy assignment to identify non-compliant resources using the Azure CLI Create a policy assignment to identify virtual machines that aren't using managed disks.

Hybrid

Area Type Link Description
Azure Stack Hub Quickstart: Linux VM Create a Linux server virtual machine in Azure Stack Hub using the Azure CLI Create an Ubuntu Server 16.04 LTS virtual machine, connect to the virtual machine with a remote client, and install an NGINX web server.
Azure Stack Hub Quickstart: Windows VM Create a Windows Server virtual machine in Azure Stack Hub using the Azure CLI Create a Windows Server 2016 virtual machine, connect the virtual machine with a remote client, and install the IIS web server.
Azure Stack Hub How-to guide: ASDK resources Manage and deploy resources to Azure Stack Hub using the Azure CLI Set up the Azure CLI to manage Azure Stack Development Kit (ASDK) resources from Linux, Mac, and Windows client platforms.

Storage

Area Type Link Description
Blob storage Quickstart Create, download, and list blobs using the Azure CLI Upload and download data to and from Azure Blob storage.
Blob storage How-to guide Authorize access to blob or queue data using the Azure CLI Specify how data operations are authorized, and set environment variables for parameters.
Blob storage How-to guide Use the Azure CLI to manage directories, files, and ACLs in Azure Data Lake Storage Gen2 (preview) Create and manage directories, files, and permissions in storage accounts that have a hierarchical namespace.
File storage Quickstart Create and manage Azure file shares using the Azure CLI Create and use Azure file shares. Create and manage share snapshots.

Security

Area Type Link Description
Service principal How-to guide Create an Azure service principal with the Azure CLI Create, get information about, and reset a service principal with the Azure CLI.
RBAC How-to guide Add or remove role assignments using Azure RBAC and the Azure CLI Assign roles to Azure role-based access control.
Key Vault How-to guide Manage Key Vault using the Azure CLI Create and manage Azure Key Vault. Register and authorize an application, set advanced access policies, and learn cross-platform command-line interface commands.
Key Vault Tutorial Manage storage account keys with Key Vault and the Azure CLI Manage storage account keys, and generate shared access signature tokens.

AI + Machine Learning

Area Type Link Description
Machine Learning Reference Use the Azure CLI extension for Azure Machine Learning Run experiments to create machine learning models and register machine learning models for customer usage. Package, deploy and track the lifecycle of your machine learning models.
Cognitive Services How-to-guide Create a Cognitive Services resource using the Azure CLI Sign up for Azure Cognitive Services and create an account that has a single-service or multi-service subscription. Use the keys and endpoint generated for you to authenticate your applications.
Azure Monitor How-to guide Create a Log Analytics workspace using the Azure CLI Create and deploy a Log Analytics workspace.

Geographies

Area Type Link Description
Azure Germany Get Started Connect to Azure Germany by using the Azure CLI Using Azure Germany, manage a large subscription through scripts and access features that are not currently available in the global Azure portal.
Azure Government Get Started Connect to Azure Government with Azure CLI Access and start managing resources in Azure Government.

See also