az openshift monitor

Commands to manage Log Analytics monitoring. Requires "--workspace-id".

Commands

az openshift monitor disable

Disable Log Analytics monitoring.

az openshift monitor enable

Enable Log Analytics monitoring. Requires "--workspace-id".

az openshift monitor disable

Disable Log Analytics monitoring.

az openshift monitor disable --name
                             --resource-group
                             [--no-wait]
                             [--subscription]

Examples

Disable Log Analytics monitoring.

az openshift monitor disable -g MyResourceGroup -n MyManagedCluster

Required Parameters

--name -n

Name of the managed OpenShift cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az openshift monitor enable

Enable Log Analytics monitoring. Requires "--workspace-id".

az openshift monitor enable --name
                            --resource-group
                            --workspace-id
                            [--no-wait]
                            [--subscription]

Examples

Enable Log Analytics in a managed OpenShift cluster.

az openshift monitor enable -g MyResourceGroup -n MyManagedCluster --workspace-id "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.OperationalInsights/workspaces/{workspace-id}"

Required Parameters

--name -n

Name of the managed OpenShift cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--workspace-id

The resource ID of an existing Log Analytics Workspace to use for storing monitoring data.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.