2021-02-05 16:31:47 +03:00
|
|
|
# Copyright (C) Microsoft Corporation. All rights reserved.
|
|
|
|
# https://aka.ms/yaml
|
2021-07-19 16:13:21 +03:00
|
|
|
trigger: none
|
|
|
|
|
2021-02-05 16:31:47 +03:00
|
|
|
parameters:
|
|
|
|
- name: original_node_count
|
|
|
|
displayName: "Original Node Count"
|
|
|
|
type: number
|
|
|
|
default: 3
|
|
|
|
values:
|
|
|
|
- 3
|
|
|
|
- 14
|
|
|
|
- name: scale_up_node_count
|
|
|
|
displayName: "Scale Up Node Count +"
|
|
|
|
type: number
|
|
|
|
default: 2
|
|
|
|
values:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
- 4
|
|
|
|
- 5
|
|
|
|
- 6
|
|
|
|
- name: region
|
|
|
|
displayName: "Region to run pipeline"
|
|
|
|
type: string
|
|
|
|
default: "eastus"
|
|
|
|
values:
|
2021-07-13 15:32:15 +03:00
|
|
|
- "australiaeast"
|
|
|
|
- "australiasoutheast"
|
|
|
|
- "brazilsouth"
|
2021-02-17 17:04:30 +03:00
|
|
|
- "canadacentral"
|
2021-07-13 15:32:15 +03:00
|
|
|
- "canadaeast"
|
|
|
|
- "centralus"
|
2021-02-17 17:04:30 +03:00
|
|
|
- "eastasia"
|
2021-07-13 15:32:15 +03:00
|
|
|
- "eastus"
|
|
|
|
- "eastus2"
|
|
|
|
- "francecentral"
|
2021-02-17 17:04:30 +03:00
|
|
|
- "japaneast"
|
|
|
|
- "japanwest"
|
|
|
|
- "koreacentral"
|
2021-07-13 15:32:15 +03:00
|
|
|
- "koreasouth"
|
2021-02-17 17:04:30 +03:00
|
|
|
- "northeurope"
|
2021-07-13 15:32:15 +03:00
|
|
|
- "northcentralus"
|
|
|
|
- "southcentralus"
|
2021-02-17 17:04:30 +03:00
|
|
|
- "southeastasia"
|
2021-07-13 15:32:15 +03:00
|
|
|
- "southeastindia"
|
2021-02-17 17:04:30 +03:00
|
|
|
- "uksouth"
|
2021-07-13 15:32:15 +03:00
|
|
|
- "ukwest"
|
|
|
|
- "westus"
|
|
|
|
- "westus2"
|
|
|
|
- "westus3"
|
|
|
|
- "westeurope"
|
|
|
|
- "westindia"
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
- name: tf_config
|
|
|
|
displayName: "Select terraform config to setup"
|
2021-02-05 16:31:47 +03:00
|
|
|
type: string
|
|
|
|
default: "azureblobfiler"
|
|
|
|
values:
|
|
|
|
- "1-filer"
|
|
|
|
- "proxy"
|
|
|
|
- "azureblobfiler"
|
|
|
|
- name: image
|
|
|
|
displayName: "Select vfxt image to run. Defaults to latest"
|
|
|
|
type: string
|
2021-10-18 17:06:20 +03:00
|
|
|
default: "microsoft-avere:vfxt:avere-vfxt-node:latest"
|
2021-02-05 16:31:47 +03:00
|
|
|
values:
|
|
|
|
- "microsoft-avere:vfxt:avere-vfxt-node:latest"
|
2021-10-17 19:47:46 +03:00
|
|
|
- "microsoft-avere:vfxt:avere-vfxt-node:9.1.0"
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
- "microsoft-avere:vfxt:avere-vfxt-node:8.0.1"
|
|
|
|
- "microsoft-avere:vfxt:avere-vfxt-node:6.3.0"
|
2021-02-24 06:13:17 +03:00
|
|
|
- "microsoft-avere:vfxt-preview:avere-vfxt-node:latest"
|
|
|
|
- name: controller_image
|
|
|
|
displayName: "Controller Image Offering (default: latest public)"
|
|
|
|
type: string
|
|
|
|
default: "microsoft-avere:vfxt:avere-vfxt-controller:latest"
|
|
|
|
values:
|
|
|
|
- "microsoft-avere:vfxt:avere-vfxt-controller:latest"
|
|
|
|
- "microsoft-avere:vfxt-preview:avere-vfxt-controller:latest"
|
2021-02-05 16:31:47 +03:00
|
|
|
- name: run_vdbench
|
|
|
|
displayName: "Run vdbench - only runs with azureblobfiler"
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
- name: vdbench_config
|
|
|
|
displayName: "vdbench config - only runs with azureblobfiler"
|
|
|
|
type: string
|
|
|
|
default: "inmem"
|
|
|
|
values:
|
|
|
|
- "ondisk"
|
|
|
|
- "inmem"
|
|
|
|
- name: run_scale_up
|
|
|
|
displayName: "Run scale-up"
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
- name: run_scale_down
|
|
|
|
displayName: "Run scale-down (only runs if scale-up is selected)"
|
|
|
|
type: boolean
|
2021-11-04 22:41:02 +03:00
|
|
|
default: true
|
2021-02-05 16:31:47 +03:00
|
|
|
- name: run_destroy_and_cleanup
|
|
|
|
displayName: "Run terraform destroy and rg cleanup."
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
- name: ssh_pub_key
|
|
|
|
displayName: "Optional: Pass in public ssh key, it would be placed on controller."
|
|
|
|
type: string
|
|
|
|
default: "."
|
|
|
|
|
|
|
|
variables:
|
|
|
|
SSH_PUBLIC_KEY: '${{ parameters.ssh_pub_key}}'
|
2021-02-24 06:13:17 +03:00
|
|
|
|
2021-02-05 16:31:47 +03:00
|
|
|
jobs:
|
|
|
|
- job: Terraform_vFXT
|
|
|
|
timeoutInMinutes: 180
|
|
|
|
cancelTimeoutInMinutes: 40
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-latest
|
2021-02-24 06:13:17 +03:00
|
|
|
steps:
|
2021-02-05 16:31:47 +03:00
|
|
|
- template: templates/setup_ssh.yml
|
|
|
|
- template: templates/setup_envars.yml
|
|
|
|
parameters:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
tf_config: ${{ parameters.tf_config }}
|
2021-02-05 16:31:47 +03:00
|
|
|
region: ${{ parameters.region }}
|
|
|
|
- template: templates/terraform_setup.yml
|
|
|
|
parameters:
|
|
|
|
original_node_count: ${{ parameters.original_node_count }}
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
tf_config: ${{ parameters.tf_config }}
|
2021-02-05 16:31:47 +03:00
|
|
|
image: ${{ parameters.image }}
|
2021-02-24 06:13:17 +03:00
|
|
|
controller_image: ${{ parameters.controller_image }}
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
scale_up_node_count: ${{ parameters.scale_up_node_count }}
|
|
|
|
vdbench_config: ${{ parameters.vdbench_config }}
|
2021-02-24 06:13:17 +03:00
|
|
|
|
2021-02-05 16:31:47 +03:00
|
|
|
- ${{ if ne(parameters.ssh_pub_key, '.') }}:
|
|
|
|
- template: templates/add_sshkey.yml
|
|
|
|
|
|
|
|
- ${{ if eq(parameters.run_vdbench, true) }}:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
- ${{ if eq(parameters.tf_config, 'azureblobfiler') }}:
|
|
|
|
- template: templates/terraform_run.yml
|
2021-02-24 06:13:17 +03:00
|
|
|
parameters:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
run: vdbench_run
|
2021-02-05 16:31:47 +03:00
|
|
|
|
|
|
|
- ${{ if eq(parameters.run_scale_up, true) }}:
|
2021-11-15 18:08:14 +03:00
|
|
|
- bash: echo "##vso[build.updatebuildnumber]${BUILD_BUILDNUMBER} (Scale-Up)"
|
|
|
|
displayName: "Tag Build with RG Name "
|
|
|
|
condition: always()
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
- template: templates/terraform_run.yml
|
2021-02-05 16:31:47 +03:00
|
|
|
parameters:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
run: scaleup
|
2021-02-24 06:13:17 +03:00
|
|
|
|
2021-02-05 16:31:47 +03:00
|
|
|
- ${{ if eq(parameters.run_scale_up, true) }}:
|
|
|
|
- ${{ if eq(parameters.run_scale_down, true) }}:
|
2021-11-15 18:08:14 +03:00
|
|
|
- bash: echo "##vso[build.updatebuildnumber]${BUILD_BUILDNUMBER} (Scale-Down)"
|
|
|
|
displayName: "Tag Build with RG Name "
|
|
|
|
condition: always()
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
- template: templates/terraform_run.yml
|
2021-02-24 06:13:17 +03:00
|
|
|
parameters:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
run: scaledown
|
2021-11-15 18:08:14 +03:00
|
|
|
- ${{ if eq(parameters.run_vdbench, true) }}:
|
|
|
|
- template: templates/vdbench_save.yml
|
|
|
|
parameters:
|
|
|
|
vdbench_config: ${{ parameters.vdbench_config }}
|
2021-02-05 16:31:47 +03:00
|
|
|
- ${{ if eq(parameters.run_destroy_and_cleanup, true) }}:
|
|
|
|
- ${{ if eq(parameters.run_vdbench, true) }}:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
- ${{ if eq(parameters.tf_config, 'azureblobfiler') }}:
|
|
|
|
- template: templates/terraform_run.yml
|
2021-02-24 06:13:17 +03:00
|
|
|
parameters:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
run: vdbench_destroy
|
2021-11-15 18:08:14 +03:00
|
|
|
condition: always()
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
- template: templates/terraform_run.yml
|
2021-02-24 06:13:17 +03:00
|
|
|
parameters:
|
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315)
* terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner.
* add sleep
* remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID
* terraform config rename
* remove linux user
* remove sudo
* logging for terraform cmds
* && and rg delete error check
* variable changes
* succeeded vs always
* vfxt create logs
* tf config
* az login
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* remove dual check
* update log messages, remove az logins, purposely fail to see failure in pipeline
* remove all logins
* change error message
* remove >&2, echo tests
* add back >&2, add 1 second sleep, remove sets
* add check for tf complete
* change output
* fix file names
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Update templates/cloud_init/cloud_init.client.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* address PR comments
* add delete comment
* add error check on regex
* Update templates/terraform_setup.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* add back endgroup
* add sleep for az cmd
* Update templates/terraform_run.yml
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
* Change errors with |& to pipestatus[0] and remove old vfxt node versions
* logging
* Additional logging changes
* PIPESTATUS in terraform_run, extra check_rc in terraform_setup
Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
|
|
|
run: destroy
|
|
|
|
condition: always()
|
2021-02-05 16:31:47 +03:00
|
|
|
- template: templates/rg_delete.yml
|
2021-07-19 21:58:04 +03:00
|
|
|
- template: templates/public_ip_delete.yml
|