Azure-docs: State that a subnet can only be associated with 1 app service

Created on 12 Apr 2019  Â·  20Comments  Â·  Source: MicrosoftDocs/azure-docs

The statement "The new feature requires an unused subnet in your Resource Manager VNet." implies that the subnet can be associated to only 1 app service.

In fact when trying to associate the same vNet/subnet combination in the portal, the following error occurs
Subnet SUBNET_NAME in VNET VNET_NAME is already occupied by service /​s​u​b​s​c​r​i​p​t​i​o​n​s​/...​/​r​e​s​o​u​r​c​e​G​r​o​u​p​s​/​...​/​p​r​o​v​i​d​e​r​s​/​M​i​c​r​o​s​o​f​t​.​W​e​b​/​s​e​r​v​e​r​f​a​r​m​s​/AppServiceName


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 app-servicsvc assigned-to-author doc-bug doc-idea triaged

Most helpful comment

Hi all,
Please clarify the statement so everyone can understand here this limitation:

  • Can a Subnet (Not a Vnet)- be used by more than one Web App (App Service app) ?

All 20 comments

Hi everyone,

We are unable to add VNET integration to our new App Service and App Service plan, as the subnet is already occupied by a previous app service plan it was integrated with, that we've since deleted.

We've submitted a Support Request to Microsoft, but as the VNET Integration feature is still in preview, we're wondering if anyone else has experienced similar issues?

Additional steps we've taken so far:
1) We've even tried deleting the resource group the old app service and app service plan was in, but still have no success.

2) Next, we tried deleting the subnet with the intention of recreating it, then trying to add VNET integration to our app service again. However, we've had no success with deleting the subnet either, experiencing the same issue as described in November 2018, in this post:

https://social.msdn.microsoft.com/Forums/officeocs/en-US/6979fdac-e20b-4801-beb8-b09ce846ec54/unable-to-delete-vnet-or-subnet?forum=WAVirtualMachinesVirtualNetwork

Thanks for the feedback! We are currently investigating and will update you shortly.

@DOMZE, I went through steps outlined above. I created a vnet/subnet and was able to assign it to the app service. Now, a vnet I had configured with a gateway and associated public ip I was not able to assign to the app service due to the associated public ip. That is a separate issue which I don't believe addresses your question. If it does, please let me know. I also didn't run into any issues disconnecting one configured vnet and connecting a separate vnet to the app service using the Vnet integration preview blade. Could you elaborate further on how you configured your vnet/subnet? I want to replicate the same issue you ran into.

Regards,

Ryan

Hi @RyanHill-MSFT ,

Thanks for testing.

To actually reproduce the problem:
Create a vNet call it vNetTest with a subnet (/27) call it subnetA. Associate it to a web app call it webAppA
Create another app service plan with another web app call it webAppB

Try to associate vNetTest/subnetA to webAppB

You will get the error above

Hi @DOMZE thanks for your provided steps. You can always use the Vnet Integration blade to disconnect application from the vnet and then reassoicate vnet to a different webapp. So I do believe the doc is correct. However, in the portal, you shouldn't be able to select the vnet if it's associated to an app service. I'll send this feedback to the appropiate team.

Thanks and regards,

Ryan

Hi @RyanHill-MSFT
yes what I meant by my statement is that once a subnet is associated to a web app, the subnet is thus associated to the app service it belongs to and you cannot add other web apps from other app services to it, thus it's a 1 to 1 association.

Thank you

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

@AidanTfL sorry for this inconvenience. I'll dig and see what I can find out.

@AidanTfL sorry for this inconvenience. I'll dig and see what I can find out.

@AidanTfL Have you been able to reproduce this issue, or is it a specific issue with one of your Virtual Networks?
(Source: from the separate Issue I raised here:)
https://github.com/MicrosoftDocs/azure-docs/issues/29335


I believe our issue occurred due to a bug in Azure, where the App Service and App Service Plan hadn't been 100% deleted. Everything was deleted other than the VNET reservation...

This issue is a known issue with the 'New VNET Integration (Preview)' feature to the App Service Engineering team.

By making a support request within the portal, we were able to get this fixed within our subscriptions.

If anyone has a similar issue, you can raise a support request via the Portal, if you have a support plan. Alternatively, email: [email protected] to be granted a one-time free Technical support request.

Note: please be advised only 1 App Service Plan can be attached to a subnet with new VNET Integration (Preview).

I think this is linked. I have created a subnet and connected an app without issue.
I've created a second subnet in the VNET and was able to associate to a second app plan. However, my app is unable to make a connection? Is there limitation on the number Apps Plans and Subnets per vnet?

Hi all,
Please clarify the statement so everyone can understand here this limitation:

  • Can a Subnet (Not a Vnet)- be used by more than one Web App (App Service app) ?

Any update on having multiple App plans connecting to their own subnet within the vnet?
I get the following error when using tcpping.

Connection attempt failed: A socket operation encountered a dead network

Let me see what I can find out @psallis

Hey @RyanHill-MSFT any luck?

@RyanHill-MSFT, I currently have 2 App Services (each in separate App Service Plans) connected to a vnet gateway via P2S. I want to retire the gateway and connect via vnet integration subnet. Since only 1 App Service Plan can integrate with a vnet subnet, I was planning to create a second integration subnet (sn2) in the same vnet and associate the second App Service Plan with sn2. Has my intended configuration supported? Looks like @psallis had a problem with this.

Hi all,
Please clarify the statement so everyone can understand here this limitation:

  • Can a Subnet (Not a Vnet)- be used by more than one Web App (App Service app) ?

In the documentation it states
"The integration subnet can only be used by only one App Service plan"

I don't understand why you would need a /27 subnet if you can only use a single webapp.

https://docs.microsoft.com/en-us/azure/app-service/web-sites-integrate-with-vnet#regional-vnet-integration
The above article states the following ...

  • When VNet Integration is used with VNets in the same region as your app, it requires the use of a delegated integration subnet with at least 32 addresses in it.

    • This feature is supported for Windows app production workloads with the following limitations:



      • The integration subnet can only be used by only one App Service Plan



Given the above constraints, I need 2 delegated integration subnets in my vnet because I have 2 App Services each in their own App Service Plan.

Controlled
From: Sean Dailey notifications@github.com
Sent: Monday, July 15, 2019 3:28 PM
To: MicrosoftDocs/azure-docs azure-docs@noreply.github.com
Cc: Steven C Braunschweiger steven.braunschweiger@kodakalaris.com; Comment comment@noreply.github.com
Subject: Re: [MicrosoftDocs/azure-docs] State that a subnet can only be associated with 1 app service (#29302)

[CAUTION: This email originated from outside of Kodak Alaris. Do not click links or open attachments unless you recognize the sender and know the content is safe.]


Hi all,
Please clarify the statement so everyone can understand here this limitation:

  • Can a Subnet (Not a Vnet)- be used by more than one Web App (App Service app) ?

This is all I want to understand as well. I don't understand why you would need a /27 subnet if you can only use a single webapp.

-
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_MicrosoftDocs_azure-2Ddocs_issues_29302-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAHQFKQFZB5D7AJ5SXCTBQJTP7TFT5A5CNFSM4HFQEOC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ6W64I-23issuecomment-2D511537009&d=DwMCaQ&c=skUQKLuTFULvQUMqV0uyBaBvPxsA7Wk8MKjvMTLjY3w&r=AG3Kt_07K7E4Yd8XdZqByEZ184kyFkP5T8GGRljR_4Pz7xEzHcUTG5aBomsabf1h&m=hcJuRhnRGdfHCgE1XMDbT02WR17KJEdmxlarQi8AGxA&s=klZzfTqTXaQwqcPMMojL1b2c70Ht7n-rzsCfta6z6zs&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AHQFKQFMSFXG3RFKXFTYYELP7TFT5ANCNFSM4HFQEOCQ&d=DwMCaQ&c=skUQKLuTFULvQUMqV0uyBaBvPxsA7Wk8MKjvMTLjY3w&r=AG3Kt_07K7E4Yd8XdZqByEZ184kyFkP5T8GGRljR_4Pz7xEzHcUTG5aBomsabf1h&m=hcJuRhnRGdfHCgE1XMDbT02WR17KJEdmxlarQi8AGxA&s=vRZk0LBwUaP4j576P9nsD1fu1YEnImJsniZyXtViIkI&e=.

Basically we have the same issue.

Web App 1 connects to Subnet 1
Web App 2 connects to Subnet 2

Now everything OK. Then we disconnect both Web App to both subnet.

Web App 2 connects to Subnet 1
Web App 1 connects to Subnet 2

When the time web app 2 connects to subnet 1, it failed due to Subnet 1 is already occupied by a previous app service plan.

It may take few hours and few days to release the subnet 1.
I guess this is still preview that's why we have this issue?

The docs have been updated previously to indicate: "The integration subnet can only be used by only one App Service plan" and "You can have only one regional VNet Integration per App Service plan. Multiple apps in the same App Service plan can use the same VNet."

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ponant picture Ponant  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

varma31 picture varma31  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments