From a3435e1cbfe75bf1d9b09bb7d95430ffdb0d2f95 Mon Sep 17 00:00:00 2001 From: "Brian T. Jackett" Date: Tue, 28 Apr 2020 11:59:14 -0400 Subject: [PATCH] Add Requires check for AAD module and run as admin --- .../2-1-Call-MSGraph/AppCreationScripts/Configure.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/2-WebApp-graph-user/2-1-Call-MSGraph/AppCreationScripts/Configure.ps1 b/2-WebApp-graph-user/2-1-Call-MSGraph/AppCreationScripts/Configure.ps1 index 090ba4a1..5d70e3ed 100644 --- a/2-WebApp-graph-user/2-1-Call-MSGraph/AppCreationScripts/Configure.ps1 +++ b/2-WebApp-graph-user/2-1-Call-MSGraph/AppCreationScripts/Configure.ps1 @@ -5,6 +5,8 @@ param( [string] $tenantId ) +#Requires -Modules AzureAD -RunAsAdministrator + <# This script creates the Azure AD applications needed for this sample and updates the configuration files 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) { Import-Module AzureAD # Run interactively (will ask you for the tenant ID) -ConfigureApplications -Credential $Credential -tenantId $TenantId \ No newline at end of file +ConfigureApplications -Credential $Credential -tenantId $TenantId