The Get-InstalledModule cmdlet gets PowerShell modules that are installed on a computer using PowerShellGet. To see all modules installed on the system, use the Get-Module -ListAvailable command.
By default, for v2, the Azure CLI installs in the C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin folder. If you type az and Windows tells you the executable can't be found, the Azure CLI installation folder may not be in your PATH. Find folders in your PATH by running $env:PATH -split ';' .
Installation on Windows PowerShell
- Update to Windows PowerShell 5.1. If you're on Windows 10 version 1607 or higher, you already have PowerShell 5.1 installed.
- Install . NET Framework 4.7. 2 or later.
- Make sure you have the latest version of PowerShellGet. Run Install-Module -Name PowerShellGet -Force .
What is Queue storage? Azure Queue storage is a service for storing large numbers of messages that can be accessed from anywhere in the world via authenticated calls using HTTP or HTTPS.
Hashicorp Terraform is an open-source tool for provisioning and managing cloud infrastructure. It codifies infrastructure in configuration files that describe the topology of cloud resources. The Terraform CLI provides a simple mechanism to deploy and version the configuration files to Azure.
Azure CLI is a cross-platform command-line program that connects to Azure and executes administrative commands on Azure resources. Azure PowerShell is a module that you add to Windows PowerShell or PowerShell Core that enables you to connect to your Azure subscription and manage resources.
The Az PowerShell module is a set of cmdlets for managing Azure resources directly from PowerShell. PowerShell provides powerful features for automation that can be leveraged for managing your Azure resources, for example in the context of a CI/CD pipeline.
The Azure portal is a web-based, unified console that provides an alternative to command-line tools. With the Azure portal, you can manage your Azure subscription using a graphical user interface. You can build, manage, and monitor everything from simple web apps to complex cloud deployments.
Representational State Transfer (REST) APIs are service endpoints that support sets of HTTP operations (methods), which provide create, retrieve, update, or delete access to the service's resources. How to register your client application with Azure Active Directory (Azure AD) to secure your REST requests.
Read-Access Geo-Redundant (RA-GRS)—same as GRS, but allows data to be read from both Azure regions. Object Replication for Block Blob Storage—a special type of replication used only for block blobs, replicating them between a source and target storage account.
The Azure CLI is built in Python. You can use the Azure CLI from both the terminal on your computer and the Azure Cloud Shell, which is a browser-accessible shell. Additionally, Azure CLI is cross-platform, which means IT teams can use it on any OS, including: Linux distributions.
Prerequisites
- Use the Bash environment in Azure Cloud Shell.
- If you prefer, install the Azure CLI to run CLI reference commands. If you're using a local installation, sign in to the Azure CLI by using the az login command. To finish the authentication process, follow the steps displayed in your terminal.
Azure CLI is the command-line interface that creates an environment to create and manage resources. Azure CLI is available on Windows, Mac, Linux, etc. Azure cloud shell is another option that can be browser-accessible and authenticated. Azure cloud shell gives you options to choose from either bash or Powershell.
Direct link: Open a browser to
- Azure portal: Select the Cloud Shell icon on the Azure portal:
- Code snippets: On docs.microsoft.com and Microsoft Learn, select the Try It button that appears with Azure CLI and Azure PowerShell code snippets: Azure CLI Copy. Try It. az account show.
Find tenant ID through the Azure portal
- Sign in to the Azure portal.
- Select Azure Active Directory.
- Select Properties.
- Then, scroll down to the Tenant ID field. Your tenant ID will be in the box.
To sign in interactively, use the Connect-AzAccount cmdlet. Beginning with Az PowerShell module version 5.0. 0, this cmdlet presents an interactive browser based login prompt by default.
View the service principal
- Click Azure Active Directory and then click Enterprise applications.
- Under Application Type, choose All Applications and then click Apply.
- In the search filter box, type the name of the Azure resource that has managed identity enabled or choose it from the list presented.
Commands
| az devops admin | Manage administration operations. |
|---|
| az devops team list-member | List members of a team. |
| az devops team show | Show team details. |
| az devops team update | Update a team's name and/or description. |
| az devops user | Manage users. |
An Azure service principal is an identity created for use with applications, hosted services, and automated tools to access Azure resources. This access is restricted by the roles assigned to the service principal, giving you control over which resources can be accessed and at which level.
Commands
| az devops team create | Create a team. |
|---|
| az devops team list | List all teams in a project. |
| az devops team list-member | List members of a team. |
| az devops team show | Show team details. |
| az devops team update | Update a team's name and/or description. |
Run the Azure CLITo sign in, run the az login command. Run the login command. If the CLI can open your default browser, it will do so and load an Azure sign-in page. Otherwise, open a browser page at and enter the authorization code displayed in your terminal.
NET framework and C# programming language, while Bash is a scripting language based on the C programming language. This will open up a new browser window to log in to Azure. Then you will be able to run Azure CLI commands.
Differences between Bash and PowerShell.
| Resource type | Azure CLI commands |
|---|
| Cosmos DB | az cosmosdb |
More videos on YouTube
- Press CTRL+SHIFT+P.
- Sign in to Microsoft Azure, by typing Azure: Sign In.
- A browser window will open to login to Azure.
- Press CTRL+ SHIFT+P.
- Type Open PowerShell in Cloud Shell or Open Bash in Cloud Shell.
- This will connect you directly to your Cloud Shell running in Azure.