Azure / pcs-cli

A CLI for deploying Azure IoT PCS
MIT License
33 stars 37 forks source link

Authorization_RequestDenied while running pcs-cli with servicePrincipalId and servicePrincipalSecret #516

Closed kalyanb9119 closed 3 years ago

kalyanb9119 commented 5 years ago

Type of issue

Description

I have created a service-principal as suggested using below command: az ad sp create-for-rbac --name "myapp" --password "mypassword" --role owner --skip-assignment false --years 10

Used the appId and password from the response to run the deployment. I am consistently getting error

Could not create new application in this tenant. body:"{"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"Insufficient privileges to complete the operation."},"requestId":"c3865b5d-6c5e-4aba-ba4a-ea77c14a4575","date":"2019-06-23T05:07:20"}}"



# Steps to reproduce <!-- How can we reproduce the issue? -->
Create service principal using same command and run it.