{"id":4118,"date":"2017-02-27T00:00:00","date_gmt":"2017-02-27T00:00:00","guid":{"rendered":"https:\/\/azure.microsoft.com\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0"},"modified":"2025-06-12T08:55:34","modified_gmt":"2025-06-12T15:55:34","slug":"announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/","title":{"rendered":"Azure Command Line 2.0 now generally available"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Back in September, we announced <a href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-azure-cli-2-preview\/\">Azure CLI 2.0 Preview<\/a>. Today, we\u2019re announcing the general availability of the <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/vm\">vm<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/acs\">acs<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/storage\">storage<\/a> and <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/network\">network<\/a> commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to&nbsp; container cluster creation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today\u2019s announcement means that customers can now use these commands in production, with full support by Microsoft both through our Azure support channels or GitHub. We don\u2019t expect breaking changes for these commands in new releases of Azure CLI 2.0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This new version of Azure CLI should feel much more native to developers who are familiar with command line experiences in the bash enviornment for Linux and macOS with simple commands that have smart defaults for most common operations and that support tab completion and pipe-able outputs for interacting with other text-parsing tools like grep, cut, jq and the popular JMESpath query syntax\u00e2\u20ac\u2039. It\u2019s <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/install-az-cli2\"><u>easy to install<\/u><\/a> on the platform of your choice and learn.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">During the preview period, we\u2019ve received valuable feedback from early adopters and have added new features based on that input. The number of Azure services supported in Azure CLI 2.0 has grown and we now have command modules for sql, documentdb, redis, and many other services on Azure. We also have new features to make working with Azure CLI 2.0 more productive. For example, we\u2019ve added the &#8220;&#8211;wait&#8221; and &#8220;&#8211;no-wait&#8221; capabilities that enable users to respond to external conditions or continue the script without waiting for a response.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019re also very excited about some new features in Azure CLI 2.0, particularly the combination of Bash and CLI commands, and support for new platform features like Azure Managed Disks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s how to get started using Azure CLI 2.0.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-the-azure-cli\">Installing the Azure CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The CLI runs on Mac, Linux, and of course, Windows. Get started now by <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/install-az-cli2\">installing the CLI<\/a> on whatever platform you use.&nbsp; Also, review our <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/overview\">documentation and samples<\/a> for full details on getting started with the CLI, and how to access to services provided via Azure using the CLI in scripts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s an example of the features included with the &#8220;vm command&#8221;:<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.webp\" alt=\"text\" class=\"wp-image-10329 webp-format\" data-orig-src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.webp\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"working-with-the-azure-cli\">Working with the Azure CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Accessing Azure and starting one or more VMs is easy. Here are two lines of code that will create a\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-resource-manager\/resource-group-portal\">resource group<\/a>\u00a0(a way to group and Manage Azure resources) and a Linux VM using\u00a0<a href=\"https:\/\/azuremarketplace.microsoft.com\/en-us\/marketplace\/apps\/Canonical.UbuntuServer?tab=PlansAndPrice\">Azure\u2019s latest Ubuntu VM Image<\/a>\u00a0in the westus2 region of Azure.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\naz group create -n MyResourceGroup -l westus2\naz vm create -g MyResourceGroup -n MyLinuxVM --image ubuntults \n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Using the public IP address for the VM (which you get in the output of the vm create command or can look up separately using \u201caz vm list-ip-addresses\u201d command), connect directly to your VM from the command line:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\nssh\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">For Windows VMs on Azure, you can connect using remote desktop (\u201cmstsc&nbsp;\u201d from Windows desktops).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The \u201ccreate vm\u201d command is a long running operation, and it may take some time for the VM to be created, deployed, and be available for use on Azure. In most automation scripting cases, waiting for this command to complete before running the next command may be fine, as the result of this command may be used in next command. However, in other cases, you may want to continue using other commands while a previous one is still running and waiting for the results from the server. Azure CLI 2.0 now supports a new \u201c\u2013no-wait\u201d option for such scenarios.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\naz vm create -n MyLinuxVM2 -g MyResourceGroup --image UbuntuLTS --no-wait\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">As with Resource Groups and a Virtual Machines, you can use the Azure CLI 2.0 to create other resource types in Azure using the\u00a0\u201caz\u00a0create\u201d naming pattern.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, you can create managed resources on Azure like WebApps within Azure AppServices:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\n# Create an Azure AppService that we can use to host multiple web apps \naz appservice plan create -n MyAppServicePlan -g MyResourceGroup\n\n# Create two web apps within the appservice (note: name param must be a unique DNS entry)\naz appservice web create -n MyWebApp43432 -g MyResourceGroup --plan MyAppServicePlan\naz appservice web create -n MyWEbApp43433 -g MyResourceGroup --plan MyAppServicePlan\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Read the\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/\">CLI 2.0 reference docs<\/a>\u00a0to learn more about the create command options for various Azure resource types. The Azure CLI 2.0 lets you list your Azure resources and provides different output formats.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\n--output Description\njson json string. json is the default. Best for integrating with query tools etc\njsonc colorized json string.\ntable table with column headings. Only shows a curated list of common properties for the selected resource type in human readable form.\ntsv tab-separated values with no headers. optimized for piping to other tex-processing commands and tools like grep, awk, etc.\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">You can use the \u201c\u2013query\u201d option with the list command to find specific resources, and to customize the properties that you want to see in the output. Here are a few examples:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\n# list all VMs in a given Resource Group\naz vm list -g MyResourceGroup --output table\n\n# list all VMs in a Resource Group whose name contains the string \u2018My\u2019\naz vm list --query \u201c[?contains(resourceGroup,\u2019My\u2019)]\u201d --output tsv\n\n# same as above but only show the 'VM name' and 'osType' properties, instead of all default properties for selected VMs\naz vm list --query \u201c[?contains(resourceGroup,\u2019My\u2019)].{name:name, osType:storageProfile.osDisk.osType}\u201d --output table\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Azure CLI 2.0 supports management operations against SQL Server on Azure. You can use it to create servers, databases, data warehouses, and other data sources; and to show usage, manage administrative logins, and run other management operations.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\n# Create a new SQL Server on Azure\naz sql server create -n MySqlServer -g MyResourceGroup --administrator-login  --administrator-login-password  -l westus2\n\n# Create a new SQL Server database\naz sql db create -n MySqlDB -g MyResourceGroup --server-name MySqlServer -l westus2\n\n# list available SQL databases on Server within a Resource Group\naz sql db list -g MyResourceGroup --server-name MySqlServer\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"scripting-with-the-new-azure-cli-2-0-features\">Scripting with the new Azure CLI 2.0 features<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The new ability to combine Bash and Azure CLI 2.0 commands in the same script can be a big time saver, especially if you\u2019re already familiar with Linux command-line tools like grep, cut, jq and&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/query-az-cli2\">JMESpath queries<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s start with a simple example that stops a VM in a resource group using a VM\u2019s resource ID (or multiple IDs by spaces):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\naz vm stop \u2013ids \u2018\u2019\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">You can also stop a VM in a resource group using the VM\u2019s name. Here\u2019s how to stop the VM we created above:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\naz vm stop -g resourceGroup -n simpleVM\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">For a more complicated use case, let\u2019s imagine we have a large number of VMs in a resource group, running Windows and Linux.\u00a0 To stop all running Linux VMs in that resource group, we can use a JMESpath query, like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; gutter: false; title: ; quick-code: false; notranslate\" title=\"\">\nos=\"Linux\"\nrg=\"resourceGroup\"\nps=\"VM running\"\nrvq=\"[].{resourceGroup: resourceGroup, osType: storageProfile.osDisk.osType, powerState: powerState, id:id}| [?osType=='$os']|[?resourceGroup=='$rg']| [?powerState=='$ps']|[].id\"\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">This script issues an az vm stop command, but only for VMs that are returned in the JMESpath query results (as defined in the rvq variable). The osType, resourceGroup and powerState parameters are provided values. The resourceGroup parameter is compared to a VM\u2019s resourceGroup property, and the osType parameter is compared to a VM\u2019s storageProfile.osDisk.osType property, and all matching results are returned (in\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Tab-separated_values\">tsv format<\/a>) for use by the \u201caz vm stop\u201d command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"azure-container-services-in-the-cli\">Azure Container Services in the CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Azure Container Service (ACS) simplifies the creation, configuration, and management of a cluster of virtual machines that are preconfigured to run container applications. You can use Docker images with DC\/OS (powered by Apache Mesos), Docker Swarm or Kubernetes for orchestration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Azure CLI supports the creation and scaling of ACS clusters via the az acs command. You can discover full documentation for&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/acs\">Azure Container Services<\/a>, as well as a tutorial for&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/container-service\/container-service-create-acs-cluster-cli\">deploying an ACS DC\/OS cluster with Azure CLI commands<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"scale-with-azure-managed-disks-using-the-cli\">Scale with Azure Managed Disks using the CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Microsoft recently\u00a0<a href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-managed-disks-and-larger-scale-sets\/\">announced<\/a>\u00a0the general availability of Azure Managed Disks to simplify the management and scaling of Virtual Machines. You can create a Virtual Machine with an implicit Managed Disk for a specific disk image, and also create managed disks from blob storage or standalone with the az vm disk command. Updates and snapshots are easy as well \u2014 check out what you can do with\u00a0<a href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/azure-cli-managed-disks\/\">Managed dDisks from the CLI<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"start-using-azure-cli-2-0-today\">Start using Azure CLI 2.0 today!<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Whether you are an existing CLI user or starting a new Azure project, it\u2019s easy to get started with the CLI at&nbsp;<a href=\"https:\/\/aka.ms\/CLI\">https:\/\/aka.ms\/CLI<\/a>&nbsp;and master the command line with our updated&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/\">docs and samples<\/a>. Check out topics like&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/install-az-cli2\">installing and updating the CLI<\/a>, working with&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/virtual-machines-linux-quick-create-cli?toc=%2fcli%2fazure%2ftoc.json\">Virtual Machines<\/a>, creating a&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/virtual-machines-linux-create-cli-complete?toc=%2fcli%2fazure%2ftoc.json\">complete Linux environment<\/a>&nbsp;including VMs, Scale Sets, Storage, and network, and deploying Azure&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/app-service-web\/app-service-web-get-started-nodejs?toc=%2fcli%2fazure%2ftoc.json\">Web Apps<\/a>&nbsp;\u2013 and let us know what you think!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Azure CLI 2.0 is open source and on&nbsp;<a href=\"https:\/\/github.com\/azure\/azure-cli\">GitHub<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the next few months, we\u2019ll provide more updates. As ever, we want your ongoing feedback! Customers using the vm, storage and network commands in production can contact Azure Support for any issues, reach out via&nbsp;<a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/azure-cli\">StackOverflow using the azure-cli tag<\/a>, or email us directly at&nbsp;<a href=\"mailto:azfeedback@microsoft.com\">azfeedback@microsoft.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we\u2019re announcing the general availability of the vm, acs, storage and network commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to container cluster creation. See below for an example of the features included with the vm command.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1467],"tags":[],"audience":[3055,3053,3056],"content-type":[],"product":[],"tech-community":[],"topic":[],"coauthors":[1101],"class_list":["post-4118","post","type-post","status-publish","format-standard","hentry","category-compute","audience-developers","audience-it-decision-makers","audience-it-implementors","review-flag-1680286581-295","review-flag-1680286584-658","review-flag-2-1680286581-601","review-flag-gener-1680286584-335","review-flag-new-1680286579-546","review-flag-vm-1680286585-143"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Azure Command Line 2.0 now generally available | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"Today, we\u2019re announcing the general availability of the vm, acs, storage and network commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to container cluster creation. See below for an example of the features included with the vm command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Azure Command Line 2.0 now generally available | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"Today, we\u2019re announcing the general availability of the vm, acs, storage and network commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to container cluster creation. See below for an example of the features included with the vm command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-27T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-12T15:55:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.png\" \/>\n<meta name=\"author\" content=\"Kamaljit Bath\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kamaljit Bath\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/kamaljit-bath\/\",\"@type\":\"Person\",\"@name\":\"Kamaljit Bath\"}],\"headline\":\"Azure Command Line 2.0 now generally available\",\"datePublished\":\"2017-02-27T00:00:00+00:00\",\"dateModified\":\"2025-06-12T15:55:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/\"},\"wordCount\":1245,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.png\",\"articleSection\":[\"Compute\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/\",\"name\":\"Azure Command Line 2.0 now generally available | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.png\",\"datePublished\":\"2017-02-27T00:00:00+00:00\",\"dateModified\":\"2025-06-12T15:55:34+00:00\",\"description\":\"Today, we\u2019re announcing the general availability of the vm, acs, storage and network commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to container cluster creation. See below for an example of the features included with the vm command.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.webp\",\"width\":902,\"height\":768,\"caption\":\"text\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compute\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/compute\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Azure Command Line 2.0 now generally available\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117\",\"name\":\"shakir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"caption\":\"shakir\"},\"sameAs\":[\"https:\/\/azure.microsoft.com\"],\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Azure Command Line 2.0 now generally available | Microsoft Azure Blog","description":"Today, we\u2019re announcing the general availability of the vm, acs, storage and network commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to container cluster creation. See below for an example of the features included with the vm command.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/","og_locale":"en_US","og_type":"article","og_title":"Azure Command Line 2.0 now generally available | Microsoft Azure Blog","og_description":"Today, we\u2019re announcing the general availability of the vm, acs, storage and network commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to container cluster creation. See below for an example of the features included with the vm command.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2017-02-27T00:00:00+00:00","article_modified_time":"2025-06-12T15:55:34+00:00","og_image":[{"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.png","type":"","width":"","height":""}],"author":"Kamaljit Bath","twitter_card":"summary_large_image","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Kamaljit Bath","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/kamaljit-bath\/","@type":"Person","@name":"Kamaljit Bath"}],"headline":"Azure Command Line 2.0 now generally available","datePublished":"2017-02-27T00:00:00+00:00","dateModified":"2025-06-12T15:55:34+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/"},"wordCount":1245,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.png","articleSection":["Compute"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/","name":"Azure Command Line 2.0 now generally available | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.png","datePublished":"2017-02-27T00:00:00+00:00","dateModified":"2025-06-12T15:55:34+00:00","description":"Today, we\u2019re announcing the general availability of the vm, acs, storage and network commands in Azure CLI 2.0. These commands provide a rich interface for a large array of use cases, from disk and extension management to container cluster creation. See below for an example of the features included with the vm command.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#primaryimage","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2017\/02\/c056925f-4fef-4872-a6da-4715ef4982ba.webp","width":902,"height":768,"caption":"text"},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/announcing-general-availability-of-vm-storage-and-network-azure-cli-2-0\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"Compute","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/compute\/"},{"@type":"ListItem","position":3,"name":"Azure Command Line 2.0 now generally available"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117","name":"shakir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4","url":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","caption":"shakir"},"sameAs":["https:\/\/azure.microsoft.com"],"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/4118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=4118"}],"version-history":[{"count":2,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/4118\/revisions"}],"predecessor-version":[{"id":41655,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/4118\/revisions\/41655"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=4118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=4118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=4118"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=4118"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=4118"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=4118"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=4118"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=4118"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=4118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}