CmdID / az / az logz / az logz monitor
az logz monitor wait
Place the CLI in a waiting state until a condition of the logz monitor is met. Azure CLI extensions reference
2 examples 2 options Its page in the Azure CLI extensions reference
Examples
Pause executing next line of CLI script until the logz monitor is successfully created.
az logz monitor wait --name "myMonitor" --resource-group "myResourceGroup" --createdIdentify--nameMonitor resource name--resource-groupName of resource group.Pause executing next line of CLI script until the logz monitor is successfully deleted.
az logz monitor wait --name "myMonitor" --resource-group "myResourceGroup" --deletedIdentify--nameMonitor resource name--resource-groupName of resource group.Options
--monitor-name, --name, -nMonitor resource name--resource-group, -gName of resource group.