Skip to content

Commit 70dc856

Browse files
committed
Add cli prerequisites, fix --set parameters
1 parent 3a7cbd9 commit 70dc856

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

articles/iot-hub-device-update/configure-private-endpoints.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Configure private endpoints for Device Update for IoT Hub accounts
33
description: This article describes how to configure private endpoints for Device Update for IoT Hub account.
44
author: darkoa-msft
55
ms.author: darkoa
6-
ms.date: 06/26/2022
6+
ms.date: 07/06/2022
77
ms.topic: how-to
88
ms.service: iot-hub-device-update
99
ms.custom: devx-track-azurecli, devx-track-azurepowershell
@@ -17,6 +17,30 @@ This article describes how to configure private endpoints for accounts.
1717

1818
You can either use the Azure portal or the Azure CLI to create a private endpoint for an account.
1919

20+
## Prerequisites
21+
22+
# [Azure portal](#tab/portal)
23+
24+
No prerequisites for the Azure portal.
25+
26+
# [Azure CLI](#tab/cli)
27+
28+
An Azure CLI environment:
29+
30+
* Use the Bash environment in [Azure Cloud Shell](../cloud-shell/quickstart.md).
31+
32+
[![Launch Cloud Shell in a new window](../../includes/media/cloud-shell-try-it/hdi-launch-cloud-shell.png)](https://shell.azure.com)
33+
34+
* Or, if you prefer to run CLI reference commands locally, [install the Azure CLI](/cli/azure/install-azure-cli)
35+
36+
* Sign in to the Azure CLI by using the [az login](/cli/azure/reference-index#az-login) command.
37+
38+
* Run [az version](/cli/azure/reference-index#az-version) to find the version and dependent libraries that are installed. To upgrade to the latest version, run [az upgrade](/cli/azure/reference-index#az-upgrade).
39+
40+
* When prompted, install Azure CLI extensions on first use. The commands in this article use the **azure-iot** extension. Run `az extension update --name azure-iot` to make sure you're using the latest version of the extension.
41+
42+
---
43+
2044
## Configure private endpoints from the Device Update account
2145

2246
In the Azure portal, you can create a new private endpoint from within the Device Update account. These private endpoint connections are auto-approved and don't need the extra steps of being reviewed and approved described in the rest of this article.
@@ -55,7 +79,7 @@ In the Azure portal, you can create a new private endpoint from within the Devic
5579

5680
1. On the **Tags** page, create any tags (names and values) that you want to associate with the private endpoint resource.
5781

58-
1. On the **Review + create**, review all the settings and select **Create** to create the private endpoint.
82+
1. On the **Review + create** page, review all the settings and select **Create** to create the private endpoint.
5983

6084
## Configure private endpoints from the Private Link Center
6185

@@ -93,7 +117,7 @@ You can use either the Azure portal or the Azure CLI to create private endpoints
93117

94118
1. On the **Tags** page, create any tags (names and values) that you want to associate with the private endpoint resource.
95119

96-
1. On the **Review + create**, review all the settings and select **Create** to create the private endpoint.
120+
1. On the **Review + create** page, review all the settings and select **Create** to create the private endpoint.
97121

98122
# [Azure CLI](#tab/cli)
99123

articles/iot-hub-device-update/device-update-log-collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Replace the following placeholders with your own information:
8080
* *\<storage_id>*: The resource ID of the storage account where the diagnostics logs will be stored. You can retrieve the resource ID by using the [az storage show](/cli/azure/storage/account#az-storage-account-show) command and querying for the ID value: `az storage account show -n <storage_name> --query id`.
8181

8282
```azurecli-interactive
83-
az iot device-update instance update --account <account_name> -instance <instance_name> --set enableDiagnostics=true --diagnostics-storage-id <storage_id>
83+
az iot device-update instance update --account <account_name> -instance <instance_name> --set enableDiagnostics=true diagnosticStorageProperties.resourceId=<storage_id>
8484
```
8585

8686
---

0 commit comments

Comments
 (0)