File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ New-AzResourceGroup -Name $resourceGroup -Location $location
655
655
``` powershell
656
656
$suffix=Get-Random # random suffix for the Service Principal
657
657
$spDisplayName="sp-$resourceGroup-$suffix"
658
- $azureADAppSp = New-AzADServicePrincipal -DisplayName $displayName -Role Contributor
658
+ $azureADAppSp = New-AzADServicePrincipal -DisplayName $spDisplayName -Role Contributor
659
659
660
660
New-AzRoleAssignment -ObjectId $azureADAppSp.Id -RoleDefinitionName 'User Access Administrator' -ResourceGroupName $resourceGroup -ObjectType 'ServicePrincipal'
661
661
New-AzRoleAssignment -ObJectId $azureADAppSp.Id -RoleDefinitionName 'Contributor' -ResourceGroupName $resourceGroup -ObjectType 'ServicePrincipal'
@@ -665,7 +665,6 @@ New-AzRoleAssignment -ObJectId $azureADAppSp.Id -RoleDefinitionName 'Contributor
665
665
666
666
``` powershell
667
667
$aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
668
- $aadClientSecretDigest = ConvertTo-SecureString -String $azureADAppSp.PasswordCredentials.SecretText -AsPlainText -Force
669
668
```
670
669
671
670
### Get the service principal for the OpenShift resource provider - PowerShell
@@ -696,7 +695,7 @@ Write-Verbose (ConvertTo-Json $templateParams) -Verbose
696
695
697
696
``` powershell
698
697
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroup @templateParams `
699
- -TemplateParameterFile azuredeploy.json
698
+ -TemplateFile azuredeploy.json
700
699
```
701
700
702
701
::: zone-end
You can’t perform that action at this time.
0 commit comments