Azure / Azure/azure-cli

Ephemeral Runners creation are failing

Open
#31,871 9 comments 2 reactions 2 assignees Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign customer-reported Network question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Hi Team,

We are using azure cli and GitHub actions to create a new VM based on the load, from yesterday we are getting Vm' s creation failure with reason: Subnet does not exist , but subnet actually exist in azure subscription, we are having this centralized creating VM work flow from past 2 years and from yesterday we are getting failures, and this failures are getting randomly (currently 4 jobs are failing out of 10 ), we are using api version as 2025-01-01 and others versions as below:
"azure-cli": "2.75.0",
"azure-cli-core": "2.75.0",
"azure-cli-telemetry": "1.1.0",
"extensions": ***
"azure-devops": "1.0.2"

### Related command

- name: Creating the VM
run: |
count=1
while [ $count -le ${{ inputs.count }} ]; do
az vm create --resource-group cstrm-p-eaus-sast-rg --name appsec-ephemeral-$(date '+%Y%m%d%H%M%S')-$GITHUB_RUN_NUMBER --image ${{ env.image }} --public-ip-sku Standard --nic-delete-option delete --os-disk-delete-option delete --admin-username azureuser --admin-password ${{ secrets.AZURE_PASSWORD_AZUSR }} --size ${{ env.size }} --public-ip-address "" --subnet ${{ env.subnet }} --nsg ${{ env.nsg }} --tags ${{ env.tags }} --user-data ${{ env.user-data }} --security-type Standard
count=$((count+1))
done

### Errors

WARNING: The default value of '--size' will be changed to 'Standard_D2s_v5' from 'Standard_DS1_v2' in a future release.
ERROR: Subnet '/subscriptions/04b33af8-29f6-436d-9639-d07a1300084c/resourceGroups/aa-cstrm-network-eastus-rg/providers/Microsoft.Network/virtualNetworks/prod-eastus-10-227-32-0_19-vnet/subnets/iaas-10-227-32-0_22-snet' does not exist.
Error: Process completed with exit code 1.

### Issue script & Debug output

[logs_42222020467.zip](https://github.com/user-attachments/files/21433473/logs_42222020467.zip)

### Expected behavior

subnet exists in that azure subscription and it has been successfully running on few jobs and failing on few jobs

### Environment Summary

Run az version
***
"azure-cli": "2.75.0",
"azure-cli-core": "2.75.0",
"azure-cli-telemetry": "1.1.0",
"extensions": ***
"azure-devops": "1.0.2"
***
***

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.