[英]How to get List of resources which are listed for diagnostic settings on azure portal
[英]Azure Diagnostic settings created via PowerShell not visible in Azure Portal
我正在通過(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門戶中不可見:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.