MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.23k stars 21.41k forks source link

Using RestAPI without SAS is possible or not? #97146

Open 1stcommander opened 2 years ago

1stcommander commented 2 years ago

From the documentation, it doesn`t get clear to me if one can use the REST API of the DPS (e.g. manage individual enrollments) without an SAS token but with a Service Principal?

If it IS possible it would be nice to have a more in-depth example of how to obtain the neceeary token - which endpoint to use for that, what the necessary headers are etc.

If it´s NOT possible, would be nice to explicitely state that.

If i just overlooked the respective portions on the page would be nice if you could point me to the right direction.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SatishBoddu-MSFT commented 2 years ago

@1stcommander I have assigned the issue to the content author for further review.

Jesusbar commented 2 years ago

Managing DPS with identity is available as a public preview feature, you can learn more about it at https://docs.microsoft.com/en-us/azure/iot-dps/concepts-control-access-dps-azure-ad

We currently don't have any sample for REST APIs, we will work on it for GA of this feature.