Enable nodepool update via bicep and update node SKUs (#4322)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Azure SDK Bot 2023-02-02 11:03:30 -08:00 committed by GitHub
parent f1a714585d
commit 1b2378be73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

@ -10,11 +10,7 @@ param(
[switch]$PushImages,
[string]$ClusterGroup,
[string]$DeployId,
[Parameter(ParameterSetName = 'DoLogin', Mandatory = $true)]
[switch]$Login,
[Parameter(ParameterSetName = 'DoLogin')]
[string]$Subscription,
# Default to true in Azure Pipelines environments

View File

@ -117,12 +117,11 @@ function DeployStressTests(
}
$clusterGroup = 'rg-stress-cluster-prod'
$subscription = 'Azure SDK Test Resources'
} elseif (!$clusterGroup -or !$subscription) {
throw "clusterGroup and subscription parameters must be specified when deploying to an environment that is not pg or prod."
}
if ($login) {
if (!$clusterGroup -or !$subscription) {
throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not pg or prod."
}
Login -subscription $subscription -clusterGroup $clusterGroup -pushImages:$pushImages
}
@ -160,7 +159,9 @@ function DeployStressTests(
-environment $environment `
-repositoryBase $repository `
-pushImages:$pushImages `
-login:$login
-login:$login `
-clusterGroup $clusterGroup `
-subscription $subscription
}
if ($FailedCommands.Count -lt $pkgs.Count) {
@ -185,7 +186,9 @@ function DeployStressPackage(
[string]$environment,
[string]$repositoryBase,
[switch]$pushImages,
[switch]$login
[switch]$login,
[string]$clusterGroup,
[string]$subscription
) {
$registry = RunOrExitOnFailure az acr list -g $clusterGroup --subscription $subscription -o json
$registryName = ($registry | ConvertFrom-Json).name