AZ-305

Study mode — explanations shown

1

Design identity, governance, and monitoring solutions

medium

Refer to the exhibit. You run this PowerShell script in an Azure subscription. The script executes successfully. What is the outcome?

Exhibit

Refer to the exhibit.

$resources = Get-AzResource | Where-Object {$_.Tags -eq $null}
foreach ($resource in $resources) {
    $tags = @{"Environment"="Unknown"}
    Update-AzTag -ResourceId $resource.ResourceId -Tag $tags -Operation Merge
}
0 of 120 answered