When creating a Service Association Link with GitHub, I get a 'The subnet is in use by another resource' message.
Documentation being followed:
https://docs.github.com/en/organizations/managing-organization-settings/configuring-private-networking-for-github-hosted-runners-in-your-organization
Command:
az resource create --resource-group $RESOURCE_GROUP_NAME --name $NETWORK_SETTINGS_RESOURCE_NAME --resource-type GitHub.Network/networkSettings --properties "{ \"location\": \"$AZURE_LOCATION\", \"properties\" : { \"subnetId\": \"/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$VNET_NAME/subnets/$SUBNET_NAME\", \"businessId\": \"$DATABASE_ID\" }}" --is-full-object --output table --query "{GitHubId:tags.GitHubId, name:name}" --api-version $API_VERSION
Output:
(SubnetInUse) The subnet is in use by another resource.
Code: SubnetInUse
Message: The subnet is in use by another resource.
I had this subnet associated with GitHub previously, then had it removed to debug network issues. Now I am trying to connect it back to GitHub. There are currently no NICs or other Azure resources attached to this subnet.
Is the error 'The subnet is in use by another resource.' coming from Azure or GitHub?