Get Azure Resources based on Tags in PowerShell

Tags are used to organize the deployed resources in the Azure cloud, we could search the resources by tag key and value.

List all the resources with a specific tag key

Get-AzResource -TagName "Environment"

List all the resources with a specific tag value

Get-AzResource -TagValue "Test"

List all the resources with a specific tag key and value

Get-AzResource -Tag @{Environment="Test"}
Azure
PowerShell

Comments

Leave a Comment

All fields are required. Your email address will not be published.