Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vnet cannot be re-deployed when connected to by other resource in the same script #1166

Open
Larocceau opened this issue Nov 29, 2024 · 0 comments

Comments

@Larocceau
Copy link
Contributor

I have an arm template that has a vnet + webApp connected to it:

    let vn = vnet {
        name "my-vnet"
        add_address_spaces [ "10.30.0.0/16" ]
    }
    let app= webApp {
        name "my-web-app"
        operating_system Linux
        runtime_stack Runtime.DotNet80
        link_to_vnet sn
        sku  WebApp.Sku.P0V3
  
    }

    let rg = arm {
        location Location.WestEurope
        add_resources [
            vn
            app
            ]
}


Initial deployment goes OK, but any further deployments fail, because they try to delete the vnet, but that is not possible as long as the webApp is connected to it

Workaround
remove the vnet integration from the webApp before running the deployment

az webapp vnet-integration remove -g {rgName} -n {webAppName}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant