@@ -620,7 +620,7 @@ Before running the commands in this quickstart, you might need to run `Connect-A
620
620
$rhosPullSecret= Get-Content .\pull-secret.txt -Raw # the pull secret text that was obtained from the Red Hat OpenShift Cluster Manager website
621
621
```
622
622
623
- ### Define the following parameters as environment variables - Powershell
623
+ ### Define the following parameters as environment variables - PowerShell
624
624
625
625
``` powershell
626
626
$resourceGroup="aro-rg" # the new resource group for the cluster
@@ -646,7 +646,7 @@ Register-AzResourceProvider -ProviderNamespace Microsoft.Authorization
646
646
New-AzResourceGroup -Name $resourceGroup -Location $location
647
647
```
648
648
649
- ### Create a new service principal and assign roles - Powershell
649
+ ### Create a new service principal and assign roles - PowerShell
650
650
651
651
``` powershell
652
652
$suffix=Get-Random # random suffix for the Service Principal
@@ -657,20 +657,20 @@ New-AzRoleAssignment -ObjectId $azureADAppSp.Id -RoleDefinitionName 'User Access
657
657
New-AzRoleAssignment -ObJectId $azureADAppSp.Id -RoleDefinitionName 'Contributor' -ResourceGroupName $resourceGroup -ObjectType 'ServicePrincipal'
658
658
```
659
659
660
- ### Get the Service Principal password - Powershell
660
+ ### Get the Service Principal password - PowerShell
661
661
662
662
``` powershell
663
663
$aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
664
664
$aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
665
665
```
666
666
667
- ### Get the service principal for the OpenShift resource provider - Powershell
667
+ ### Get the service principal for the OpenShift resource provider - PowerShell
668
668
669
669
``` powershell
670
670
$rpOpenShift = Get-AzADServicePrincipal -DisplayName 'Azure Red Hat OpenShift RP' | Select-Object -ExpandProperty Id -Property Id -First 1
671
671
```
672
672
673
- ### Check the parameters before deploying the cluster - Powershell
673
+ ### Check the parameters before deploying the cluster - PowerShell
674
674
675
675
``` powershell
676
676
# setup the parameters for the deployment
@@ -688,7 +688,7 @@ $templateParams = @{
688
688
Write-Verbose (ConvertTo-Json $templateParams) -Verbose
689
689
```
690
690
691
- ### Deploy the Azure Red Hat OpenShift cluster using the ARM template - Powershell
691
+ ### Deploy the Azure Red Hat OpenShift cluster using the ARM template - PowerShell
692
692
693
693
``` powershell
694
694
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroup @templateParams `
@@ -697,11 +697,11 @@ New-AzResourceGroupDeployment -ResourceGroupName $resourceGroup @templateParams
697
697
698
698
::: zone-end
699
699
700
- ## Connect to your cluster - PowerShell
700
+ ### Connect to your cluster - PowerShell
701
701
702
702
To connect to your new cluster, review the steps in [ Connect to an Azure Red Hat OpenShift 4 cluster] ( tutorial-connect-cluster.md ) .
703
703
704
- ## Clean up resources - PowerShell
704
+ ### Clean up resources - PowerShell
705
705
706
706
Once you're done, run the following command to delete your resource group and all the resources you created in this tutorial.
707
707
@@ -760,7 +760,7 @@ SP_CLIENT_SECRET=$(jq -r '.password' app-service-principal.json)
760
760
SP_OBJECT_ID=$(az ad sp show --id $SP_CLIENT_ID | jq -r '.objectId')
761
761
```
762
762
763
- ### Assign the Contributor role to the new service principal - Azure CLI
763
+ ### Assign the Contributor role to the new service principal - Azure CLI
764
764
765
765
``` azurecli-interactive
766
766
az role assignment create \
@@ -799,11 +799,11 @@ az deployment group create \
799
799
--parameters rpObjectId=$ARO_RP_SP_OBJECT_ID
800
800
```
801
801
802
- ## Connect to your cluster - Azure CLI
802
+ ### Connect to your cluster - Azure CLI
803
803
804
804
To connect to your new cluster, review the steps in [ Connect to an Azure Red Hat OpenShift 4 cluster] ( tutorial-connect-cluster.md ) .
805
805
806
- ## Clean up resources - Azure CLI
806
+ ### Clean up resources - Azure CLI
807
807
808
808
Once you're done, run the following command to delete your resource group and all the resources you created in this tutorial.
809
809
@@ -824,5 +824,4 @@ Advance to the next article to learn how to configure the cluster for authentica
824
824
825
825
* [ Configure authentication with Azure Active Directory using the command line] ( configure-azure-ad-cli.md )
826
826
827
- * [ Configure authentication with Azure Active Directory using the Azure portal and OpenShift web console] ( configure-azure-ad-cli.md ) i
828
-
827
+ * [ Configure authentication with Azure Active Directory using the Azure portal and OpenShift web console] ( configure-azure-ad-cli.md ) i
0 commit comments