You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-grid/enable-identity-custom-topics-domains.md
+11-14Lines changed: 11 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,16 @@
2
2
title: Enable managed identity on Azure Event Grid custom topics and domains
3
3
description: This article describes how enable managed service identity for an Azure Event Grid custom topic or domain.
4
4
ms.topic: how-to
5
-
ms.date: 08/20/2021
5
+
ms.date: 11/09/2021
6
6
---
7
7
8
8
# Assign a managed identity to an Event Grid custom topic or domain
9
-
This article shows you how to assign a system-assigned or a user-assigned identity to an Event Grid custom topic or a domain. To learn about managed identities, see [What are managed identities for Azure resources](../active-directory/managed-identities-azure-resources/overview.md).
10
-
11
-
> [!IMPORTANT]
12
-
> You can enable either system-assigned identity or user-assigned identity for an Event Grid topic or domain, but not both. You can have at most two user-assigned identities assigned to a topic or domain.
9
+
This article shows you how to use the Azure portal and CLI to assign a system-assigned or a user-assigned [managed identity](../active-directory/managed-identities-azure-resources/overview.md) to an Event Grid custom topic or a domain.
13
10
14
11
## Enable identity when creating a topic or domain
15
12
16
13
# [Azure portal](#tab/portal)
17
-
You can assign a system-assigned identity or a user-assigned identity to a custom topic or domain while creating it in the Azure portal.
14
+
In the **Azure portal**, when creating a topic or a domain, you can assign either a system-assigned identity or two user-assigned identities, but not both types of identities. Once the topic or domain is created, you can assign both types of identities by following steps in the [Enable identity for an existing topic or domain](#enable-identity-for-an-existing-custom-topic-or-domain) section.
18
15
19
16
### Enable system-assigned identity
20
17
On the **Advanced** tab of the topic or domain creation wizard, select **Enable system assigned identity**.
@@ -28,7 +25,9 @@ On the **Advanced** tab of the topic or domain creation wizard, select **Enable
28
25
1. In the **Select user assigned identity** window, select the subscription that has the user-assigned identity, select the **user-assigned identity**, and then click **Select**.
29
26
30
27
# [Azure CLI](#tab/cli)
31
-
You can also use the Azure CLI to create a custom topic or a domain with a system-assigned identity. Use the `az eventgrid topic create` command with the `--identity` parameter set to `systemassigned`. If you don't specify a value for this parameter, the default value `noidentity` is used.
28
+
You can also use Azure CLI to create a custom topic or a domain with a system-assigned identity. Currently, Azure CLI doesn't support assigning a user-assigned identity to a topic or a domain.
29
+
30
+
Use the `az eventgrid topic create` command with the `--identity` parameter set to `systemassigned`. If you don't specify a value for this parameter, the default value `noidentity` is used.
32
31
33
32
```azurecli-interactive
34
33
# create a custom topic with a system-assigned identity
@@ -37,16 +36,15 @@ az eventgrid topic create -g <RESOURCE GROUP NAME> --name <TOPIC NAME> -l <LOCAT
37
36
38
37
Similarly, you can use the `az eventgrid domain create` command to create a domain with a system-assigned identity.
39
38
40
-
> [!NOTE]
41
-
> Azure CLI doesn't support assigning a user-assigned managed identity to an Event Grid topic or a domain yet.
42
-
43
39
---
44
40
45
41
## Enable identity for an existing custom topic or domain
46
42
In this section, you learn how to enable a system-assigned identity or a user-assigned identity for an existing custom topic or domain.
47
43
48
44
# [Azure portal](#tab/portal)
49
-
The following procedure shows you how to enable system-assigned identity for a custom topic. The steps for enabling an identity for a domain are similar.
45
+
When you use Azure portal, you can assign one system assigned identity and up to two user assigned identities to an existing topic or a domain.
46
+
47
+
The following procedures show you how to enable an identity for a custom topic. The steps for enabling an identity for a domain are similar.
50
48
51
49
1. Go to the [Azure portal](https://portal.azure.com).
52
50
2. Search for **event grid topics** in the search bar at the top.
@@ -73,6 +71,8 @@ The following procedure shows you how to enable system-assigned identity for a c
73
71
You can use similar steps to enable an identity for an event grid domain.
74
72
75
73
# [Azure CLI](#tab/cli)
74
+
You can also use Azure CLI to assign a system-assigned identity to an existing custom topic or domain. Currently, Azure CLI doesn't support assigning a user-assigned identity to a topic or a domain.
75
+
76
76
Use the `az eventgrid topic update` command with `--identity` set to `systemassigned` to enable system-assigned identity for an existing custom topic. If you want to disable the identity, specify `noidentity` as the value.
Copy file name to clipboardExpand all lines: articles/event-grid/enable-identity-system-topics.md
+9-14Lines changed: 9 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,23 @@
2
2
title: Enable managed identity on Azure Event Grid system topic
3
3
description: This article describes how enable managed service identity for an Azure Event Grid system topic.
4
4
ms.topic: how-to
5
-
ms.date: 08/20/2021
5
+
ms.date: 11/02/2021
6
6
---
7
7
8
8
# Assign a system-managed identity to an Event Grid system topic
9
-
In this article, you learn how to assign system-assigned or user-assigned identity to an existing Event Grid system topic. To learn about managed identities, see [What are managed identities for Azure resources](../active-directory/managed-identities-azure-resources/overview.md).
9
+
In this article, you learn how to assign a system-assigned or a user-assigned identity to an Event Grid system topic. To learn about managed identities in general, see [What are managed identities for Azure resources](../active-directory/managed-identities-azure-resources/overview.md).
10
10
11
-
> [!IMPORTANT]
12
-
> You can enable either system-assigned identity or user-assigned identity for a system topic, but not both. You can have at most two user-assigned identities assigned to a system topic.
11
+
> [!NOTE]
12
+
> - You can assign one system-assigned identity and up to two user-assigned identities to a system topic.
13
+
> - You can enable identities for system topics associated with global Azure resources such as Azure subscriptions, resource groups, or Azure Maps. System topics for these global sources are also not associated with a specific region.
13
14
14
15
## Enable managed identity for an existing system topic
15
16
This section shows you how to enable a managed identity for an existing system topic.
16
17
17
18
1. Go to the [Azure portal](https://portal.azure.com).
18
19
2. Search for **event grid system topics** in the search bar at the top.
19
20
3. Select the **system topic** for which you want to enable the managed identity.
20
-
4. Select **Identity** on the left menu. You don't see this option for a system topic that's in the global location.
21
+
4. Select **Identity** on the left menu.
21
22
22
23
### Enable system-assigned identity
23
24
1. Turn **on** the switch to enable the identity.
@@ -36,7 +37,7 @@ This section shows you how to enable a managed identity for an existing system t
36
37
1. First, create a user-assigned identity by following instructions in the [Manage user-assigned managed identities](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md) article.
37
38
1. On the **Identity** page, switch to the **User assigned** tab in the right pane, and then select **+ Add** on the toolbar.
38
39
39
-
:::image type="content" source="./media/managed-service-identity/system-topic-user-identity-add-button.png" alt-text="Image showing the Add button seleted in the User assigned tab of the Identity page.":::
40
+
:::image type="content" source="./media/managed-service-identity/system-topic-user-identity-add-button.png" alt-text="Image showing the Add button selected in the User assigned tab of the Identity page.":::
40
41
1. In the **Add user managed identity** window, follow these steps:
41
42
1. Select the **Azure subscription** that has the user-assigned identity.
42
43
1. Select the **user-assigned identity**.
@@ -67,14 +68,8 @@ This section shows you how to enable a managed identity for an existing system t
67
68
1. Select **Add**.
68
69
69
70
> [!NOTE]
70
-
> Currently, you can't enable a managed identity for a new system topic when creating an event subscription on an Azure resource that supports system topics.
71
-
72
-
73
-
## Global Azure sources
74
-
You can enable system-managed identity only for the regional Azure resources. You can't enable it for system topics associated with global Azure resources such as Azure subscriptions, resource groups, or Azure Maps. The system topics for these global sources are also not associated with a specific region. You don't see the **Identity** page for the system topic whose location is set to **Global**.
75
-
76
-
:::image type="content" source="./media/managed-service-identity/system-topic-location-global.png" alt-text="System topic with location set to Global":::
77
-
71
+
> - Currently, Azure portal doesn't allow you to assign both system assigned and user assigned identities when creating a system topic. You can assign both after the system topic is created.
72
+
> - Currently, you can't enable a managed identity for a new system topic when creating an event subscription on an Azure resource that supports system topics.
0 commit comments