Azure Classroomnotes 12/Jun/2022

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




*

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%