question

SameerBhat-0412 avatar image
0 Votes"
SameerBhat-0412 asked SathyamoorthyVijayakumar-MSFT commented

Connect-AzAccount -UseDeviceAuthentication in Azure Data Factory using Custom Activity

Hi,

I'm trying to run Connect-AzAccount -UseDeviceAuthentication in Azure Data Factory using Custom Activity. However, I'm not getting any URL for device authentication.(https://microsoft.com/devicelogin) which should ask for the code.

Can someone let me know where to get that cmdlet that asks to login into URL and enter the code for login using data factory.

Thanks

azure-data-factory
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.

1 Answer

SathyamoorthyVijayakumar-MSFT avatar image
1 Vote"
SathyamoorthyVijayakumar-MSFT answered SathyamoorthyVijayakumar-MSFT commented

Hello @SameerBhat-0412,

Thanks for the question and using MS Q&A platform.

I believe you are using Connect-AzAccount -useDeviceAuthentication and you would like obtain the code.

You can get from accessing the Job's Output.

Batch service --> Select Jobs

142493-image.png


There will be running task. You could click on that and you able to see a file stdout.txt

142454-image.png

142523-image.png

This fille will have all the text that are displayed in the output stream of the node the task is running.


Additional Note :

These are the files that are produced/saved in the node. Only after the task has completed - the above files are copied to the storage account associated.

If you are looking to programmatically fetch the file, you could make use of the below api.

https://docs.microsoft.com/en-us/rest/api/batchservice/file/get-from-task

I'd recommend you to make use of service principal for authentication if applicable (or any authentication that will not need any user intervention) - as this would automate the process completely.





Hope this will help. Please let us know if any further queries.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how

  • Want a reminder to come back and check responses? Here is how to subscribe to a notification

  • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators




image.png (58.2 KiB)
image.png (38.5 KiB)
image.png (28.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.

Hello @SameerBhat-0412,

Following up to see if the above suggestion was helpful. And, if you have any further query do let us know. Just checking in to see if the above answer helped. If this answers your query, do click Accept Answer and Up-Vote for the same.

0 Votes 0 ·