Share via

Application Hosting plan ASE

prasantc 996 Reputation points
2023-07-20T16:29:14.0833333+00:00

When trying to redeploy bicep with ASE module I get an error -
Subnet ase-w-sn in VNET ase-dev-vnet is already occupied by service /subscriptions/-6e71-4-/resourceGroups/se-rg/providers/Microsoft.Web/hostingEnvironments/a-ase."\r\n }\r\n }\r\n ],\r\n "Innererror": null\r\n}"}]}]}]}]}]}}

As it finds the hosting services and delegation at the vnet. It works after a remove ASE and remove delegation but it defeats the purpose of idempotency. Unless I am missing something method to this madness.
stackoverflow mention

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Most helpful
  1. Gordon Byers 7,165 Reputation points
    2023-07-20T16:45:54.74+00:00

    I've run into the same issue before, when using a complex modular structure.

    I've checked the bicep repo on GitHub, and i can't see it as an outstanding issue.
    If you have a repro you can share on the repo, i'd encourage you to raise the issue. https://github.com/Azure/bicep/issues

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.