You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
-- 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.
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
And you will get error as below mentioned
See error-
Expected behavior
It should execute he below script by admin without any error.
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:
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
The text was updated successfully, but these errors were encountered: