Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./aad-register.ps1 errors with "A parameter cannot be found that matches the parameter name 'ReplyUrl'." #2064

Closed
gauravsep1 opened this issue Sep 21, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@gauravsep1
Copy link

Describe the bug
"I tried to deploy the Azure Industrial IoT platform version 2.9.1 using the instructions from the link 'https://azure.github.io/Industrial-IoT/web-api/#deployment-script-options'. However, I encountered an error when running the PowerShell command ./aad-register.ps1 -Name -ReplyUrl https://.azurewebsites.net/ -Output aad.json, and the error message stated, 'A parameter cannot be found that matches the parameter name 'ReplyUrl'."

To Reproduce
"Steps to reproduce the behavior:

1 Open Windows PowerShell and run it as an administrator in Windows 11.
2 Run the following command in PowerShell:
Install-Module -Name Az -AllowClobber
Install-Module -Name Microsoft.Graph -AllowClobber
3 Run the PowerShell command: ./aad-register.ps1 -Name -ReplyUrl https://.azurewebsites.net/ -Output aad.json.
4 After running the command in step 3, an error message appeared stating, 'A parameter cannot be found that matches the parameter name 'ReplyUrl'."

Exact error message is given below
PS D:\Industrial-IoT-main\deploy\scripts> ./aad-register.ps1 -Name test -ReplyUrl https://test.azurewebsites.net/ -Output aad.json
D:\Industrial-IoT-main\deploy\scripts\aad-register.ps1 : A parameter cannot be found that matches parameter name
'ReplyUrl'.
At line:1 char:49

  • ./aad-register.ps1 -Name -ReplyUrl https://iot/ ...
  •                                             ~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [aad-register.ps1], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,aad-register.ps1
@marcschier marcschier added the bug Something isn't working label Sep 22, 2023
@marcschier marcschier added this to the 2.9.3 milestone Sep 22, 2023
@marcschier marcschier self-assigned this Sep 22, 2023
@marcschier marcschier changed the title I encountered an error when attempting to execute the PowerShell command ./aad-register.ps1 -Name <application-name> -ReplyUrl https://<application-name>.azurewebsites.net/ -Output aad.json. The error message received was: "A parameter cannot be found that matches the parameter name 'ReplyUrl'." ./aad-register.ps1 errors with "A parameter cannot be found that matches the parameter name 'ReplyUrl'." Sep 22, 2023
@marcschier
Copy link
Collaborator

Fixed in main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants