Hello ken-3385
We understood that you're facing an issue with your ExpressRoute circuit being stuck in a "Failed" state that's preventing you from deleting it.
Run the following commands to reset a circuit that is in a failed state:
$ckt = Get-AzExpressRouteCircuit -Name "ExpressRouteARMCircuit" -ResourceGroupName "ExpressRouteResourceGroup"
Set-AzExpressRouteCircuit -ExpressRouteCircuit $ckt
Refer this Microsoft document for more information https://learn.microsoft.com/en-us/azure/expressroute/reset-circuit
Also please validate the below details:
- Make sure that all associated resources (like Virtual Networks, BGP peerings, etc.) are deleted. You can’t delete the ExpressRoute circuit if it’s linked to other resources.
- Confirm that the provider status has changed to "Not Provisioned." If it still shows "Provisioned," you'll need to contact your service provider to deprovision the circuit on their end.
- When an operation on an ExpressRoute circuit doesn't complete successfully, the circuit may go into a 'failed' state.
- After resetting and removing dependencies: Refresh the Azure Portal.
- Try deleting the circuit again via UI or PowerShell:
I hope this helps! If these answers your query, do click the "Upvote" of which might be beneficial to other community members reading this thread.
If the above is unclear or you are unsure about something, please add a comment below.