You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$aksMid= az aks show --name $this.AksName--resource-group $resourceGroupName--query "identity.principalId"-o tsv 2>$null
500
-
if ($LASTEXITCODE-ne0-or [string]::IsNullOrWhiteSpace($aksMid)) {
499
+
$this.AksMid= az aks show --name $this.AksName--resource-group $resourceGroupName--query "identity.principalId"-o tsv 2>$null
500
+
if ($LASTEXITCODE-ne0-or [string]::IsNullOrWhiteSpace($this.AksMid)) {
501
501
Write-Host"Warning: Failed to retrieve AKS managed identity for '$($this.AksName)' in resource group '$resourceGroupName'.`n`tThe AKS cluster may not exist or you may not have sufficient permissions."-ForegroundColor Yellow
502
502
$this.AksMid=$null
503
503
}
504
-
else {
505
-
$this.AksMid=$aksMid
506
-
}
507
504
508
505
Write-Host"Successfully reconstructed resource names from SolutionSuffix '$solutionSuffix'"-ForegroundColor Green
0 commit comments