Search This Blog

Showing posts with label Azure CLI. Show all posts
Showing posts with label Azure CLI. Show all posts

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

      

API Authentication

Reference · Identity & Access API Authentication Methods Four common ways a client proves who it is to a server, ord...

Recent Post