{"id":4835,"date":"2022-04-14T13:02:15","date_gmt":"2022-04-14T05:02:15","guid":{"rendered":"https:\/\/www.jameseduard.com\/?p=4835"},"modified":"2022-04-14T13:02:15","modified_gmt":"2022-04-14T05:02:15","slug":"how-to-install-the-azure-cli-on-windows-using-powershell","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=4835","title":{"rendered":"How to Install the Azure CLI on Windows using PowerShell"},"content":{"rendered":"\n\n\n<p class=\"wp-block-paragraph\">In this article I\u2019ll guide you How to Install the Azure CLI on Windows using PowerShell.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.  To install the Azure CLI, you can download it from the location below,<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Cli<\/a><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">2. To install the Azure CLI using PowerShell, use the below command<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">Invoke-WebRequest -Uri https:\/\/aka.ms\/installazurecliwindows -\nOutFile .\\AzureCLI.msi\nStart-Process msiexec.exe -Wait -ArgumentList '\/I AzureCLI.msi\n\/quiet'\nrm .\\AzureCLI.msi<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To check if the Az CLI is installed successfully run the&nbsp;<strong>Az<\/strong>&nbsp;in the cmd or the PowerShell.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">Microsoft Windows [Version 10.0.19044.1586]\n(c) Microsoft Corporation. All rights reserved.\n\nC:\\Users\\JamesEduard>az\n\nWelcome to Azure CLI!\n---------------------\nUse `az -h` to see available commands or go to https:\/\/aka.ms\/cli.\n\nTelemetry\n---------\nThe Azure CLI collects usage data in order to improve your experience.\nThe data is anonymous and does not include commandline argument values.\nThe data is collected by Microsoft.\n\nYou can change your telemetry settings with `az configure`.\n\n     \/\\\n    \/  \\    _____   _ _  ___ _\n   \/ \/\\ \\  |_  \/ | | | \\'__\/ _\\\n  \/ ____ \\  \/ \/| |_| | | |  __\/\n \/_\/    \\_\\\/___|\\__,_|_|  \\___|\n\nWelcome to the cool new Azure CLI!\n\nUse `az --version` to display the current version.\nHere are the base commands:\n\n    account             : Manage Azure subscription information.\n    acr                 : Manage private registries with Azure Container Registries.\n    ad                  : Manage Azure Active Directory Graph entities needed for Role Based Access\n                         Control.\n    advisor             : Manage Azure Advisor.\n    aks                 : Manage Azure Kubernetes Services.\n    ams                 : Manage Azure Media Services resources.\n    apim                : Manage Azure API Management services.\n    appconfig           : Manage App Configurations.\n    appservice          : Manage App Service plans.\n    backup              : Manage Azure Backups.\n    batch               : Manage Azure Batch.\n    billing             : Manage Azure Billing.\n    bot                 : Manage Microsoft Azure Bot Service.\n    cache               : Commands to manage CLI objects cached using the `--defer` argument.\n    cdn                 : Manage Azure Content Delivery Networks (CDNs).\n    cloud               : Manage registered Azure clouds.\n    cognitiveservices   : Manage Azure Cognitive Services accounts.\n    configure           : Manage Azure CLI configuration. This command is interactive.\n    consumption         : Manage consumption of Azure resources.\n    container           : Manage Azure Container Instances.\n    cosmosdb            : Manage Azure Cosmos DB database accounts.\n    deployment          : Manage Azure Resource Manager template deployment at subscription scope.\n    deploymentmanager   : Create and manage rollouts for your service.\n    disk                : Manage Azure Managed Disks.\n    disk-encryption-set : Disk Encryption Set resource.\n    dla                 : Manage Data Lake Analytics accounts, jobs, and catalogs.\n    dls                 : Manage Data Lake Store accounts and filesystems.\n    dms                 : Manage Azure Data Migration Service (DMS) instances.\n    eventgrid           : Manage Azure Event Grid topics, event subscriptions, domains and domain\n                         topics.\n    eventhubs           : Manage Azure Event Hubs namespaces, eventhubs, consumergroups and geo\n                         recovery configurations - Alias.\n    extension           : Manage and update CLI extensions.\n    feature             : Manage resource provider features.\n    feedback            : Send feedback to the Azure CLI Team!\n    find                : I'm an AI robot, my advice is based on our Azure documentation as well as\n                         the usage patterns of Azure CLI and Azure ARM users. Using me improves\n                         Azure products and documentation.\n    functionapp         : Manage function apps. To install the Azure Functions Core tools see\n                         https:&#47;&#47;github.com\/Azure\/azure-functions-core-tools.\n    group               : Manage resource groups and template deployments.\n    hdinsight           : Manage HDInsight resources.\n    identity            : Managed Service Identities.\n    image               : Manage custom virtual machine images.\n    interactive         : Start interactive mode. Installs the Interactive extension if not\n                         installed already.\n    iot                 : Manage Internet of Things (IoT) assets.\n    iotcentral          : Manage IoT Central assets.\n    keyvault            : Manage KeyVault keys, secrets, and certificates.\n    kusto               : Manage Azure Kusto resources.\n    lab                 : Manage Azure DevTest Labs.\n    lock                : Manage Azure locks.\n    login               : Log in to Azure.\n    logout              : Log out to remove access to Azure subscriptions.\n    managedapp          : Manage template solutions provided and maintained by Independent Software\n                         Vendors (ISVs).\n    managedservices     : Manage the registration assignments and definitions in Azure.\n    maps                : Manage Azure Maps.\n    mariadb             : Manage Azure Database for MariaDB servers.\n    monitor             : Manage the Azure Monitor Service.\n    mysql               : Manage Azure Database for MySQL servers.\n    netappfiles         : Manage Azure NetApp Files (ANF) Resources.\n    network             : Manage Azure Network resources.\n    openshift           : Manage Azure Red Hat OpenShift Services.\n    policy              : Manage resource policies.\n    postgres            : Manage Azure Database for PostgreSQL servers.\n    ppg                 : Manage Proximity Placement Groups.\n    provider            : Manage resource providers.\n    redis               : Manage dedicated Redis caches for your Azure applications.\n    relay               : Manage Azure Relay Service namespaces, WCF relays, hybrid connections, and\n                         rules.\n    reservations        : Manage Azure Reservations.\n    resource            : Manage Azure resources.\n    rest                : Invoke a custom request.\n    role                : Manage user roles for access control with Azure Active Directory and\n                         service principals.\n    search              : Manage Azure Search services, admin keys and query keys.\n    security            : Manage your security posture with Azure Security Center.\n    servicebus          : Manage Azure Service Bus namespaces, queues, topics, subscriptions, rules\n                         and geo-disaster recovery configuration alias.\n    sf                  : Manage and administer Azure Service Fabric clusters.\n    sig                 : Manage shared image gallery.\n    signalr             : Manage Azure SignalR Service.\n    snapshot            : Manage point-in-time copies of managed disks, native blobs, or other\n                         snapshots.\n    sql                 : Manage Azure SQL Databases and Data Warehouses.\n    storage             : Manage Azure Cloud Storage resources.\n    tag                 : Manage resource tags.\n    version             : Show the versions of Azure CLI modules and extensions in JSON format by\n                         default or format configured by --output.\n    vm                  : Manage Linux or Windows virtual machines.\n    vmss                : Manage groupings of virtual machines in an Azure Virtual Machine Scale Set\n                         (VMSS).\n    webapp              : Manage web apps.\n\nC:\\Users\\JamesEduard><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this article I\u2019ll guide you How to Install the Azure CLI on Windows using PowerShell. 1. To install the Azure CLI, you can download it from the location below, 2. To install the Azure CLI using PowerShell, use the below command To check if the Az CLI is installed successfully run the&nbsp;Az&nbsp;in the cmd<\/p>\n","protected":false},"author":1,"featured_media":4836,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[99,47,73],"tags":[882,93,883,879,102],"class_list":["post-4835","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-how-tos","category-powershell","tag-az-cli","tag-azure","tag-azure-cli","tag-cli","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/4835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4835"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/4835\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}