Skip to content

Commit

Permalink
Merge pull request #2565 from sebassem/ag_patches
Browse files Browse the repository at this point in the history
Fixing az aks get-credentials in retail
  • Loading branch information
sebassem authored May 19, 2024
2 parents ef398f7 + 89aa2ae commit a3f91f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azure_jumpstart_ag/artifacts/PowerShell/Modules/common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ function Deploy-VirtualizationInfrastructure {
}

function Deploy-AzContainerRegistry {
az login --service-principal --username $Env:spnClientID --password=$Env:spnClientSecret --tenant $Env:spnTenantId | Out-File -Append -FilePath ($AgConfig.AgDirectories["AgLogsDir"] + "\AzCLI.log")
az account set -s $subscriptionId
az aks get-credentials --resource-group $Env:resourceGroup --name $Env:aksStagingClusterName --admin | Out-File -Append -FilePath ($AgConfig.AgDirectories["AgLogsDir"] + "\ClusterSecrets.log")
kubectx staging="$Env:aksStagingClusterName-admin" | Out-File -Append -FilePath ($AgConfig.AgDirectories["AgLogsDir"] + "\ClusterSecrets.log")

Expand Down

0 comments on commit a3f91f2

Please sign in to comment.