Skip to content

Commit d99051d

Browse files
authored
Merge pull request #110186 from Alec13355/patch-1
Update quickstart-openshift-arm-bicep-template.md
2 parents 717c303 + 75a82f1 commit d99051d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ New-AzResourceGroup -Name $resourceGroup -Location $location
655655
```powershell
656656
$suffix=Get-Random # random suffix for the Service Principal
657657
$spDisplayName="sp-$resourceGroup-$suffix"
658-
$azureADAppSp = New-AzADServicePrincipal -DisplayName $displayName -Role Contributor
658+
$azureADAppSp = New-AzADServicePrincipal -DisplayName $spDisplayName -Role Contributor
659659
660660
New-AzRoleAssignment -ObjectId $azureADAppSp.Id -RoleDefinitionName 'User Access Administrator' -ResourceGroupName $resourceGroup -ObjectType 'ServicePrincipal'
661661
New-AzRoleAssignment -ObJectId $azureADAppSp.Id -RoleDefinitionName 'Contributor' -ResourceGroupName $resourceGroup -ObjectType 'ServicePrincipal'
@@ -665,7 +665,6 @@ New-AzRoleAssignment -ObJectId $azureADAppSp.Id -RoleDefinitionName 'Contributor
665665

666666
```powershell
667667
$aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
668-
$aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
669668
```
670669

671670
### Get the service principal for the OpenShift resource provider - PowerShell
@@ -696,7 +695,7 @@ Write-Verbose (ConvertTo-Json $templateParams) -Verbose
696695

697696
```powershell
698697
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroup @templateParams `
699-
-TemplateParameterFile azuredeploy.json
698+
-TemplateFile azuredeploy.json
700699
```
701700

702701
::: zone-end

0 commit comments

Comments
 (0)