Permission or URL issue when you use Azure Digital Twin explorer for the 1st time
To resolved these errors follow below steps
- In the Azure portal, navigate to the Digital Twins resource
- Make sure you use the URL given on your Digital Twin Overview screen in front of Hostname as shown above, make sure you start with https://
- Also give appropriate permission to yourself by clicking on the Access Control (IAM) menu
- Select Add role assignment
- Select Azure Digital Twins Data Owner in the Role dropdown listbox
- For the Assign access to setting, select User, group, or service principal
- Now, select the user that you are using in the Azure portal right now and that you’ll use on your local machine to authenticate with the sample application
- Click Save to assign the Role