question

PurohitAahana-1057 avatar image
0 Votes"
PurohitAahana-1057 asked AnanthPadakannaya-7444 answered

Not able to connect twin url in azure digital twin explorer

I am trying to connect my twin instance in my adt explorer but it is giving me authentication problem, even though i have successfully completed az login and have also connected visual studio code to my azure account. I have contributor access for the azure twin that I'm trying to connect.

42709-error-azure.png


azure-digital-twins
error-azure.png (67.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PurohitAahana-1057,
Just checking in to see if the below answer(s) helped.
If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.

0 Votes 0 ·
SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered SatishBoddu-MSFT commented

Hello @PurohitAahana-1057 , Welcome to Microsoft Q&A Platform, and thanks for your query.

Could you please make use of ADT Explorer from the below page link? [Click on 'Download Zip'-->Extract the contents to a working directory]

https://docs.microsoft.com/en-us/samples/azure-samples/digital-twins-explorer/digital-twins-explorer/

Please give it a try and let me know.

Please make sure to clear any running code samples & free of cache issues if any from your browser.

42787-image.png


Resolution:

Please close all browser windows.

Please run the az login command from a separate command-line-->which will open a new browser window and allow the registered user to log in-->Finally close the browser window after successful login.

Please note that the user should have the right permissions., To give a user permissions to manage an Azure Digital Twins instance, you must assign them the Azure Digital Twins Data Owner role within the instance.

Now run the command-line statement npm start from the ADT Explorer application folder, which will open the browser loading http://localhost:3000/

Continue with uploading models and importing graphs as per the instructions.

Please let us know if you need further help in this matter.





image.png (141.8 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I already followed the procedure which you have mentioned.
Please note that the user should have the right permissions., To give a user permissions to manage an Azure Digital Twins instance, you must assign them the Azure Digital Twins Data Owner role within the instance. - Does it mean that someone who has the role of 'contributor' cant open twin instance in adt explorer? Can you please confirm?

0 Votes 0 ·

Yes, Please try to give the user this role Azure Digital Twins Data Owner. I don't think a regular contributor role will work.

Try command line 'az login', then run the 'npm install' from the client\src folder, then run the 'npm run start' commands.

42933-image.png



0 Votes 0 ·
image.png (44.9 KiB)

Please try these two roles. They should work, one for the reader only, the owner gives full access. Please read more at Authorization: Azure roles for Azure Digital Twins
Azure Digital Twins Data Owner was formerly Azure Digital Twins Owner (Preview).
Azure Digital Twins Data Reader was formerly Azure Digital Twins Reader (Preview).


0 Votes 0 ·
aarondsouza-7821 avatar image
0 Votes"
aarondsouza-7821 answered aarondsouza-7821 published

I am following the tutorial at https://docs.microsoft.com/en-us/azure/digital-twins/quickstart-adt-explorer
and I get the same error
78200-screenshot-2021-03-16-at-43413-pm.png


I am using Google Chrome on Mac OS 11.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnanthPadakannaya-7444 avatar image
1 Vote"
AnanthPadakannaya-7444 answered

you might want to grant yourself access to the ADT resource by making yourself an owner

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.