{"id":511,"date":"2021-09-02T21:25:36","date_gmt":"2021-09-02T21:25:36","guid":{"rendered":"https:\/\/thecloudmarathoner.com\/?p=511"},"modified":"2021-09-02T21:52:22","modified_gmt":"2021-09-02T21:52:22","slug":"how-to-check-and-update-azure-cli-verison-on-your-workstation","status":"publish","type":"post","link":"https:\/\/www.thecloudmarathoner.com\/index.php\/2021\/09\/02\/how-to-check-and-update-azure-cli-verison-on-your-workstation\/","title":{"rendered":"How to check and update Azure CLI version on your workstation?"},"content":{"rendered":"\n<p>Hello friends,<\/p>\n\n\n\n<p>I was prompted to update my CLI and wanted to share this easy experience&nbsp;with everyone.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"570\" src=\"\/wp-content\/uploads\/2021\/09\/upgrade-azure-cli-1024x570.jpg\" alt=\"\" class=\"wp-image-516\" srcset=\"\/wp-content\/uploads\/2021\/09\/upgrade-azure-cli-1024x570.jpg 1024w, \/wp-content\/uploads\/2021\/09\/upgrade-azure-cli-300x167.jpg 300w, \/wp-content\/uploads\/2021\/09\/upgrade-azure-cli-768x428.jpg 768w, \/wp-content\/uploads\/2021\/09\/upgrade-azure-cli-1200x668.jpg 1200w, \/wp-content\/uploads\/2021\/09\/upgrade-azure-cli.jpg 1268w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p><br>There is an easy straightforward process to check &amp; update your favourite Azure CLI in a few minutes without leaving the command line tool of your choice.<\/p>\n\n\n\n<p>There are 2 commands that you would ever need going forward, assuming that your version of CLI is already &#8220;2.x&#8221;.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Check your az cli version<\/h4>\n\n\n\n<p>Just run the <kbd>az version --help<\/kbd> command first.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"486\" src=\"\/wp-content\/uploads\/2021\/09\/az-cli-upgrade-1.png\" alt=\"\" class=\"wp-image-512\" srcset=\"\/wp-content\/uploads\/2021\/09\/az-cli-upgrade-1.png 940w, \/wp-content\/uploads\/2021\/09\/az-cli-upgrade-1-300x155.png 300w, \/wp-content\/uploads\/2021\/09\/az-cli-upgrade-1-768x397.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Check the AZ CLI version<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Running update on AZ CLI<\/h4>\n\n\n\n<p>Next, run the <kbd>az upgrade<\/kbd> command and press key  <kbd>Y<\/kbd> when prompted to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"127\" src=\"\/wp-content\/uploads\/2021\/09\/az-cli-upgrade-2.png\" alt=\"\" class=\"wp-image-513\" srcset=\"\/wp-content\/uploads\/2021\/09\/az-cli-upgrade-2.png 923w, \/wp-content\/uploads\/2021\/09\/az-cli-upgrade-2-300x41.png 300w, \/wp-content\/uploads\/2021\/09\/az-cli-upgrade-2-768x106.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Upgrade the AZ CLI version<\/figcaption><\/figure>\n\n\n\n<p>And finally, check the updated version and its extensions if needed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"510\" src=\"\/wp-content\/uploads\/2021\/09\/az-cli-upgrade-3.png\" alt=\"\" class=\"wp-image-514\" srcset=\"\/wp-content\/uploads\/2021\/09\/az-cli-upgrade-3.png 977w, \/wp-content\/uploads\/2021\/09\/az-cli-upgrade-3-300x157.png 300w, \/wp-content\/uploads\/2021\/09\/az-cli-upgrade-3-768x401.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Verify upraded version and Bicep<\/figcaption><\/figure>\n\n\n\n<p>In case your AZ CLI is up to date, you could always run <kbd>az bicep upgrade<\/kbd> command and get the job done.<\/p>\n\n\n\n<p>Stay tuned for more Azure automation &amp; Security related posts.<\/p>\n\n\n\n<p>F\u1d0f\u029f\u029f\u1d0f\u1d21 \u1d0d\u1d07 \ud83c\udfaf \u1d00\u0274\u1d05 become \u1d00&nbsp;<a href=\"https:\/\/www.linkedin.com\/feed\/hashtag\/?keywords=cloudmarathoner&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6831288713784410112\">#cloudmarathoner<\/a>&nbsp;\u26c5\ud83c\udfc3\u200d\u2642\ufe0f\ud83c\udfc3\u200d\u2640\ufe0f &#8211; \ud835\udc0b\ud835\udc04\ud835\udc13&#8217;\ud835\udc12 \ud835\udc02\ud835\udc0e\ud835\udc0d\ud835\udc0d\ud835\udc04\ud835\udc02\ud835\udc13 \ud83d\udc4d<\/p>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_511\" class=\"pvc_stats all  \" data-element-id=\"511\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Hello friends, I was prompted to update my CLI and wanted to share this easy experience&nbsp;with everyone. There is an easy straightforward process to check &amp; update your favourite Azure CLI in a few minutes without leaving the command line tool of your choice. There are 2 commands that you would ever need going forward, &hellip; <a href=\"https:\/\/www.thecloudmarathoner.com\/index.php\/2021\/09\/02\/how-to-check-and-update-azure-cli-verison-on-your-workstation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to check and update Azure CLI version on your workstation?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,16,2,18],"tags":[],"class_list":["post-511","post","type-post","status-publish","format-standard","hentry","category-azure-bicep","category-cloud-101","category-infrastructure-as-code-iac","category-azure"],"_links":{"self":[{"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/posts\/511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":6,"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":521,"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/posts\/511\/revisions\/521"}],"wp:attachment":[{"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecloudmarathoner.com\/index.php\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}