The AZ show
Some helpful az
commands to inspect the cluster information.
Resource Groups
There are two resource group for ARO:
-
CLUSTER Resource Group: Can be any name, and it is created by the user.
-
MANAGED Resource Group: The name has the following convention
aro-xxx
, and hosts resources like:- The storageaccount, disks, load balancers, virtual machines.
- It is protected with
Deny Assignment
, to ensure that won't be tampered by the user.
How to find out the ARO 'managed' resource group.
Method 1
MANAGED_RG="aro-$(az aro show -n $CLUSTERNAME -g $CLUSTER_RESOURCEGROUP --query 'clusterProfile.domain' -o tsv)"; echo $MANAGED_RG
Method 2
-
Get the ARO cluster
RESOURCEID
, exporting as variable: -
Get the Managed Resource Group, exporting in a variable
Method 3
Alternatively, the full JSON response:
Storage Accounts
Storage Lockdown
Check if Storage Lockdown is enabled for Storage Account Cluster and Image Registry (this is set by default). AllowBlobPublicAccess
must be set to false. This is a default Azure feature.
az storage account list -g $MANAGED_RG --query "[].{NAME:name, AllowBlobPublicAccess:allowBlobPublicAccess,MinimumTlsVersion:minimumTlsVersion}" -o table
Networking
Public or Private?
-
API and Ingress
-
Did I set UDR (UserDefinedRouting)?
Service Principal
- What is the ServicePrincipal attached to my cluster?