azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Using RestAPI without SAS is possible or not?

Open 1stcommander opened this issue 3 years ago • 2 comments

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.

1stcommander avatar Aug 16 '22 07:08 1stcommander

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

SatishBoddu-MSFT avatar Aug 16 '22 13:08 SatishBoddu-MSFT

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.

Jesusbar avatar Aug 16 '22 17:08 Jesusbar