Skip to content

Commit 8ef26df

Browse files
committed
Removing tabbed sections and applying PowerShell or Azure CLI labeling to inline sections
1 parent 469e0ef commit 8ef26df

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

articles/openshift/quickstart-openshift-arm-bicep-template.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ The template parameters below have default values. They can be specified, but th
603603
| `apiServerVisibility` | The visibility of the API server (`Public` or `Private`). | | Public
604604
| `ingressVisibility` | The ingress (entrance) visibility (`Public` or `Private`). | | Public
605605

606-
# [PowerShell](#tab/powershell)
606+
The following sections provide instructions using Powershell or Azure CLI.
607607

608608
### Before you begin - PowerShell
609609

@@ -616,7 +616,7 @@ Before running the commands in this quickstart, you might need to run `Connect-A
616616
$rhosPullSecret= Get-Content .\pull-secret.txt -Raw # the pull secret text that was obtained from the Red Hat OpenShift Cluster Manager website
617617
```
618618

619-
### Define the following parameters as environment variables
619+
### Define the following parameters as environment variables - Powershell
620620

621621
```powershell
622622
$resourceGroup="aro-rg" # the new resource group for the cluster
@@ -642,7 +642,7 @@ Register-AzResourceProvider -ProviderNamespace Microsoft.Authorization
642642
New-AzResourceGroup -Name $resourceGroup -Location $location
643643
```
644644

645-
### Create a new service principal and assign roles
645+
### Create a new service principal and assign roles - Powershell
646646

647647
```powershell
648648
$suffix=Get-Random # random suffix for the Service Principal
@@ -653,20 +653,20 @@ New-AzRoleAssignment -ObjectId $azureADAppSp.Id -RoleDefinitionName 'User Access
653653
New-AzRoleAssignment -ObJectId $azureADAppSp.Id -RoleDefinitionName 'Contributor' -ResourceGroupName $resourceGroup -ObjectType 'ServicePrincipal'
654654
```
655655

656-
### Get the Service Principal password
656+
### Get the Service Principal password - Powershell
657657

658658
```powershell
659659
$aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
660660
$aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
661661
```
662662

663-
### Get the service principal for the OpenShift resource provider
663+
### Get the service principal for the OpenShift resource provider - Powershell
664664

665665
```powershell
666666
$rpOpenShift = Get-AzADServicePrincipal -DisplayName 'Azure Red Hat OpenShift RP' | Select-Object -ExpandProperty Id -Property Id -First 1
667667
```
668668

669-
### Check the parameters before deploying the cluster
669+
### Check the parameters before deploying the cluster - Powershell
670670

671671
```powershell
672672
# setup the parameters for the deployment
@@ -684,7 +684,7 @@ $templateParams = @{
684684
Write-Verbose (ConvertTo-Json $templateParams) -Verbose
685685
```
686686

687-
### Deploy the Azure Red Hat OpenShift cluster using the ARM template
687+
### Deploy the Azure Red Hat OpenShift cluster using the ARM template - Powershell
688688

689689
```powershell
690690
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroup @templateParams `
@@ -704,7 +704,6 @@ Once you're done, run the following command to delete your resource group and al
704704
```powershell
705705
Remove-AzResourceGroup -Name $resourceGroup -Force
706706
```
707-
# [Azure CLI](#tab/azure-cli)
708707

709708
### Before you begin - Azure CLI
710709

@@ -718,7 +717,7 @@ You might need to run `az login` before running the commands in this quickstart.
718717
PULL_SECRET=$(cat pull-secret.txt) # the pull secret text
719718
```
720719

721-
### Define the following parameters as environment variables with azure-cli
720+
### Define the following parameters as environment variables - Azure CLI
722721

723722
```azurecli-interactive
724723
RESOURCEGROUP=aro-rg # the new resource group for the cluster
@@ -744,7 +743,8 @@ az provider register --namespace 'Microsoft.Authorization' --wait
744743
az group create --name $RESOURCEGROUP --location $LOCATION
745744
```
746745

747-
### Create a service principal for the new Azure AD application
746+
### Create a service principal for the new Azure AD application
747+
- Azure CLI
748748

749749
```azurecli-interactive
750750
az ad sp create-for-rbac --name "sp-$RG_NAME-${RANDOM}" --role Contributor > app-service-principal.json
@@ -804,8 +804,6 @@ Once you're done, run the following command to delete your resource group and al
804804
az aro delete --resource-group $RESOURCEGROUP --name $ARO_CLUSTER_NAME
805805
```
806806

807-
---
808-
809807
> [!TIP]
810808
> Having issues? Let us know on GitHub by opening an issue in the [Azure Container Apps repo](https://github.com/microsoft/azure-container-apps).
811809

0 commit comments

Comments
 (0)