diff --git a/src/functions/Initialize-AzOpsRepository.ps1 b/src/functions/Initialize-AzOpsRepository.ps1 index 2016e386..d959a068 100644 --- a/src/functions/Initialize-AzOpsRepository.ps1 +++ b/src/functions/Initialize-AzOpsRepository.ps1 @@ -73,7 +73,7 @@ if (-not $SkipRole) { try { Write-PSFMessage -String 'Initialize-AzOpsRepository.Validating.UserRole' - Get-AzADUser -First 1 -ErrorAction Stop + $null = Get-AzADUser -First 1 -ErrorAction Stop Write-PSFMessage -String 'Initialize-AzOpsRepository.Validating.UserRole.Success' } catch { @@ -151,4 +151,4 @@ Write-PSFMessage -String 'Initialize-AzOpsRepository.Duration' -StringValues $stopWatch.Elapsed -Data @{ Elapsed = $stopWatch.Elapsed } } -} \ No newline at end of file +}