Use GitHub action to create a deployment

Peter Bons 156 Reputation points
2021-01-08T09:37:41.567+00:00

I have setup a GitHub action to build my application using these guidelines. It works perfectly and the imagepack is available as an artifact. I am now stuck as I do not know the best way to deploy my app to the devices.

I would like to create a deployment using a Github Action but it seems it is not possible using the Azure Sphere SDK build container since the azsphere cli does not support non-interactive logins. How should I proceed? Note that I am not looking for a way to sideload my app on a attached device.

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
{count} vote

1 answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,671 Reputation points Microsoft Employee
    2021-01-30T02:41:28.4+00:00

    @Peter Bons please consider using Azure Sphere API: https://learn.microsoft.com/en-us/rest/api/azure-sphere/deployments/create

    When using the Azure Sphere API I believe you will be able to automate the process as long as you have a Bearer Token to impersonate your Azure Sphere Administrator role.

    Please add a new feature request on feedback.azure.com Azure Sphere if you would like to have interactive logins done in a different way and share here the link.

    Thanks!

    Remember:

    • Please accept an answer if correct. 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.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.