Skip to content

Commit 75a1527

Browse files
authored
Merge pull request #178445 from spelluru/egridglobal1102
Both system and user assigned identities & Global
2 parents bd3d477 + 555afad commit 75a1527

File tree

2 files changed

+20
-28
lines changed

2 files changed

+20
-28
lines changed

articles/event-grid/enable-identity-custom-topics-domains.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@
22
title: Enable managed identity on Azure Event Grid custom topics and domains
33
description: This article describes how enable managed service identity for an Azure Event Grid custom topic or domain.
44
ms.topic: how-to
5-
ms.date: 08/20/2021
5+
ms.date: 11/09/2021
66
---
77

88
# 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.
1310

1411
## Enable identity when creating a topic or domain
1512

1613
# [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.
1815

1916
### Enable system-assigned identity
2017
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
2825
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**.
2926

3027
# [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.
3231

3332
```azurecli-interactive
3433
# 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
3736

3837
Similarly, you can use the `az eventgrid domain create` command to create a domain with a system-assigned identity.
3938

40-
> [!NOTE]
41-
> Azure CLI doesn't support assigning a user-assigned managed identity to an Event Grid topic or a domain yet.
42-
4339
---
4440

4541
## Enable identity for an existing custom topic or domain
4642
In this section, you learn how to enable a system-assigned identity or a user-assigned identity for an existing custom topic or domain.
4743

4844
# [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.
5048

5149
1. Go to the [Azure portal](https://portal.azure.com).
5250
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
7371
You can use similar steps to enable an identity for an event grid domain.
7472

7573
# [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+
7676
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.
7777

7878
```azurecli-interactive
@@ -82,9 +82,6 @@ az eventgrid topic update -g $rg --name $topicname --identity systemassigned --s
8282

8383
The command for updating an existing domain is similar (`az eventgrid domain update`).
8484

85-
> [!NOTE]
86-
> Azure CLI doesn't support assigning a user-assigned managed identity to an Event Grid topic or a domain yet.
87-
8885
---
8986

9087
## Next steps

articles/event-grid/enable-identity-system-topics.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@
22
title: Enable managed identity on Azure Event Grid system topic
33
description: This article describes how enable managed service identity for an Azure Event Grid system topic.
44
ms.topic: how-to
5-
ms.date: 08/20/2021
5+
ms.date: 11/02/2021
66
---
77

88
# 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).
1010

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.
1314
1415
## Enable managed identity for an existing system topic
1516
This section shows you how to enable a managed identity for an existing system topic.
1617

1718
1. Go to the [Azure portal](https://portal.azure.com).
1819
2. Search for **event grid system topics** in the search bar at the top.
1920
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.
2122

2223
### Enable system-assigned identity
2324
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
3637
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.
3738
1. On the **Identity** page, switch to the **User assigned** tab in the right pane, and then select **+ Add** on the toolbar.
3839

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.":::
4041
1. In the **Add user managed identity** window, follow these steps:
4142
1. Select the **Azure subscription** that has the user-assigned identity.
4243
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
6768
1. Select **Add**.
6869

6970
> [!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.
7873
7974

8075
## Next steps

0 commit comments

Comments
 (0)