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
$this.AksMid= az aks show --name $this.AksName--resource-group $resourceGroupName--query "identity.principalId"-o tsv 2>$null
499
+
$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)) {
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
+
$this.AksMid=$null
503
+
}
504
+
else {
505
+
$this.AksMid=$aksMid
506
+
}
500
507
501
508
Write-Host"Successfully reconstructed resource names from SolutionSuffix '$solutionSuffix'"-ForegroundColor Green
0 commit comments