Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump azure/CLI from 1 to 2 #9957

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build-test-images.yml
Expand Up @@ -77,13 +77,13 @@ jobs:
creds: ${{ secrets.AZURE_CREDS }}

- name: Create Azure Resource Group
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az group create -n ${{ env.AZURE_RESOURCE_GROUP }} -l ${{ github.event.inputs.azure_location }} --tags creationTimestamp=$(date +%Y-%m-%dT%T%z)

- name: Create Windows Helper VM
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
PASSWORD="$(/usr/bin/tr -dc "a-zA-Z0-9@#$%^&*()_+?><~\`;" < /dev/urandom | /usr/bin/head -c 24; echo '')"
Expand All @@ -98,7 +98,7 @@ jobs:
az vm open-port --resource-group ${{ env.AZURE_RESOURCE_GROUP }} --name WinDockerHelper --port 2376 --priority 102

- name: Prepare Windows image helper
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
# Installs Windows features, opens SSH and Docker port
Expand All @@ -120,7 +120,7 @@ jobs:
--parameters 'SSHPublicKey=${{ env.SSH_PUB_KEY }}'

- name: Get Windows Helper IPs
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
VM_DETAILS=$(az vm show -d -g ${{ env.AZURE_RESOURCE_GROUP }} -n WinDockerHelper -o json)
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:

- name: Cleanup resources
if: always()
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az group delete -g ${{ env.AZURE_RESOURCE_GROUP }} --yes
8 changes: 4 additions & 4 deletions .github/workflows/windows-hyperv-periodic.yml
Expand Up @@ -86,13 +86,13 @@ jobs:
creds: ${{ secrets.AZURE_CREDS }}

- name: AZResourceGroupCreate
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az group create -n ${{ matrix.AZURE_RESOURCE_GROUP }} -l ${{ env.AZURE_DEFAULT_LOCATION }} --tags creationTimestamp=$(date -u '+%Y-%m-%dT%H:%M:%SZ')

- name: AZTestVMCreate
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
DETAILS=$(az vm create -n winTestVM --admin-username ${{ env.DEFAULT_ADMIN_USERNAME }} --admin-password ${{ env.PASSWORD }} --image ${{ matrix.AZURE_IMG }} -g ${{ matrix.AZURE_RESOURCE_GROUP }} --nsg-rule SSH --size ${{ env.AZURE_DEFAULT_VM_SIZE }} --public-ip-sku Standard -o json)
Expand All @@ -116,7 +116,7 @@ jobs:
echo "VM_PUB_IP=$PUB_IP" >> $GITHUB_ENV

- name: EnableAZVMSSH
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az vm run-command invoke --command-id RunPowerShellScript -n winTestVM -g ${{ matrix.AZURE_RESOURCE_GROUP }} --scripts @$GITHUB_WORKSPACE/script/setup/enable_ssh_windows.ps1 --parameters 'SSHPublicKey=${{ env.SSH_PUB_KEY }}'
Expand Down Expand Up @@ -349,7 +349,7 @@ jobs:

- name: ResourceCleanup
if: always()
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az group delete -g ${{ matrix.AZURE_RESOURCE_GROUP }} --yes
8 changes: 4 additions & 4 deletions .github/workflows/windows-periodic.yml
Expand Up @@ -86,13 +86,13 @@ jobs:
creds: ${{ secrets.AZURE_CREDS }}

- name: AZResourceGroupCreate
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az group create -n ${{ matrix.AZURE_RESOURCE_GROUP }} -l ${{ env.AZURE_DEFAULT_LOCATION }} --tags creationTimestamp=$(date -u '+%Y-%m-%dT%H:%M:%SZ')

- name: AZTestVMCreate
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
DETAILS=$(az vm create -n winTestVM --admin-username ${{ env.DEFAULT_ADMIN_USERNAME }} --admin-password ${{ env.PASSWORD }} --image ${{ matrix.AZURE_IMG }} -g ${{ matrix.AZURE_RESOURCE_GROUP }} --nsg-rule SSH --size ${{ env.AZURE_DEFAULT_VM_SIZE }} --public-ip-sku Standard -o json)
Expand All @@ -116,7 +116,7 @@ jobs:
echo "VM_PUB_IP=$PUB_IP" >> $GITHUB_ENV

- name: EnableAZVMSSH
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az vm run-command invoke --command-id RunPowerShellScript -n winTestVM -g ${{ matrix.AZURE_RESOURCE_GROUP }} --scripts @$GITHUB_WORKSPACE/script/setup/enable_ssh_windows.ps1 --parameters 'SSHPublicKey=${{ env.SSH_PUB_KEY }}'
Expand Down Expand Up @@ -301,7 +301,7 @@ jobs:

- name: ResourceCleanup
if: always()
uses: azure/CLI@v1
uses: azure/CLI@v2
with:
inlinescript: |
az group delete -g ${{ matrix.AZURE_RESOURCE_GROUP }} --yes