Microsoft Azure - Create Resource Group with Tags using PowerShell Last Updated : 30 Mar, 2023 Comments Improve Suggest changes Like Article Like Report Pre-requisite: Microsoft Azure: Resource Tagging and Best Practices In this article, I am going to show you how to create resource groups with tags using PowerShell in Microsoft Azure from Azure Cloud Shell in simple easy steps. Let's get started. Prerequisite: Contributor Access on Subscription to create a resource group in Azure Subscription. Steps to Create a Resource GroupStep 1: Log in to Azure Portal Step 2: Access the Cloud Shell from the Portal Step 3: Switch to PowerShell Console Step 4: Create a PowerShell file named createRGwithTags.ps1 $ touch createRGwithTags.ps1Step 5: Open a file to code in createRGwithTags.ps1 $ code createRGwithTags.ps1 Copy and paste the below PowerShell code in the createRGwithTags.ps1 file. Modify the Parameter according to your needs to deploy a resource group. # Parameteres $RGroupName = "<Add resource group name" $RGroupLocation = "<Add location name>" ## Add/Modify Tags of your Choice $ResourceGroupTags = @{ "Environment" = "TEST"; "SystemCriticality" = "LOW"; "BusinessOwner" = "GeeksforGeeks"; "BusinessOwnerEmail" = "[email protected]"; "CostCenter" = "XYZ"; "SupportTeam" = "XYZ" } # Create Resource Group New-AzResourceGroup \ -Name $RGroupName \ -Location $RGroupLocation \ -Tag $ResourceGroupTagsStep 6: After making the changes in the script. Run the createRGwithTags.ps1 file ./createRGwithTags.ps1 Comment More infoAdvertise with us Next Article Microsoft Azure - Create Resource Group with Tags using PowerShell jaysurya9 Follow Improve Article Tags : Technical Scripter Microsoft Azure DevOps Technical Scripter 2022 azure +1 More Similar Reads Microsoft Azure - Update Resource Group Tags using PowerShell Script Pre-requisite: Azure, Microsoft Azure: Resource Tagging and Best Practices Here In this article, we will show you how to update tags on existing resource groups using Azure PowerShell script. For this operation will be using Azure Cloud Shell to perform this action. Most importantly to update azure 2 min read Microsoft Azure - Get Azure VM Properties using Azure PowerShell The purpose of using the Azure PowerShell Commands is to quickly analyze the overall properties of VM/VMs at once the filtering the with select and where conditions. To find the properties of an Azure VM, you can perform the following commands in Azure Cloud Shell to get the details. Command: Get-Az 2 min read Microsoft Azure - Resizing Virtual Machine Using PowerShell Script In this article, we will look into the process of resizing azure VMs at once using the Azure PowerShell automation script in the Azure portal by using the cloud shell. Advantages of using the method approach: Resizing Multiple VMs at once in a follow for select subscriptionSaves the time of the User 2 min read Microsoft Azure - Using PowerShell Core on Linux PowerShell Core on Linux is now integrated into Azure Cloud Shell. PowerShell used to be only available on Windows. Now, with PowerShell Core, it is cross-platform and runs on macOS and lots of Linux distributions like Ubuntu and Red Hat on ARM-Based platforms and even on Windows. This allows you to 3 min read Microsoft Azure - Count of Azure Resources using Resource Graph Query Graph Query is Azure can be easier to understand if you are familiar with Querying languages like SQL. In this article, we will keep track of the Azure resources using the Resource Query graph. For this first open the Azure Resource Graph Explorer in Azure Portal to Run the following below Queries 1 3 min read Microsoft Azure - How to a Add a Tag Policy for Resource Group? Pre-requisite: Azure Here in this article, we will show how to assign and Add a Tag Policy for Resource Group in Azure from Azure Portal. With this Add a Tag Policy for Resource Groups we can maintain Real-time control and compliance assessment at scale for all the resource groups within a scope. As 2 min read How To Create Azure Resource Group Using Terraform ? As more organizations adopt multi-cloud strategies and deploy applications in diverse regions and instances, managing this stack has grown much more intricate. By way of solving problems manually, the provisioning process might take a lot of time, may be incorrect sometimes, or pave the way to incon 11 min read Microsoft Azure - Check Resource Owner in Azure using KQL In this article, we will see how we can find the creation date of resources by using the Kusto Query Language. Azure KQL Queries helps in finding the resource creation date, time, created user email,...etc. Note: You cannot retrieve log data if it is more than 90 days using KQL. In this case store l 2 min read Microsoft Azure - Resource Tagging and Best Practices Tagging is used to organize your Azure resources, resource groups, subscriptions, and management groups hierarchy. Each tag consists of a name and a value pair. If you were working at the project level there should be some tagging compliance to organize your Azure resources, resource groups, subscri 2 min read How to Create Virtual Network in Azure using PowerShell ? Microsoft Azure provides various resources and services to provide us with a scalable environment for development and testing processes. Azure provides a virtual machine service, which allows us to leverage the resources virtually. We may have more than one virtual machine as a resource, according t 9 min read Like