You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Parameter(Mandatory=$False,HelpMessage='Tenant ID (This is a GUID which represents the "Directory ID" of the AzureAD tenant into which you want to create the apps')]
5
+
[string] $tenantId
6
+
)
7
+
8
+
if ((Get-Module-ListAvailable -Name "AzureAD") -eq$null) {
9
+
Install-Module"AzureAD"-Scope CurrentUser
10
+
}
2
11
Import-Module AzureAD
3
12
$ErrorActionPreference='Stop'
4
13
@@ -8,15 +17,7 @@ Function Cleanup
8
17
.Description
9
18
This function removes the Azure AD applications for the sample. These applications were created by the Configure.ps1 script
10
19
#>
11
-
[CmdletBinding()]
12
-
param(
13
-
[Parameter(HelpMessage='Tenant ID (This is a GUID which represents the "Directory ID" of the AzureAD tenant into which you want to create the apps')]
14
-
[PSCredential] $Credential,
15
-
[string] $tenantId
16
-
)
17
20
18
-
process
19
-
{
20
21
# $tenantId is the Active Directory Tenant. This is a GUID which represents the "Directory ID" of the AzureAD tenant
21
22
# into which you want to create the apps. Look it up in the Azure portal in the "Properties" of the Azure AD.
22
23
@@ -49,22 +50,25 @@ This function removes the Azure AD applications for the sample. These applicatio
49
50
Write-Host"Cleaning-up applications from tenant '$tenantName'"
50
51
51
52
Write-Host"Removing 'service' (TodoListService-ManualJwt) if needed"
Copy file name to clipboardExpand all lines: AppCreationScripts/Configure.ps1
+55-40Lines changed: 55 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
[CmdletBinding()]
2
-
param(
3
-
[PSCredential] $Credential,
4
-
[Parameter(HelpMessage='Tenant ID (This is a GUID which represents the "Directory ID" of the AzureAD tenant into which you want to create the apps')]
5
-
[string] $tenantId
6
-
)
2
+
param(
3
+
[PSCredential] $Credential,
4
+
[Parameter(Mandatory=$False,HelpMessage='Tenant ID (This is a GUID which represents the "Directory ID" of the AzureAD tenant into which you want to create the apps')]
5
+
[string] $tenantId
6
+
)
7
7
8
8
<#
9
9
This script creates the Azure AD applications needed for this sample and updates the configuration files
@@ -15,10 +15,6 @@
15
15
2) in the PowerShell window, type: Install-Module AzureAD
16
16
17
17
There are four ways to run this script. For more information, read the AppCreationScripts.md file in the same folder as this script.
18
-
19
-
# Parameters
20
-
# $tenantId is the Active Directory Tenant. This is a GUID which represents the "Directory ID" of the AzureAD tenant
21
-
# into which you want to create the apps. Look it up in the Azure portal in the "Properties" of the Azure AD.
22
18
#>
23
19
24
20
# Adds the requiredAccesses (expressed as a pipe separated string) to the requiredAccess structure
@@ -66,7 +62,7 @@ Function GetRequiredPermissions([string] $applicationDisplayName, [string] $requ
<addkey="ida:ClientId"value="[Enter client ID of the TodoListClient-ManualJwt as obtained from Azure Portal, e.g. 82692da5-a86f-44c9-9d53-2f88d52b478b]" />
9
+
<!--<add key="ida:RedirectUri" value="[Enter redirect URI as entered in Azure Portal, e.g. http://TodoListClient]" />-->
10
+
<addkey="todo:TodoListResourceId"value="[Enter App ID URI of TodoListService-ManualJwt, e.g. https://contoso.onmicrosoft.com/TodoListService-ManualJwt]" />
0 commit comments