Open RobertBondy opened 3 years ago
I would bet that you have both the normal AzureAD module and the Preview module installed. When the deployment script runs, it makes you connect to AzureAD and that wil automatically load the normal AzureAD module.
Before you run the deployment script, run "Import-module AzureADPreview" in the console. That should fix it i think (or you could uninstall the AzureAD module).
@RobertBondy as @Lysakers suggests, please try to import the preview module in place of the non-preview AzureAD module.
Thanks
Here is the error when running the deploy script:
| | | | _ _ | '| / \ / ` || | | | / _ \/ || | ___ / ` | ____ | | / \ /
|| '_
_ \ | | | /| (| || || || /_ | | |____|| (| ||____|| | | /| (| || | | | | | || _| _, | _,| \||/ _| _,| _| \| _,||| || || ||DEPLOYMENT SCRIPT STARTED
Launching Azure sign-in... Checking for availability of Key Vault... Key Vault is available. Launching Azure AD sign-in...
Launching Azure CLI sign-in... You have logged in. Now let us find all the subscriptions to which you have access... The following tenants don't contain accessible subscriptions. Use 'az login --allow-no-subscriptions' to have tenant level access. 72f988bf-86f1-41af-91ab-2d7cd011db47 Connected to Azure Launching PnP sign-in...
A newer version of PnP PowerShell is available: 3.25.2009.1. Consider upgrading.
Connected to SPO
AZURE AD APP CREATION
Azure AD App 'Requestateamapp' already exists - updating existing app... Waiting for app to finish updating... Updated Azure AD App Granting admin content for Microsoft Graph... Waiting for admin consent to finish... Granted admin consent
AZURE AD APP CREATION FINISHED
Account Environment TenantId TenantDomain AccountType
RobB@ccr1.com AzureCloud e932331f-e0d1-48c5-91f0-c45d6c6ada05 ccr1.com User RobB@ccr1.com AzureCloud e932331f-e0d1-48c5-91f0-c45d6c6ada05 ccr1.com User AzureADPreview\Get-AzureADDirectorySetting : The term 'AzureADPreview\Get-AzureADDirectorySetting' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\users\robb\desktop\Request-A-Team\Scripts\deploy.ps1:458 char:27