From 206860158463584f41a0e77b5453828b1c8e8c2c Mon Sep 17 00:00:00 2001 From: Miguel Lacouture Date: Mon, 25 Nov 2024 16:57:44 -0500 Subject: [PATCH] Update azure-vnet-hosted-compute-troubleshooting doc (#53267) Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com> --- .../azure-vnet-hosted-compute-troubleshooting.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/data/reusables/actions/azure-vnet-hosted-compute-troubleshooting.md b/data/reusables/actions/azure-vnet-hosted-compute-troubleshooting.md index 3d8228dcee3a..7ef8f8d8ecfb 100644 --- a/data/reusables/actions/azure-vnet-hosted-compute-troubleshooting.md +++ b/data/reusables/actions/azure-vnet-hosted-compute-troubleshooting.md @@ -68,6 +68,20 @@ VNetInjectionSubnetIsFull To fix this, either increase the size of the subnet you are using or reduce the pool's maximum runner count to match your subnet size. +### Cannot delete subnet + +In some cases, a subnet cannot be deleted because it has a Service Association Link (SAL) applied to it. For more information, see "[AUTOTITLE](/organizations/managing-organization-settings/configuring-private-networking-for-github-hosted-runners-in-your-organization#deleting-a-subnet)." + +If you need to identify the network settings resource associated with the subnet, you can run the following `curl` command. +To obtain an Azure Entra token, please refer to the [Azure documentation](https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli). Use the same `api-version` you used to create the resource. + +```shell +curl --request GET \ + --url "https://management.azure.com/subscriptions/{subscriptionId}/providers/GitHub.Network/NetworkSettings?api-version={api-version}&subnetId={subnetId}" \ + --header 'Content-Type: application/json' \ + --header "Authorization: Bearer {entra_token}" +``` + ### Incorrect NSG or firewall rules The "Configuring your Azure resources" procedures list the required openings. However, you may have complex production networks with multiple downstream proxies or firewalls.