LittleChick
LittleChick

Reputation: 1

How to set Managedby Property in Azure ARM template

According to this doc (https://learn.microsoft.com/ga-ie/azure/azure-resource-manager/management/delete-resource-group?view=azurermps-6.10.0&tabs=azure-powershell#how-resource-manager-determines-the-order-of-deletion), we can set managedby property for azure resources in a resource group, and then when deleting the resource group, the deletion will follow some order to delete the resource that manages other resource first. However, resources like storage account, vnet don't have this property to set in their API. I wonder if every resource has the managedby property or not?

Upvotes: 0

Views: 31

Answers (1)

wenbo
wenbo

Reputation: 1506

Seems that managedBy can be only configured at resource group. can not be set in vm, vnet or other detailed resources


The managedBy property is returned only for resource groups that contain resources that are managed by another service. For Managed Applications, Databricks, and AKS, the value of the property is the resource ID of the managing resource.

You can check docs

Upvotes: 0

Related Questions