**
strong text
**
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
After fighting to get some tutorial examples from 9781484250396 working, I learned that most of the examples required that I check the ID tokens feature for Implicit grant flow.
So I'm abandoning tutorials in the above book and I'm hoping 1-3-AnyOrgOrPersonal will demonstrate some good techniques with regard to security and ID tokens.
As per the directions I execute these commands:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
cd .\AppCreationScripts\
.\Configure.ps1
I'm getting errors. Is there a bug in this power shell script?
Thanks
Siegfried
Notes:
I am having trouble posting all the error message text -- this web site aborts my posts if they get too long.
This could be related to how-to-restore-original-default-aad-directory.html.
PS C:\Users\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts> .\Configure.ps1
Import-Module : The specified module 'AzureAD' was not loaded because no valid module file was found in any module directory.
At C:\Users\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:152 char:1
Connect-AzureAD : The term 'Connect-AzureAD' 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\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:82 char:22
Get-AzureADTenantDetail : The term 'Get-AzureADTenantDetail' 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\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:95 char:15
Get-AzureADUser : The term 'Get-AzureADUser' 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\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:99 char:13
Creating the AAD application (WebApp)
New-AzureADApplication : The term 'New-AzureADApplication' 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\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:103 char:28
New-AzureADServicePrincipal : The term 'New-AzureADServicePrincipal' 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\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:113 char:30
Get-AzureADApplicationOwner : The term 'Get-AzureADApplicationOwner' 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\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:116 char:13
Add-AzureADApplicationOwner : The term 'Add-AzureADApplicationOwner' 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\shein\Source\Repos\MicrosoftAADGitHubExamples\VariousSignInEg\1-WebApp-OIDC\1-3-AnyOrgOrPersonal\AppCreationScripts\C
onfigure.ps1:119 char:9
QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=winserverpowershell
(please don't forget to mark helpful replies as answer)
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
I'm a little surprised because it looks like a AAD problem to me.
Nevertheless, here is the new posting:
Sounds good, you're welcome.
(please don't forget to mark helpful replies as answer)
@Siegfried Heintze , Looking at the errors it looks like the script is failing as the AzureAD Poswershell cmdlet is missing on your machine.
You can try installing this module using the following steps:
Ideally this should get the script going. I have personally tried that script out and it worked for me.
Incase the install-module cmdlet fails by any chance, try the following:
Hope this helps. Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as "Answer" if the above response helped in answering your query.