AzOps
AzOps copied to clipboard
Resource Group Lock (Microsoft.Authorization/locks) resources cannot be Pull'd
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
- Create a Resource Group
- Create a "CanNotDelete" Lock on the resource group
- Do a Pull into AzOps repository - no "Microsoft.Authorization/locks" resource appears
Screenshots


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.
The behaviour you describe in regard to the resource-type
Microsoft.Authorization/locksnot 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?
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.