An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
Because the Azure Machine Learning registry has already been deleted while its service-managed resource group and system-protected deny assignment remain, the customer should open an Azure technical support request for backend cleanup rather than attempt to force-delete the resource group.
Supported cleanup procedure
Azure-created deny assignments are system protected and cannot be edited or deleted directly by customers, including subscription Owners. A deny assignment also takes precedence over granted RBAC permissions.^1^
- In the orphaned resource group, open Access control (IAM) → Deny assignments.
- Select the assignment and capture:
- Assignment name and ID
- Description
- Scope
- Denied permissions
- System protected value
- Optionally collect the same information with PowerShell:
$resourceGroup = "<orphaned-resource-group>"
Get-AzDenyAssignment -ResourceGroupName $resourceGroup |
Select-Object Id, DenyAssignmentName, Description,
Scope, IsSystemProtected, Actions, NotActions |
Format-List
Listing requires Microsoft.Authorization/denyAssignments/read, which is included in most built-in roles.^1^
- From the Azure portal, select ? → Help + Support, describe the issue, and select Create a support request. Alternatively, open the resource group and select Support + Troubleshooting.^2^
- Route the request to Azure Machine Learning and include:
- Subscription and orphaned resource-group IDs
- Deleted registry name and original resource ID
- Managed Application resource ID and deletion timestamp
- Deny-assignment ID and output above
- Failed resource-group deletion operation/error
- A statement that the parent
Microsoft.MachineLearningServices/registriesresource no longer exists
Creating the request requires subscription-level Owner, Contributor, Support Request Contributor, or equivalent Microsoft.Support/* permission. Technical support also requires an applicable support plan.^2^
Comparable orphaned managed-resource cases have required an Azure backend engineer to remove stale dependencies or protected resources before resource-group deletion could complete.^3^^4^
Do not use Resource Explorer to delete the storage account or ACR directly: that approach does not bypass a system-protected deny assignment, and deletion is irreversible.
Lifecycle interpretation
The additional resource group is part of the Azure ML registry’s service-managed dependency model. Registry creation provisions storage accounts and a container registry, and the registry ARM resource exposes a managedResourceGroup property when system-created resources are present.^5^^6^
The existence of that backing resource group and its protection is therefore expected. Its persistence after successful deletion of the parent registry is not documented as a normal terminal lifecycle state. Treat this case as incomplete or stale service cleanup requiring Azure Machine Learning engineering investigation.
The Managed Application guarantee applies to its own managed resource group: deleting the Managed Application deletes that managed resource group.^7^ It does not establish that an additional resource group created later by Azure ML is owned by the Microsoft.Solutions Managed Application lifecycle.
Publisher-side prevention
For future deployments, delete the Azure ML registry explicitly and wait for the long-running operation to complete before deleting the Managed Application. The supported CLI operation is:^8^
az ml registry delete \
--name "<registry-name>" \
--resource-group "<registry-resource-group>"
Implement this as a documented deprovisioning operation or publisher-controlled cleanup workflow while the Managed Application and publisher authorization still exist. After completion, verify that the registry and its managed resource group have disappeared before allowing final Managed Application deletion.
There is no documented Managed Application template setting that adopts the Azure ML-created external resource group into the Managed Application’s managed resource group or removes an Azure ML-owned deny assignment. Consequently, a cleanup action that runs only after the Managed Application has been deleted cannot reliably repair this condition; the remaining instance requires Microsoft Support.
References
- List Azure deny assignments
- Create an Azure support request
- Cannot delete AKS nodegroup resource/RG - Microsoft Q&A
- Unable to delete the Resource Group. - Microsoft Q&A
- Manage Azure Machine Learning registries
- Microsoft.MachineLearningServices registries 2025-09-01 (deployment-language-arm-template)
- Azure Managed Applications overview
- az ml registry delete