@Amir Shirazi , thank you for the question.
If you are using Windows Powershell
then modify the commands you are running, as:
...
set -Name CLUSTER_NAME -Value TODO13 #alternatively, $CLUSTER_NAME=TODO13
set -Name LOCATION -Value eastus #alternatively, $LOCATION=eastus
set -Name APPID -Value <app-id-value> #alternatively, $APPID=<app-id-value>
set -Name GROUPID -Value <group-id-value> #alternatively, $GROUPID=<group-id-value>
set -Name SECRET -Value <secret-value> #alternatively, $SECRET=<secret-value>
set -Name TENANT -Value <tenant-id-value> #alternatively, $TENANT=<tenant-id-value>
az group create --name $CLUSTER_NAME --location $LOCATION
az openshift create --resource-group $CLUSTER_NAME --name $CLUSTER_NAME -l $LOCATION --aad-client-app-id $APPID --aad-client-app-secret $SECRET --aad-tenant-id $TENANT --customer-admin-group-id $GROUPID
Else, if you are using bash
or sh
then modify the commands you are running, as:
...
export CLUSTER_NAME=TODO13 #alternatively, CLUSTER_NAME=TODO13
export LOCATION=eastus #alternatively, LOCATION=eastus
export APPID=<app-id-value> #alternatively, APPID=<app-id-value>
export GROUPID=<group-id-value> #alternatively, GROUPID=<group-id-value>
export SECRET=<secret-value> #alternatively, SECRET=<secret-value>
export TENANT=<tenant-id-value> #alternatively, TENANT=<tenant-id-value>
az group create --name $CLUSTER_NAME --location $LOCATION
az openshift create --resource-group $CLUSTER_NAME --name $CLUSTER_NAME -l $LOCATION --aad-client-app-id $APPID --aad-client-app-secret $SECRET --aad-tenant-id $TENANT --customer-admin-group-id $GROUPID
----------
Hope this helps.
Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.