Skip to content

Commit 6dc54fc

Browse files
alrios-mslipalath-ms
authored andcommitted
Removed extra parameter from script
1 parent 3af473f commit 6dc54fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Scripts/Set-ServicePrincipal.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ function Set-ServicePrincipal {
9898

9999
Write-Host "Please ensure you have ownership permissions on this subscription."
100100

101-
$scope = "/subscriptions/$($subscription.Id)"
102-
103101
$servicePrincipalName = "$solutionAbbreviation-serviceconnection-$environmentAbbreviation";
104102

105103
Write-Host "The service principals name is $servicePrincipalName"
@@ -119,7 +117,7 @@ function Set-ServicePrincipal {
119117
if($null -eq $servicePrincipal) {
120118
#region Create service principal
121119
Write-Host "The service principal is being created..."
122-
$servicePrincipal = New-AzADServicePrincipal -Role "Owner" -Scope $scope -DisplayName $servicePrincipalName
120+
$servicePrincipal = New-AzADServicePrincipal -Role "Owner" -DisplayName $servicePrincipalName
123121
Write-Host "The service principal has been created."
124122
#endregion
125123

0 commit comments

Comments
 (0)