An Azure relational database service.
You can try these steps, in order
- Wait and re-check: In the documented case, the agent was initially absent from the server and only appeared after ARM cache synchronization, after which the database deleted successfully. If this state is fresh, give it a few hours and re-GET the agent before doing anything else.
- Verify with a clean, correctly formed call: Use the current API version and URL-encode the space in the agent name:
az rest --method get \
--uri "https://management.azure.com/subscriptions/<sub>/resourceGroups/Conservis/providers/Microsoft.Sql/servers/conservis01/jobAgents/SQL%20Agent?api-version=2025-01-01"
A malformed path can itself produce ParentResourceNotFound, so rule that out first.
- Check for resource locks on the RG, server, or database, a lock makes DELETE report success without acting:
az lock list --resource-group Conservis