Search This Blog

Sunday, 20 June 2021

Azure Cli

The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.

Get list of commands in csv file

Get-Command | Export-Csv -Path .\AzCommands.csv
clear
      
#List of resource group
az group list
      
#Create VM using CLI
PS /home/cloud> az vm create `
>> --name LabVM1 `
>> --resource-group 72-ed951e1f-accessing-and-using-the-azure-cloud-sh `
>> --image UbuntuLTS `
>> --admin-username azureuser `
>> --generate-ssh-keys


#Vm list
az vm list

#Get Resource Group List
Get-AzResource

#Get Storage account
Get-AzStorageAccount

#Get VM
Get-AzVM

#Get Azure resource by  resource type
Get-AzResource | ft

#remove Azure VM (Provide Azure VM Name and ResourceGroup)
Remove-AzVM

      

2 comments:

  1. The leading Azure Development and its solutions are well explained in this article. The mobile development along with Flutter App development and growing technologies like blockchain application development and IoT Development provide your business with the leading solutions to achieve better growth and scale.

    ReplyDelete

Elasticsearch - Nodes, clusters, and shards

Elastic Stack Video - Load your gun in short time.   Beginner's Crash Course to Ela...

Recent Post