@@ -101,6 +101,8 @@ Function ConfigureApplications
101101 so that they are consistent with the Applications parameters
102102#>
103103
104+ $commonendpoint = " common"
105+
104106 # $tenantId is the Active Directory Tenant. This is a GUID which represents the "Directory ID" of the AzureAD tenant
105107 # into which you want to create the apps. Look it up in the Azure portal in the "Properties" of the Azure AD.
106108
@@ -148,8 +150,8 @@ Function ConfigureApplications
148150 $owner = Get-AzureADApplicationOwner - ObjectId $serviceAadApplication.ObjectId
149151 if ($owner -eq $null )
150152 {
151- Add-AzureADApplicationOwner - ObjectId $serviceAadApplication.ObjectId - RefObjectId $user.ObjectId
152- Write-Host " '$ ( $user.UserPrincipalName ) ' added as an application owner to app '$ ( $serviceServicePrincipal.DisplayName ) '"
153+ Add-AzureADApplicationOwner - ObjectId $serviceAadApplication.ObjectId - RefObjectId $user.ObjectId
154+ Write-Host " '$ ( $user.UserPrincipalName ) ' added as an application owner to app '$ ( $serviceServicePrincipal.DisplayName ) '"
153155 }
154156
155157 Write-Host " Done creating the service application (TodoListService-ManualJwt)"
@@ -172,8 +174,8 @@ Function ConfigureApplications
172174 $owner = Get-AzureADApplicationOwner - ObjectId $clientAadApplication.ObjectId
173175 if ($owner -eq $null )
174176 {
175- Add-AzureADApplicationOwner - ObjectId $clientAadApplication.ObjectId - RefObjectId $user.ObjectId
176- Write-Host " '$ ( $user.UserPrincipalName ) ' added as an application owner to app '$ ( $clientServicePrincipal.DisplayName ) '"
177+ Add-AzureADApplicationOwner - ObjectId $clientAadApplication.ObjectId - RefObjectId $user.ObjectId
178+ Write-Host " '$ ( $user.UserPrincipalName ) ' added as an application owner to app '$ ( $clientServicePrincipal.DisplayName ) '"
177179 }
178180
179181 Write-Host " Done creating the client application (TodoListClient-ManualJwt)"
@@ -199,7 +201,7 @@ Function ConfigureApplications
199201 # Update config file for 'service'
200202 $configFile = $pwd.Path + " \..\TodoListService-ManualJwt\Web.Config"
201203 Write-Host " Updating the sample code ($configFile )"
202- ReplaceSetting - configFilePath $configFile - key " ida:Tenant " - newValue $tenantName
204+ ReplaceSetting - configFilePath $configFile - key " ida:TenantId " - newValue $tenantId
203205 ReplaceSetting - configFilePath $configFile - key " ida:Audience" - newValue $serviceIdentifierUri
204206 ReplaceSetting - configFilePath $configFile - key " ida:ClientId" - newValue $serviceAadApplication.AppId
205207
@@ -210,7 +212,7 @@ Function ConfigureApplications
210212 ReplaceSetting - configFilePath $configFile - key " ida:ClientId" - newValue $clientAadApplication.AppId
211213 ReplaceSetting - configFilePath $configFile - key " todo:TodoListResourceId" - newValue $serviceIdentifierUri
212214 ReplaceSetting - configFilePath $configFile - key " todo:TodoListBaseAddress" - newValue $serviceAadApplication.HomePage
213-
215+
214216 Add-Content - Value " </tbody></table></body></html>" - Path createdApps.html
215217}
216218
0 commit comments