# Azure

## Content

* auto-provisioning batch file setup
* Verify EdgeX Message

## auto-provisioning batch file setup

* Modify the tools\azure\auto\_provisioning\_cli\create\_azure\_iothub\_edgex\_fuji.bat file with your own Azure configuration

![](/files/-MSBAUIe7UFevnwEv0Lw)

* Execute the create\_azure\_iothub\_edgex\_fuji.bat in Command Prompt
* The azure-cli will install automatically and please create a new Command Prompt to execute the&#x20;

  create\_azure\_iothub\_edgex\_fuji.bat again after azure-cli installed

![](/files/-MSBZlUpUy4v5I8Gi6md)

* Please follow the instruction to open the URL in the browser, enter code, and sign-in Microsoft with your account to complete the installation

![](/files/-MSBapDT5dS4JotWHa30)

![](/files/-MSBauYVeRT5xvnuTa5A)

![](/files/-MSBb1_bU5eKksEmqZnZ)

![](/files/-MSBfoGZDvNjgX7bvKXK)

## Verify EdgeX Message

* In the Azure portal, verify the IoT Hub has received the EdgeX messages. Select **Overview**

\> **IoT Hub Usage**. Refresh the page to update the chart. It might take a few seconds for it to show that the messages have been received.

![](/files/-MSBgf4aUv5asHUq96Z_)

* You also can receive events from a JavaScript application that we made.
  * Cloning application from the repository:\
    <https://github.com/Advantech-EdgeX/web-apps-node-iot-hub-data-visualization>
  * Open any editor, we choose Visual Studio Code here.
  * Open the application by selecting **File** > **Open Folder** in the editor.
  * Edit **IotHubConnectionString** and **EventHubConsumerGroup** in launch.json\
    You can find the ConnectionString in create\_azure\_iothub\_edgex\_fuji.bat complete installed screen

![](/files/-MSBmRSqsAo6y9HMOfs1)

![](/files/-MSBnUCVlIfAT0UBKG6r)

* In VS Code, press F5 to start debugging and open a browser to <http://localhost:3000>. It will display EdgeX


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edgex-api-advantech.gitbook.io/edgex-api-doc/edge-to-cloud/azure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
