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

Getting error when try to use option 2 to deploy Azure IIoT Deployment from the https://github.com/Azure/Industrial-IoT/blob/main/docs/web-api/readme.md #2063

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

Comments

@vikas-azureiot
Copy link

vikas-azureiot commented Sep 21, 2023

Describe the bug
Tried to deploy Azure IIoT with help of Getting error when try to use option 2 to deploy Azure IIoT Deployment from the "https://github.com/Azure/Industrial-IoT/blob/main/docs/web-api/readme.md" where it suggest if we dont have admin access then we can execute the script as per below-

Code has been cloned from https://github.com/Azure/Industrial-IoT.git

-- Start --
Option 2 (recommended for production): An AAD admin can create the AAD applications for you. The deploy/scripts folder contains the aad-register.ps1 script to perform the AAD registration separately from the deployment. The output of the script is a file containing the relevant information to be used as part of deployment and must be passed to the deploy.ps1 script in the same folder using the -aadConfig argument.

cd deploy/scripts
./aad-register.ps1 -Name -ReplyUrl https://.azurewebsites.net/ -Output aad.json
./deploy.ps1 -aadConfig aad.json

-- End --
To Reproduce
Steps to reproduce the behavior:

  1. Go to powershell and open it as admin
  2. Take the clone of Github repos- https://github.com/Azure/Industrial-IoT.git
  3. And then copy the path of the script folder i.e. D:\Industrial-IoT\deploy\scripts and change the directory into PowerShell and run the below command- ./aad-register.ps1 -Name iotmfgdev -ReplyUrl https://iotmfgdev.azurewebsites.net/ -Output aad.json
  4. And you will get error as below mentioned
  5. See error-
image

Expected behavior
It should execute he below script by admin without any error.

D:\Industrial-IoT-main\deploy\scripts> ./aad-register.ps1 -Name iotmfgdev -ReplyUrl https://iotmfgdev.azurewebsites.net/ -Output aad.json

@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
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