Sunday, October 4, 2020

Azure CLI

 Azure CLI (Command-line Interface) is a command-line tool for Manager azure services. It's like Angular CLI, it provides various commands to manage Azure services in an Account. Before we can start using Azure CLI we need to install it, the latest version of Azure CLI can be installed from the following site.

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

Once Azure CLI is installed run the az --version command to make sure that the installation was done successfully. 


Run the az --help command to view the list of available options / groups


Now we can use the az find <group> command to get help commands for specific groups. For example, the command az find container command provides a list of useful options to deal with containers in Azure.

C:\>az find container

Finding examples...

 Here are the most common ways to use [container]:
Starts all containers in a container group. (autogenerated)
az container start --name mycontainergroup --resource-group myresourcegroup

Create a container group. (autogenerated)
az container create --file containerGroup.yaml --resource-group MyResourceGroup

Restarts all containers in a container group. (autogenerated)
az container restart --name mycontainergroup --resource-group myresourcegroup


 



Search Flipkart Products:
Flipkart.com

No comments: