azure-cli: Webapp vnet-integration complains it is missing a delegation that exists
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az webapp vnet-integration add
Errors:
(SubnetMissingRequiredDelegation) Subnet /subscriptions/XXXX/resourceGroups/myrg/providers/Microsoft.Network/virtualNetworks/VNET858634624/subnets/Subnet858634624 requires any of the following delegation(s) [Microsoft.DBforPostgreSQL/flexibleServers] to reference service association link /subscriptions/XXXX/resourceGroups/myrg/providers/Microsoft.Network/virtualNetworks/VNET858634624/subnets/Subnet858634624/serviceAssociationLinks/Subnet858634624-service-association-link.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Was trying to follow this tutorial: https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/tutorial-django-app-service-postgres?tabs=clone
Once I got to the vnet-integration add
step, I got this error. I ran vnet subnet update
to add the delegation, though I thought the webapp up
command did this for me. The subnet does in fact show the flexibleServers delegation on the subnet, yet this command always fails.
When I try to set the vnet integration via portal, the VNET doesn’t even show up, so I’m not sure if there is a bug or the service has changed or I’m just doing something wrong.
Expected Behavior
This should work?
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI
azure-cli 2.19.1
Additional Context
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (8 by maintainers)
@mksuni, looks like this article we not updated.
As far as I can gather the tutorial is still not corrected: https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/tutorial-django-app-service-postgres