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
    Preview

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
    Preview
  • Now find the resource group in the sections Refer Here
    Preview
    Preview
  • So the command would be
 az group create --location 'centralus' --name 'fromcli'

Preview
Preview
* 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
    Preview
  • To find any cmdlet in powershell there is a better way
# find the cmdlets
Get-Command
# open the documentation for cmdlet
Get-Help

Preview
Preview
Preview
*

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube