Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
Hello Jasmin,
The issue was not caused by a fault in the VM Scale Set itself, but due to a dependency failure with the associated Azure Application Gateway. The Application Gateway configuration contained a reference to an SSL certificate stored in a Key Vault that had been deleted or was no longer reachable. As a result, all update operations on the Application Gateway were failing during its rolling upgrade process.
Since VMSS deletion requires backend network cleanup, including NIC detachment, these operations internally triggered Application Gateway updates. Because those updates consistently failed, the VMSS remained stuck in a “marked for deletion” state, returning HTTP 409 responses for any further operations. This behavior is expected when a resource is pending deletion but blocked by dependent failures.
To resolve the issue, the engineering team applied a backend mitigation by enabling a tenant-level setting to bypass the listener-related failure and allow the Application Gateway to recover. Once the gateway reached a healthy state and completed its pending operations, the dependency chain was cleared.
Following this, the VM Scale Set deletion completed successfully, and the customer was able to proceed with deleting the remaining resources and the entire resource group without further issues.