I am doing a query:
az aks nodepool show \ ⎈
--resource-group $RESOURCE_GROUP_NAME \
--cluster-name $CLUSTER_NAME \
--name $NODE_POOL_NAME -o table
I get output with a table name ProvisiongState. I need some help to gather that result from that query into a variable, so that I can run checks on it until it turns from UpgradingNodeImageVersion to Succeeded. I was thinking of doing this as a shell script or maybe Python program.
Table I need to get info from:
Thank you!
EDIT: I used this command to get what I needed. Thank you all for the help!
az aks nodepool show --resource-group $RESOURCE_GROUP_NAME --cluster-name $CLUSTER_NAME --name $NODE_POOL_NAME | grep "\"provisioningState\": \"Succeeded\""