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:
I used the commands provided by you and was able to see the Diagnostics settings on the portal:
Try opening a new window or open the portal in incognito mode.