Connecting to OpenShift by using the CLI
Procedure
- Retrieve the address of the API server:
apiServer=$(az aro show -g $RESOURCEGROUP -n $CLUSTER --query apiserverProfile.url -o tsv) - To log in to the OpenShift® cluster's API
server, run the following command:
oc login $apiServer -u kubeadmin -p <kubeadmin_password> - Verify that the ARO cluster is deployed properly:
- Run the following command:
oc get nodesIf the cluster is deployed properly, the
Statuscolumn displaysReadyfor all rows. - Run the following command:
oc get coIf the cluster is deployed properly, the
Availablecolumn displaysTruefor all rows.

- Run the following command: