Skip to content

Commit 0c5b693

Browse files
committed
Address feedback
1 parent 4a85050 commit 0c5b693

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

articles/iot-central/core/howto-manage-iot-central-from-cli.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Manage IoT Central from Azure CLI or PowerShell | Microsoft Docs
3-
description: This article describes how to create and manage your IoT Central application using the Azure CLI or PowerShell. You can view, modify, and remove the application using these tools. You can also configure managed identities.
3+
description: This article describes how to create and manage your IoT Central application using the Azure CLI or PowerShell. You can view, modify, and remove the application using these tools. You can also configure a managed system identity that can you can use to setup secure data export.
44
services: iot-central
55
ms.service: iot-central
66
author: dominicbetts
@@ -178,7 +178,11 @@ Remove-AzIotCentralApp -ResourceGroupName "MyIoTCentralResourceGroup" `
178178

179179
An IoT Central application can use a system assigned [managed identity](../../active-directory/managed-identities-azure-resources/overview.md) to secure the connection to a [data export destination](howto-export-data.md#connection-options).
180180

181-
To enable the managed identity, use either the [Azure portal - Configure a managed identity](howto-manage-iot-central-from-portal.md#configure-a-managed-identity) or the [REST API](howto-manage-iot-central-with-rest-api.md). After you enable the managed identity, you can use the CLI to configure the role assignments.
181+
To enable the managed identity, use either the [Azure portal - Configure a managed identity](howto-manage-iot-central-from-portal.md#configure-a-managed-identity) or the [REST API](howto-manage-iot-central-with-rest-api.md):
182+
183+
:::image type="content" source="media/howto-manage-iot-central-from-cli/managed-identity.png" alt-text="Screenshot showing managed identity in Azure portal.":::
184+
185+
After you enable the managed identity, you can use the CLI to configure the role assignments.
182186

183187
Use the [az role assignment create](/cli/azure/role/assignment#az_role_assignment_create) command to create a role assignment. For example, the following commands first retrieve the principal ID of the managed identity. The second command assigns the `Azure Event Hubs Data Sender` role to the principal ID in the scope of the `MyIoTCentralResourceGroup` resource group:
184188

@@ -188,6 +192,12 @@ az role assignment create --assignee $spID --role "Azure Event Hubs Data Sender"
188192
--scope /subscriptions/<your subscription id>/resourceGroups/MyIoTCentralResourceGroup
189193
```
190194

195+
To learn more about the role assignments, see:
196+
197+
- [Built-in roles for Azure Event Hubs](../../event-hubs/authenticate-application.md#built-in-roles-for-azure-event-hubs)
198+
- [Built-in roles for Azure Service Bus](../../service-bus-messaging/authenticate-application.md#azure-built-in-roles-for-azure-service-bus)
199+
- [Built-in roles for Azure Storage Services](/rest/api/storageservices/authorize-with-azure-active-directory#manage-access-rights-with-rbac)
200+
191201
## Next steps
192202

193203
Now that you've learned how to manage Azure IoT Central applications from Azure CLI or PowerShell, here is the suggested next step:

articles/iot-central/core/howto-manage-iot-central-from-portal.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ To move the application to a different subscription, select **change** beside t
6969

7070
## Configure a managed identity
7171

72-
When you configure a data export in your IoT Central application, you can choose to configure the connection to the destination with a *connection string* or a [managed identity](../../active-directory/managed-identities-azure-resources/overview.md). Using a managed identity is more secure because you don't need to store the credentials for the destination in your IoT Central application. IoT Central currently uses [system-assigned managed identities](../../active-directory/managed-identities-azure-resources/overview.md#managed-identity-types). To create the managed identity for your application, you use either the Azure portal or the REST API .
72+
When you configure a data export in your IoT Central application, you can choose to configure the connection to the destination with a *connection string* or a [managed identity](../../active-directory/managed-identities-azure-resources/overview.md). Using a managed identity is more secure because you don't need to store the credentials for the destination in your IoT Central application. IoT Central currently uses [system-assigned managed identities](../../active-directory/managed-identities-azure-resources/overview.md#managed-identity-types). To create the managed identity for your application, you use either the Azure portal or the REST API.
73+
74+
> [!NOTE]
75+
> You can only add a managed identity to an IoT Central application that was created in a region. All new applications are created in a region. To learn more, see [Updates](https://azure.microsoft.com/updates/azure-iot-central-new-and-updated-features-august-2021/).
7376
7477
When you configure a managed identity, the configuration includes a *scope* and a *role*:
7578

articles/iot-central/core/howto-manage-iot-central-with-rest-api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ Use the following payload to change the display name and enable the system assig
8787
}
8888
```
8989

90+
> [!NOTE]
91+
> You can only add a managed identity to an IoT Central application that was created in a region. All new applications are created in a region. To learn more, see [Updates](https://azure.microsoft.com/updates/azure-iot-central-new-and-updated-features-august-2021/).
92+
9093
## Delete an IoT Central application
9194

9295
To delete an IoT Central application, use:
56.2 KB
Loading

0 commit comments

Comments
 (0)