Skip to content

Ephemeral Runners creation are failing #31871

@Sai-kesa

Description

@Sai-kesa

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

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

Metadata

Metadata

Labels

Auto-AssignAuto assign by botNetworkaz network vnet/lb/nic/dns/etc...Service AttentionThis issue is responsible by Azure service team.act-quality-productivity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions