You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module removal stage tries to remove the dependency resource that the module uses. It relies on on the namePrefix token being local to perform token replacement for dependency files.
To reproduce
run any module in main that uses dependency resources that cannot be removed.
Code snippet
WARNING: Removalmovedbackforre-try. Reason: [InUseSubnetCannotBeDeleted : SubnetGatewaySubnetisinuseby /subscriptions/***/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworkGateways/***-az-gw-vpn-001/ipConfigurations/vNetGatewayConfig1 and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet. CorrelationId: 8370cdc6-ff9d-4448-b157-ac9e483da70c] VERBOSE: Performing the operation "Execute" on target "Post-resource-removal for [/subscriptions/***/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-***-az-vnet-x-001]".
VERBOSE: ----------------------------------
VERBOSE: Re-tryremovalofremaining [1] resources. Waiting [15] seconds. Round [3|3]
Exception: /home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/resourceRemoval/helper/Remove-ResourceList.ps1:124Line |
124 | throw ('The removal failed for resources [{0}]' -f ((Split-Pa …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Theremovalfailedforresources [adp-***-az-vnet-x-001]
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
module removal stage tries to remove the dependency resource that the module uses. It relies on on the namePrefix token being local to perform token replacement for dependency files.
To reproduce
run any module in main that uses dependency resources that cannot be removed.
Code snippet
Relevant log output
No response
The text was updated successfully, but these errors were encountered: