Skip to content

Commit

Permalink
fix bug in Unregister-AzsEnvironment around gathering cloudId
Browse files Browse the repository at this point in the history
  • Loading branch information
BradleyBartlett committed Nov 30, 2018
1 parent 0759315 commit 37f065b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Registration/RegisterWithAzure.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ Function UnRegister-AzsEnvironment{
foreach ($resource in $registrationResources)
{
$resourceObject = Get-AzureRmResource -ResourceId "/subscriptions/$($AzureContext.Subscription.SubscriptionId)/resourceGroups/$ResourceGroupName/providers/Microsoft.AzureStack/registrations/$($resource.name)"
$resourceCloudId = (($resourceObject.Properties.ToString()) | ConvertFrom-Json).cloudId
$resourceCloudId = $resourceObject.Properties.CloudId
if ($resourceCloudId -eq $stampInfo.CloudId)
{
$registrationResource = $resourceObject
Expand Down

0 comments on commit 37f065b

Please sign in to comment.