azure - 通过 PowerShell 获取 Azure 中资源的资源创建者

标签 azure powershell

我正在尝试通过 Powershell 获取资源的资源创建者以实现标记策略。我尝试过使用 Get-AzLog,但是,我无法推断资源的创建者。

提前致谢。

最佳答案

<强> Get-AzLog 是这样的,默认只返回最近7天的信息,如果你知道时间和日期,可以尝试下面的方法,

Get-AzLog -ResourceGroup ExampleGroup -StartTime (Get-Date).AddDays(-60)

关于azure - 通过 PowerShell 获取 Azure 中资源的资源创建者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57472071/

相关文章:

PowerShell:使用 $_.FullName.Replace 重命名多个文件夹

node.js - 如何使用 Azure 函数绑定(bind)发送计划的服务总线队列消息?

azure - 保持 Azure 自托管代理运行和连接

.net - Powershell正则表达式用于随机除以回车符的字符串

powershell - 错误计数和$Error自动变量不一致

powershell - Test-ServiceHealth输出显示

powershell - 获取 ARM VM 状态所需的时间比以前长得多

azure - 为什么 az login 停止使用浏览器,现在使用 "email and accounts"。如何恢复呢?

azure - 错误: forwarding ports: error upgrading connection: error dialing backend: - Azure Kubernetes Service

powershell - ShouldProcess 在 PowerShell7 中失败