Azure资源浏览器 - 在哪里可以看到锁?

问题描述 投票:0回答:2

假设我在某些Azure资源上设置了一个Lock(例如在资源组上)。然后我想在Azure Resource Explorer中看到与创建的Lock对应的JSON文档。我可以看到资源对象文档,但那里没有显示Lock。

azure azure-resource-explorer
2个回答
0
投票

您可以使用powershell来查看它。

Get-AzResourceLock -ResourceGroupName <resource group name> | ConvertTo-Json

enter image description here

有关azure cli或rest api的更多详细信息,请参阅此link


0
投票

我很确定那些没有在资源浏览器下公开。因为Microsoft.Authorization提供商甚至没有在那里列出

你可以用任何其他方法来检索它们

© www.soinside.com 2019 - 2024. All rights reserved.