Total Page Preview:   000000005788

How to Create Azure Resource Group Using Power-shell Command in Microsoft Azure

In this article I am going to explain How to Create Azure Resource Group Using Power-shell Command in Microsoft Azure

Create Azure Resource Group using powershell command with ARM Scripts:

#-------- TenantId -------------#

Get TenantId from the Azure Portal: 
Get TenantId In Azure
 
$tenantid = 'd29b7a9b-dddd-7777-kkkk-3c5c6c3eeeb0'
 
#----------Your UserId and Password--------------------#
$username =  'xxxxxxxxx@live.com'
$password = 'xxxxxxxxxxx' | ConvertTo-SecureString -asPlainText -Force
 
$cred = New-Object System.Management.Automation.PSCredential($username, $password)
Login-AzureRmAccount -TenantId $tenantid -Credential $cred
 
#------------------------If you have multiple subscriptionId in single account-----------#
$subscriptionId = (Get-AzureRmSubscription | Out-GridView -Title "Select an Azure Subscription …" -PassThru).SubscriptionId
 
#------------------------for single subscriptionId -----------#
$subscriptionId = (Get-AzureRmSubscription).SubscriptionId
 
#------------ Create Resource Group  -------------#
New-AzureRmResourceGroup -Name "ITGroup" -Location "Central US"  #--- Central US, West US, East Us --#
 
 
Create Azure Resource Group using powershell command with ARM:
Create Azure Resource Group Using PowerShell
 
By Brijesh Kumar
Thanks 

 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments

Counsel
13-Nov-2017
That is a really good tip particularly to those new to the blogosphere. Brief but very accurate info… Many thanks for sharing this one. A must read post!
Rhem
16-Oct-2021
Hello! I juѕt would like to give you a big thumbs up for the excellent info you have g᧐t here on this post. I'll be coming ƅacк to your blog for more soon.
Gehlert
04-Nov-2021
I aam reցular reader, hoow are ʏou eѵeryƄody? This piece of writing posted at this web page is truly pleasant.
Mulga
03-Nov-2021
Ɍeally nice layout and good content, practicaⅼly nothing else we need :D.

                           
                           

                           

                           

Facebook User: