{"id":18497,"date":"2017-09-07T12:15:43","date_gmt":"2017-09-07T09:15:43","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=18497"},"modified":"2017-09-07T11:05:59","modified_gmt":"2017-09-07T08:05:59","slug":"get-running-azure-cli","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/","title":{"rendered":"Get Up and Running with Azure CLI"},"content":{"rendered":"<p>Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it most efficiently.<\/p>\n<p>As the name CLI says (Command Line Interface), Azure CLI allows you to execute Azure commands from any command line. Because it\u2019s written in Node.js, it\u2019s not tied to a specific type of command line, like Bash or PowerShell \u2014 it should work with any system that\u2019s capable of running Node.js.<\/p>\n<h2>Azure CLI Quick Start<\/h2>\n<p>What\u2019s the easiest way to get started? Well, just a couple of weeks ago, I would have walked you through downloading and setting up Node.js, followed by how to authenticate your CLI instance to your Azure subscription. I can still to that, but before I do, I want to show you a much easier way.<\/p>\n<p>Introduced recently, Azure Portal now comes with an online CLI right inside your browser. So to get started with Azure CLI, all you have to do is to log in to Azure Portal at <a href=\"https:\/\/portal.azure.com\">portal.azure.com<\/a> and click the Cloud Shell icon.<\/p>\n<p><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/icons.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-18499\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/icons.jpg\" alt=\"\" width=\"635\" height=\"115\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/icons.jpg 635w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/icons-300x54.jpg 300w\" sizes=\"(max-width: 635px) 100vw, 635px\" \/><\/a><\/p>\n<p>For those of you interested, Azure Cloud Shell is based on Xterm.js, which is open source. So you can check all the technical details on the <a href=\"https:\/\/github.com\/sourcelair\/xterm.js\">GitHub repository<\/a>.<\/p>\n<p>When opening Cloud Shell for the first time, you need to confirm creation of a Storage Account. That will be used to persist any files in your Cloud Shell.<\/p>\n<p>A new resource group will be created for that storage account, so everything is in its place. Please note that you\u2019ll need to have the right privileges to be allowed to create a storage account.<\/p>\n<p><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloud-shell-storage.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-18500\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloud-shell-storage.jpg\" alt=\"\" width=\"308\" height=\"69\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloud-shell-storage.jpg 308w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloud-shell-storage-300x67.jpg 300w\" sizes=\"(max-width: 308px) 100vw, 308px\" \/><\/a><\/p>\n<p>Azure Cloud Shell is a frontend to a fully fledged Bash. You don\u2019t get root access, but besides that you can do anything that can be done in a Bash session. Plus \u2014 as said earlier \u2014 all the files are persisted. So it\u2019s really as good as any Putty or any other ways of \u201cbashing.\u201d<\/p>\n<p><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudshell.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-18501\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudshell.jpg\" alt=\"\" width=\"596\" height=\"300\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudshell.jpg 596w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudshell-300x151.jpg 300w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/a><\/p>\n<p>When you look at the screenshot, you\u2019ll notice a directory called <code>clouddrive<\/code>. This directory is also accessible from Azure Portal, so you can upload any files to your Cloud Shell.<\/p>\n<h2>How to Upload Files to Azure Cloud Shell<\/h2>\n<p>Select the resource group I showed earlier. There, you\u2019ll find a Storage Account, which does not come with a particularly meaningful name. But because this is a resource group dedicated to Cloud Shell, you shouldn\u2019t have much of a chance to make a wrong guess.<\/p>\n<p>Inside the Storage Account, select Files.<\/p>\n<p><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/storageaccount.jpg\"><img decoding=\"async\" class=\"aligncenter wp-image-18502\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/storageaccount.jpg\" alt=\"\" width=\"860\" height=\"443\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/storageaccount.jpg 903w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/storageaccount-300x154.jpg 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/storageaccount-768x395.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p>Inside the File service, select the one that resembles your cloud drive.<\/p>\n<p><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/fileservice.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-18503\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/fileservice.jpg\" alt=\"\" width=\"538\" height=\"466\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/fileservice.jpg 538w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/fileservice-300x260.jpg 300w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/a><\/p>\n<p>The file share you see on Azure Portal now exactly resembles the home location of your Cloud Shell instance. Do a <code>ls -la<\/code> to see that hidden <em>.cloudconsole<\/em> folder listed in your Bash.<\/p>\n<p><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudconsole.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-18504\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudconsole.jpg\" alt=\"\" width=\"739\" height=\"310\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudconsole.jpg 739w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/cloudconsole-300x126.jpg 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/a><\/p>\n<h2>Working with Azure CLI<\/h2>\n<p>Now that we have this working, I\u2019d like to finally jump into working with Azure CLI. If you prefer to have your own local instance running instead of a browser-based interface, scroll to the bottom of this post. Don\u2019t forget to come back here, once you\u2019re set.<\/p>\n<p>Quite frankly, there\u2019s not too much to be said about how to work with Azure CLI. As with any good command-line tool, the built-in help is great. So to start, just type <code>az<\/code>. That gives you a pretty complete overview on all the resource types you can work with.<\/p>\n<p>To work with VMs, you type `az vm\u00b4, followed by the actual command.<\/p>\n<p>Azure CLI is very hierarchical. For every layer, just add <code>-h<\/code>, and you\u2019ll get a comprehensive description of all available commands.<\/p>\n<h3>My favorite bits of Azure CLI<\/h3>\n<p>Let\u2019s walk through a few of my favorite aspects of working in Azure CLI.<\/p>\n<h2>Azure CLI and Kubernetes<\/h2>\n<p>CLIs have come a long way, so Azure CLI is by far not the first of its kind. Especially platforms-as-a-service, like Kubernetes, which also heavily builds on CLIs for operations. Because Kubernetes is part of the Azure Container Services offering, it only makes sense for Azure CLI to integrate as seamlessly as possible. To install kubectl \u2014 Kubernetes\u2019 CLI \u2014 just issue the following command:<\/p>\n<pre class=\"brush:php\">sudo az acs kubernetes install-cli<\/pre>\n<p>That installs kubectl to your path, allowing you to directly start working with your Kubernetes installation.<\/p>\n<h2>Creating a service principal<\/h2>\n<p>A service principal is a special kind of Azure account. It\u2019s designed to allow apps and services to get access to your Azure resources. For example, kubectl requires a service principal to be able to manage Azure resources inside a Kubernetes cluster.<\/p>\n<p>Let me tell you, creating a service principal can be really hard when you try to do it manually from Azure Portal. Let\u2019s just say I\u2019ve spent hours and hours trying to get this done.<\/p>\n<p>By using Azure CLI, it becomes a one-liner:<\/p>\n<pre class=\"brush:php\">az ad sp create-for-rbac --name SP_NAME --password &lt;password&gt;<\/pre>\n<p>The output will be a JSON document like this:<\/p>\n<pre class=\"brush:php\">{\r\n  \"appId\": \"a1b2c3d4-ad2a-4b31-ab64-7d5b714b7d8d\",\r\n  \"displayName\": \"&lt;your-app-name&gt;\",\r\n\r\n  \"tenant\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"\r\n}<\/pre>\n<p>Usually, you\u2019ll need to use the appId and tenant parameter values for authenticating your apps and services.<\/p>\n<h3>Adding extensions to VM scale-sets<\/h3>\n<p>A VM extension allows you to add functionality to your VMs on the fly. You can make this part of your ARM-templates at deployment time, or you can also add an extension at runtime of the VM.<\/p>\n<p>Extensions become especially powerful when you\u2019re not only working with single VMs, but with VM Scale Sets. While you can add extensions to scale sets, Azure Portal doesn\u2019t (yet) come with the according option in the UI. So for now, you\u2019ll have to use Azure CLI, PowerShell cmdlets, or the plain Azure Management REST API. Coincidence has it that this post is about Azure CLI, so guess what? I\u2019ll cover that part next real quick.<\/p>\n<p>To get a list of available extensions, I suggest you visit Azure Portal. Select an existing VM, scroll down to <em>Extensions<\/em>, and browse the catalog. To find out the necessary parameters for applying the extensions to your VM scale sets (or single VMs), execute:<\/p>\n<pre class=\"brush:php\">az vmss extension image list<\/pre>\n<p>We\u2019ll need the <code>publisher<\/code> and <code>name<\/code> properties.<\/p>\n<p>Once you\u2019ve identified the extension you want to add, issue the following command:<\/p>\n<pre class=\"brush:php\">az vmss extension set -n oneAgentWindows --publisher dynatrace.ruxit -g &lt;your-resgroup-name&gt; --vmss-name &lt;scaleset-name&gt; --settings &lt;settings in json-format&gt;\r\n```\r\n\r\nSettings need to be in JSON-format, make sure you get the escaping done right. Example:\r\n```\r\n--settings \"{\\\"key\\\":\\\"value\\\", \\\"key2\\\": \\\"value2\\\"}\"<\/pre>\n<p>For getting information about an extension\u2019s parameter names and values, please check the publisher\u2019s documentation.<\/p>\n<h2>Lots of light-weight scripting<\/h2>\n<p>In my job, I often have to grant access to various resources to single persons. And every so often, it\u2019s just repetituous, because I did the same thing for the same resource but for another person just the day before. For that purpose, I created small shell scripts that only require adding the username.<\/p>\n<p>I also use this for batch creation of users or resources, <em>eg<\/em>, for training purposes.<\/p>\n<p>!Sign up for a free Codeship Account<\/p>\n<h2>Azure CLI Installation and Setup<\/h2>\n<p>If you don\u2019t want to use Azure CLI from inside Azure Portal, you can also run it on your local machine, of course. According to your environment, the procedure is different. While I could replicate the necessary steps here, it\u2019s probably best to directly link to the official documentation (mainly because it saves me from keeping that part of this post up-to-date): <a href=\"https:\/\/docs.microsoft.com\/de-de\/cli\/azure\/install-azure-cli\">How to install Azure CLI<\/a>.<\/p>\n<p>After you\u2019re done, log in to your Azure subscription by issuing the following command:<\/p>\n<pre class=\"brush:php\">az login<\/pre>\n<p><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/azlogin.png\"><img decoding=\"async\" class=\"aligncenter wp-image-18505\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/azlogin.png\" alt=\"\" width=\"860\" height=\"35\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/azlogin.png 964w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/azlogin-300x12.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2017\/09\/azlogin-768x31.png 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p>Azure CLI comes back to you, asking to open the specified URL in your browser and pasting the code shown. After that, your Azure CLI is connected to your Azure subscription. Pretty neat.<\/p>\n<p>To see what you can do with Azure, let\u2019s head back to where we came from.<\/p>\n<h2>What\u2019s Behind Azure CLI?<\/h2>\n<p>The real fabric underneath all Azure resources is ARM, the Azure Resource Manager; not to be confused with the ARM CPU-architecture. As the name says, it\u2019s the component that orchestrates and controls all Azure Resources.<\/p>\n<p>There are several ways to interact with ARM, and Azure CLI is only one of them. The other options are PowerShell cmdlets, Azure CLI 1.0 (the Python-based predecessor of what we\u2019re talking about here), Azure Management REST API, and Azure Portal itself. Right, Azure Portal itself doesn\u2019t take any shortcuts or secret doors \u2014 it\u2019s just another consumer of the Azure API.<\/p>\n<h2>Summary<\/h2>\n<p>As you\u2019ve seen here, Azure CLI is just one of the many options for interacting with all of your Azure resources. In my opinion, it\u2019s the most versatile, because its Node.js-based nature allows you to operate Azure exactly the same way on any platform (even inside your browser).<\/p>\n<p>Interestingly, Azure Portal itself doesn\u2019t even offer as many options as Azure CLI does. So I can only repeat myself: It\u2019s probably the best way to work with your Azure resources.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"https:\/\/blog.codeship.com\/get-up-and-running-with-azure-cli\/\">Get Up and Running with Azure CLI<\/a> from our <a href=\"http:\/\/www.webcodegeeks.com\/join-us\/wcg\/\">WCG partner<\/a> Martin Gutenbrunner at the <a href=\"http:\/\/blog.codeship.com\/\">Codeship Blog<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it most efficiently. As the name CLI says (Command Line Interface), Azure CLI allows you to execute Azure commands from any command line. Because it\u2019s written in &hellip;<\/p>\n","protected":false},"author":1262,"featured_media":927,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Get Up and Running with Azure CLI - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get Up and Running with Azure CLI - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-07T09:15:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Martin Gutenbrunner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Martin Gutenbrunner\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/\"},\"author\":{\"name\":\"Martin Gutenbrunner\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/f662e321bbb95da63d0353e45e51b7c2\"},\"headline\":\"Get Up and Running with Azure CLI\",\"datePublished\":\"2017-09-07T09:15:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/\"},\"wordCount\":1472,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg\",\"articleSection\":[\"Web Dev\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/\",\"name\":\"Get Up and Running with Azure CLI - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg\",\"datePublished\":\"2017-09-07T09:15:43+00:00\",\"description\":\"Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Dev\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/web-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get Up and Running with Azure CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/f662e321bbb95da63d0353e45e51b7c2\",\"name\":\"Martin Gutenbrunner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/26114b37cd6c874ca921c8d5a0088ff1895c34104c5e86a6400d65784977a686?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/26114b37cd6c874ca921c8d5a0088ff1895c34104c5e86a6400d65784977a686?s=96&d=mm&r=g\",\"caption\":\"Martin Gutenbrunner\"},\"description\":\"Martin Gutenbrunner is a tech lead at Dynatrace Innovation Lab.\",\"sameAs\":[\"https:\/\/blog.codeship.com\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/martin-gutenbrunner\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get Up and Running with Azure CLI - Web Code Geeks - 2026","description":"Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it","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:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/","og_locale":"en_US","og_type":"article","og_title":"Get Up and Running with Azure CLI - Web Code Geeks - 2026","og_description":"Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it","og_url":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2017-09-07T09:15:43+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg","type":"image\/jpeg"}],"author":"Martin Gutenbrunner","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Martin Gutenbrunner","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/"},"author":{"name":"Martin Gutenbrunner","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/f662e321bbb95da63d0353e45e51b7c2"},"headline":"Get Up and Running with Azure CLI","datePublished":"2017-09-07T09:15:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/"},"wordCount":1472,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg","articleSection":["Web Dev"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/","url":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/","name":"Get Up and Running with Azure CLI - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg","datePublished":"2017-09-07T09:15:43+00:00","description":"Azure CLI provides you with one of the most convenient ways to work with Microsoft Azure resources. Here\u2019s how to get up and running and how to use it","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/web-dev-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/web-development\/get-running-azure-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Web Dev","item":"https:\/\/www.webcodegeeks.com\/category\/web-development\/"},{"@type":"ListItem","position":3,"name":"Get Up and Running with Azure CLI"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/f662e321bbb95da63d0353e45e51b7c2","name":"Martin Gutenbrunner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/26114b37cd6c874ca921c8d5a0088ff1895c34104c5e86a6400d65784977a686?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/26114b37cd6c874ca921c8d5a0088ff1895c34104c5e86a6400d65784977a686?s=96&d=mm&r=g","caption":"Martin Gutenbrunner"},"description":"Martin Gutenbrunner is a tech lead at Dynatrace Innovation Lab.","sameAs":["https:\/\/blog.codeship.com"],"url":"https:\/\/www.webcodegeeks.com\/author\/martin-gutenbrunner\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/18497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/1262"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=18497"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/18497\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/927"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=18497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=18497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=18497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}