Skip to content

Commit f79cacc

Browse files
authored
(AzureCXP) fixes MicrosoftDocs/azure-docs#122914
Updated line no: 163 from "$eventDescription = $registerOutput.description | ConvertFrom-Json;" to "$eventDescription = $unregisterOutput.description | ConvertFrom-Json;"
1 parent cfa1407 commit f79cacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/lighthouse/how-to/monitor-delegation-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if ($showOperations.operationName.value -eq "Microsoft.Resources/tenants/registe
160160
if ($showOperations.operationName.value -eq "Microsoft.Resources/tenants/unregister/action") {
161161
$unregisterOutputs = $showOperations | Where-Object -FilterScript { $_.eventName.value -eq "EndRequest" -and $_.resourceType.value -and $_.operationName.value -eq "Microsoft.Resources/tenants/unregister/action" }
162162
foreach ($unregisterOutput in $unregisterOutputs) {
163-
$eventDescription = $registerOutput.description | ConvertFrom-Json;
163+
$eventDescription = $unregisterOutput.description | ConvertFrom-Json;
164164
$unregisterOutputdata = [pscustomobject]@{
165165
Event = "An Azure customer has unregistered delegated resources from your Azure tenant";
166166
DelegatedResourceId = $eventDescription.delegationResourceId;

0 commit comments

Comments
 (0)