Azure / azure-sphere-samples

Samples for Azure Sphere
Other
222 stars 200 forks source link

Get the OS Version of the Device using Azure Sphere Device REST API #244

Closed matsujirushi closed 2 years ago

matsujirushi commented 2 years ago

Hi, The Microsoft Azure Sphere Device REST APIs are great!

I want to get the OS version of the device. But I couldn't find an API.

Do you have any plans to add features?

jamesadevine commented 2 years ago

Hi @matsujirushi,

Thanks for using the REST interface. Releasing a REST API to retrieve the OS version is currently planned. I will update the thread when it is released.

jamesadevine commented 2 years ago

As a stopgap, @AlexanderStocks has added a gallery sample to retrieve the OS version of all connected Azure Sphere-based devices. See: https://github.com/Azure/azure-sphere-gallery/tree/main/GetDeviceOsVersion

As I said previously, a local API will be provided in the future that does not require downloading the OS version list from Azure.

matsujirushi commented 2 years ago

It worked. Nice! Thank you.

This sample code is enough. Would you like to close this issue? Or keep open?

jamesadevine commented 2 years ago

Perfect! I'll go ahead and close the issue.

Keep an eye out for the new api in an upcoming release :smile:

jamesadevine commented 1 year ago

@matsujirushi with the latest OS, you can now retrieve the OS version using the dotnet or python packages directly!