Using Azure From Commandline
Configuration
- Install the necessary softwares in your system follow the classroom video
- Once Azure CLi is installed
az login
- Once the Azure Powershell is installed
Connect-AzAccount
- Ensure Azure CLI and Powershell Extensions are installed in Visual Studio Code
Activity 1: Creating a Resource Group
- Manually
Azure CLI:
- Command line interface for any os developed in python by microsoft
- The basic syntax
az <service> [<sub-service>] <action> [<--arg1> <value1> .. <--argn> <valuen>]
- Finding the right command line. Open this link Refer Here and navigate to the reference section
- Now find the resource group in the sections Refer Here
- So the command would be
az group create --location 'centralus' --name 'fromcli'
* Refer Here for the changes done in the script
Azure Powershell
- Powershell has cmdlets which are in the form of
<verb>-<noun>
- In the case of Azure the cmdlets will be in the form
<verb>-Az<noun>
- Refer Here for the Azure Powershell docs
- To find any cmdlet in powershell there is a better way
# find the cmdlets
Get-Command
# open the documentation for cmdlet
Get-Help
*