Skip to content

Commit 01fd633

Browse files
Add Requires check for AAD module and run as admin (#340)
1 parent 564dec3 commit 01fd633

File tree

1 file changed

+3
-1
lines changed
  • 2-WebApp-graph-user/2-1-Call-MSGraph/AppCreationScripts

1 file changed

+3
-1
lines changed

Diff for: 2-WebApp-graph-user/2-1-Call-MSGraph/AppCreationScripts/Configure.ps1

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ param(
55
[string] $tenantId
66
)
77

8+
#Requires -Modules AzureAD -RunAsAdministrator
9+
810
<#
911
This script creates the Azure AD applications needed for this sample and updates the configuration files
1012
for the visual Studio projects from the data in the Azure AD applications.
@@ -248,4 +250,4 @@ if ((Get-Module -ListAvailable -Name "AzureAD") -eq $null) {
248250
Import-Module AzureAD
249251

250252
# Run interactively (will ask you for the tenant ID)
251-
ConfigureApplications -Credential $Credential -tenantId $TenantId
253+
ConfigureApplications -Credential $Credential -tenantId $TenantId

0 commit comments

Comments
 (0)