Рет қаралды 601
For Creating Tag in Azure Resource using New-AzTag use `New-AzTag` to apply tag on resource in **Azure**.
```powershell
Create Tag variable
$tags = @{"Dept"="Finance"; "Status"="Normal"}
Get the resource that you want to appply tag on.
$resource = Get-AzResource -Name "Application Insights Smart Detection" -ResourceGroup AdmissionApplication
Apply Tag
New-AzTag -ResourceId $resource.id -Tag $tags
```