Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Azure IoT Hub integration documentation #528

Merged
merged 2 commits into from
Aug 19, 2021
Merged

Conversation

adriansmares
Copy link
Contributor

@adriansmares adriansmares commented Aug 17, 2021

Summary

References https://github.com/TheThingsIndustries/lorawan-stack/issues/2808

Changes

  • Add Azure IoT Hub guide
    • The guide is heavily tailored on the one we have for AWS IoT Core, minus the troubleshooting section. Hopefully I didn't carry over anything from there that's not supposed to be here.

Should we deleted the microsoft-azure integration guide, given that it is no longer that relevant ?

Checklist

  • Scope: The referenced issue is addressed, there are no unrelated changes.
  • Run Locally: Verified that the docs build using make server, posted screenshots, verified external links. Test with HUGO_PARAMS_SEARCH_ENABLED=true if style changes will affect the search bar.
  • New Features Marked: Documentation for new features is marked using the new-in-version shortcode, according to the guidelines in CONTRIBUTING.
  • Style Guidelines: Documentation obeys style guidelines in CONTRIBUTING.
  • Commits: Commit messages follow guidelines in CONTRIBUTING, there are no fixup commits left.

@adriansmares adriansmares added this to the 2021 Q3 milestone Aug 17, 2021
@adriansmares adriansmares self-assigned this Aug 17, 2021
Copy link
Contributor

@nejraselimovic nejraselimovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adriansmares sorry for a bunch of suggestions, but I think these tweaks will improve the readability (especially for the first time readers).

P.S. I added suggestions to place some images below their description (i.e. if the description says "select the DIgital Twin then the image with this button showed should go below), just because it's something we enforce though all our guides

I also think that we can remove the old Azure guide

- **Creating and deleting devices**: manage end device in Azure IoT Hub, using the [LoRaWAN device repository](https://github.com/TheThingsNetwork/lorawan-devices)
- **Updating device state in Device Twin**: update the device reported properties based on the decoded payloads, and schedule downlinks based on the device desired properties

This integration comes with a Azure Resource Manager Template template to deploy in your Azure account.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This integration comes with a Azure Resource Manager Template template to deploy in your Azure account.
{{< note >}} This integration comes with a [Azure Resource Manager Template](https://azure.microsoft.com/en-us/services/arm-templates/) template to deploy in your Azure account. {{</ note >}}


## Create API Key

Go to your application in {{% tts %}} Console, go to **Azure IoT Hub** and click **Generate API Key**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Go to your application in {{% tts %}} Console, go to **Azure IoT Hub** and click **Generate API Key**.
Go to your application in {{% tts %}} Console, navigate to **Integrations &#8594; Azure IoT Hub** on the left hand menu and click **Generate API Key**.


<!--more-->

Download the latest template from [here](https://ttsiothubintegration.blob.core.windows.net/integration-releases/latest/main.json)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Download the latest template from [here](https://ttsiothubintegration.blob.core.windows.net/integration-releases/latest/main.json)
> Download the latest template from [here](https://ttsiothubintegration.blob.core.windows.net/integration-releases/latest/main.json)

{{< figure src="../deployments.png" alt="Deployments" >}}

In the top-right, click **Redeploy**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{< figure src="../deployments.png" alt="Deployments" >}}
In the top-right, click **Redeploy**.
In the top-right, click **Redeploy**.
{{< figure src="../deployments.png" alt="Deployments" >}}

{{< figure src="../deployment-1.png" alt="Deployment View" >}}

Click **Edit template**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{< figure src="../deployment-1.png" alt="Deployment View" >}}
Click **Edit template**.
Click **Edit template**.
{{< figure src="../deployment-1.png" alt="Deployment View" >}}

{{< figure src="../load-template-1.png" alt="Edit Template" >}}

Click **Load file** and select the template you have just downloaded.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{< figure src="../load-template-1.png" alt="Edit Template" >}}
Click **Load file** and select the template you have just downloaded.
Click **Load file** and select the template you have just downloaded.
{{< figure src="../load-template-1.png" alt="Edit Template" >}}

Comment on lines 31 to 33
{{< figure src="../deployment-1.png" alt="Deployment View" >}}

Create a new API key as described in the [Deployment Guide]({{< relref "deployment" >}}). Provide the API key for `Stack API Key`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{< figure src="../deployment-1.png" alt="Deployment View" >}}
Create a new API key as described in the [Deployment Guide]({{< relref "deployment" >}}). Provide the API key for `Stack API Key`.
Now, create a new API key as described in the [Deployment Guide]({{< relref "deployment" >}}). Provide the created API key for **Stack API Key**.
{{< figure src="../deployment-1.png" alt="Deployment View" >}}

Copy link
Contributor

@neoaggelos neoaggelos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to add

Copy link
Contributor

@nejraselimovic nejraselimovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, I think this is good to go!

@adriansmares adriansmares merged commit 8d58a6b into master Aug 19, 2021
@adriansmares adriansmares deleted the doc/azure-iot-hub branch August 19, 2021 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants