From 2099bb4ec3f0a71444fa29caaccc3c48777c7c80 Mon Sep 17 00:00:00 2001 From: Jesper Fajers Date: Mon, 2 May 2022 20:22:42 +0200 Subject: [PATCH] Update src/internal/functions/Get-AzOpsResourceDefinition.ps1 Co-authored-by: Johan Dahlbom --- src/internal/functions/Get-AzOpsResourceDefinition.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/functions/Get-AzOpsResourceDefinition.ps1 b/src/internal/functions/Get-AzOpsResourceDefinition.ps1 index 5581fb19..63c53cd6 100644 --- a/src/internal/functions/Get-AzOpsResourceDefinition.ps1 +++ b/src/internal/functions/Get-AzOpsResourceDefinition.ps1 @@ -183,7 +183,7 @@ ODataQuery = $OdataFilter ExpandProperties = $true } - if($IncludeResourceType -eq "*") { + if ($IncludeResourceType -eq "*") { Write-PSFMessage -Level Verbose @common -String 'Get-AzOpsResourceDefinition.ResourceGroup.Processing.Resources' -StringValues $resourceGroup.ResourceGroupName, $ScopeObject.SubscriptionDisplayName Get-AzResource @paramGetAzResource | Where-Object { $_.Type -notin $SkipResourceType } | ForEach-Object { New-AzOpsScope -Scope $_.ResourceId