0% found this document useful (0 votes)
34 views

Powershell Command For Azure

Command for Azure

Uploaded by

saurabhssp268
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Powershell Command For Azure

Command for Azure

Uploaded by

saurabhssp268
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Powershell Command

Get-Azlocation
(Get-Alocation).location // gives all the location

Creating 9 Resource Groups

New-AzResourceGroup -Name “production” -Location “southindia”

New-AzResourceGroup -Name “dev” -Location “southindia”

New-AzResourceGroup -Name “finance” -Location “southindia”

New-AzResourceGroup -Name “HR” -Location “southindia”

New-AzResourceGroup -Name “Marketing” -Location “southindia”

New-AzResourceGroup -Name “Testing” -Location “southindia”

New-AzResourceGroup -Name “DevOPS” -Location “southindia”

New-AzResourceGroup -Name “MainServer” -Location “southindia”

Assigning the Tags

New-AzResourceGroup -Name "production" -Location "southindia" -Tag


@{Environment="Production"; Department="IT"}

az group create --name “BashTest” --location "southindia" --tags


Environment=“Testing” Department="IT"

Remove-AzResourceGroup -Name “MainServer” -Force

az group create --name Production --location southindia

az group create --name <ResourceGroupName> --location <Location>

az ad user create --display-name Saurav \


--user-principal-name [email protected] \
--password sa12387@

You might also like