AzOps icon indicating copy to clipboard operation
AzOps copied to clipboard

Resource Group Lock (Microsoft.Authorization/locks) resources cannot be Pull'd

Open mikewo-dc opened this issue 3 years ago • 3 comments

Describe the bug

No ARM template is ever Pull'd by AzOps for Microsoft.Authorization/locks resource created at Resource Group scope. Push for an ARM template for Microsoft.Authorization/locks resource at Resource Group scope works correctly, but Pull doesn't work for resource whether created in portal or via AzOps.

Steps to reproduce

  1. Create a Resource Group
  2. Create a "CanNotDelete" Lock on the resource group
  3. Do a Pull into AzOps repository - no "Microsoft.Authorization/locks" resource appears

Screenshots

image

image

mikewo-dc avatar Jun 22 '22 04:06 mikewo-dc

Hi @mikewo-dc thanks for voicing your need.

The behaviour you describe in regard to the resource-type Microsoft.Authorization/locks not being pulled back by AzOps is correct and expected at this time, support for pulling back that resource-type has not been added yet.

Based on your ask here I will make sure that we investigate the addition of Microsoft.Authorization/locks into AzOps future releases.

Jefajers avatar Jun 22 '22 18:06 Jefajers

The behaviour you describe in regard to the resource-type Microsoft.Authorization/locks not being pulled back by AzOps is correct and expected at this time, support for pulling back that resource-type has not been added yet.

Thank you very much - would you mind pointing me towards where I could learn which resource types are supported?

mikewo-dc avatar Jul 03 '22 22:07 mikewo-dc

We currently do not maintain a complete, updated list of supported resources providers. See following page for list of supported platform (proxyOnly) resources. As you can see, locks is the main exception under Microsoft.Authorization. https://github.com/azure/azops/wiki/introduction#discovery When it comes to tracked resources deployed in resource groups, we will export everything on a best effort basis.

daltondhcp avatar Jul 04 '22 05:07 daltondhcp