gpt4 book ai didi

通过 PowerShell 创建的 Azure 诊断设置在 Azure 门户中不可见

转载 作者:行者123 更新时间:2023-12-03 01:38:18 26 4
gpt4 key购买 nike

我正在通过 (Az) PowerShell 将诊断设置添加到定义的资源组中的所有逻辑应用。

$Workspace = Get-AzOperationalInsightsWorkspace -Name "dev-shared-monitoring-loganalytics" -ResourceGroupName "dev-shared-monitoring"

$LogicApps = Get-AzResource -ResourceType Microsoft.Logic/workflows -ResourceGroupName "*-dev-*"

foreach ($LogicApp in $LogicApps) {
Set-AzDiagnosticSetting -ResourceId $LogicApp.ResourceId -WorkspaceId $Workspace.ResourceId -Enabled $true -Name "SendToMonitoring"
}

成功创建后,我可以通过 PowerShell Get-AzDiagnosticSetting 获取它们,但它们在 Azure 门户中不可见:

Diagnostic Settings not visible

最佳答案

我使用了您提供的命令,并且能够在门户上查看诊断设置:

enter image description here

尝试打开新窗口或以隐身模式打开门户。

关于通过 PowerShell 创建的 Azure 诊断设置在 Azure 门户中不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56147046/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com