az openshift
Manage Azure Red Hat OpenShift 3.11 clusters.
The az openshift command is deprecated and has been replaced by az aro for ARO 4 clusters. See http://aka.ms/aro/4 for information on switching to ARO 4.
Commands
| az openshift create |
Create a new Azure Red Hat OpenShift 3.11 cluster. |
| az openshift delete |
Delete an Azure Red Hat OpenShift 3.11 cluster. |
| az openshift list |
List Azure Red Hat OpenShift 3.11 clusters. |
| az openshift monitor |
Commands to manage Log Analytics monitoring in an ARO 3.11 cluster. |
| az openshift monitor disable |
Disable Log Analytics monitoring in an ARO 3.11 cluster. |
| az openshift monitor enable |
Enable Log Analytics monitoring in an ARO 3.11 cluster. |
| az openshift scale |
Scale the compute pool in an Azure Red Hat OpenShift 3.11 cluster. |
| az openshift show |
Show the details for an Azure Red Hat OpenShift 3.11 cluster. |
| az openshift wait |
Wait for an Azure Red Hat OpenShift 3.11 cluster to reach a desired state. |
az openshift create
Create a new Azure Red Hat OpenShift 3.11 cluster.
Support for the creation of ARO 3.11 clusters ends 30 Nov 2020. Please see aka.ms/aro/4 for information on switching to ARO 4.
az openshift create --name
--resource-group
[--aad-client-app-id]
[--aad-client-app-secret]
[--aad-tenant-id]
[--compute-count]
[--compute-vm-size]
[--customer-admin-group-id]
[--location]
[--no-wait]
[--subnet-prefix]
[--tags]
[--vnet-peer]
[--vnet-prefix]
[--workspace-id]
Examples
Create an OpenShift cluster and auto create an AAD Client
az openshift create -g MyResourceGroup -n MyManagedCluster
Create an OpenShift cluster and auto create an AAD Client and setup cluster admin group
az openshift create -g MyResourceGroup -n MyManagedCluster --customer-admin-group-id {GROUP_ID}
Create an OpenShift cluster with 5 compute nodes and a custom AAD Client.
az openshift create -g MyResourceGroup -n MyManagedCluster --aad-client-app-id {APP_ID} --aad-client-app-secret {APP_SECRET} --aad-tenant-id {TENANT_ID} --compute-count 5
Create an Openshift cluster using a custom vnet
az openshift create -g MyResourceGroup -n MyManagedCluster --vnet-peer "/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/openshift-vnet/providers/Microsoft.Network/virtualNetworks/test"
Create an Openshift cluster with Log Analytics monitoring enabled
az openshift create -g MyResourceGroup -n MyManagedCluster --workspace-id "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.OperationalInsights/workspaces/{workspace-id}"
Required Parameters
Name of the managed OpenShift cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The ID of an Azure Active Directory client application. If not specified, a new Azure Active Directory client is created.
The secret of an Azure Active Directory client application.
The ID of an Azure Active Directory tenant.
Number of nodes in the OpenShift node pool.
Size of Virtual Machines to create as OpenShift nodes.
The Object ID of an Azure Active Directory Group that memberships will get synced into the OpenShift group "osa-customer-admins". If not specified, no cluster admin access will be granted.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Do not wait for the long-running operation to finish.
The CIDR used on the Subnet into which to deploy the cluster.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
The ID or the name of a subnet in an existing VNet into which to peer the cluster.
The CIDR used on the VNet into which to deploy the cluster.
The resource id of an existing Log Analytics Workspace to use for storing monitoring data.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az openshift delete
Delete an Azure Red Hat OpenShift 3.11 cluster.
The az openshift command is deprecated and has been replaced by az aro for ARO 4 clusters. See http://aka.ms/aro/4 for information on switching to ARO 4.
az openshift delete --name
--resource-group
[--no-wait]
[--yes]
Examples
Delete an Azure Red Hat OpenShift 3.11 cluster.
az openshift delete --name MyManagedOpenShiftCluster --resource-group MyResourceGroup
Required Parameters
Name of the managed OpenShift cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az openshift list
List Azure Red Hat OpenShift 3.11 clusters.
The az openshift command is deprecated and has been replaced by az aro for ARO 4 clusters. See http://aka.ms/aro/4 for information on switching to ARO 4.
az openshift list [--resource-group]
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az openshift scale
Scale the compute pool in an Azure Red Hat OpenShift 3.11 cluster.
The az openshift command is deprecated and has been replaced by az aro for ARO 4 clusters. See http://aka.ms/aro/4 for information on switching to ARO 4.
az openshift scale --compute-count
--name
--resource-group
[--no-wait]
Examples
Scale the compute pool in an Azure Red Hat OpenShift 3.11 cluster.
az openshift scale --compute-count 5 --name MyManagedOpenShiftCluster --resource-group MyResourceGroup
Required Parameters
Number of nodes in the OpenShift compute pool.
Name of the managed OpenShift cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Do not wait for the long-running operation to finish.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az openshift show
Show the details for an Azure Red Hat OpenShift 3.11 cluster.
Support for existing ARO 3.11 clusters ends June 2022. Please see aka.ms/aro/4 for information on switching to ARO 4.
az openshift show --name
--resource-group
Examples
Show the details for an Azure Red Hat OpenShift 3.11 cluster.
az openshift show --name MyManagedOpenShiftCluster --resource-group MyResourceGroup
Required Parameters
Name of the managed OpenShift cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az openshift wait
Wait for an Azure Red Hat OpenShift 3.11 cluster to reach a desired state.
The az openshift command is deprecated and has been replaced by az aro for ARO 4 clusters. See http://aka.ms/aro/4 for information on switching to ARO 4.
az openshift wait --name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Wait for a cluster to be upgraded, polling every minute for up to thirty minutes.
az openshift wait -g MyResourceGroup -n MyManagedCluster --updated --interval 60 --timeout 1800
Required Parameters
Name of the managed OpenShift cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ