Search code examples
azurepowershellazure-powershellazure-logic-appsazure-diagnostics

Azure Diagnostic settings created via PowerShell not visible in Azure Portal


I'm adding Diagnostic Settings via (Az) PowerShell to all my Logic Apps in defined Resource Group.

$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"
}

After succesfull creation, I can fetch them all via PowerShell Get-AzDiagnosticSetting but they aren't visible in the azure portal:

Diagnostic Settings not visible


Solution

  • I used the commands provided by you and was able to see the Diagnostics settings on the portal:

    enter image description here

    Try opening a new window or open the portal in incognito mode.