Skip to content

Commit f9d2773

Browse files
authored
Merge pull request #103603 from tfitzmac/0206identity
add managed identity control
2 parents 359244b + 9f843b2 commit f9d2773

File tree

6 files changed

+87
-1
lines changed

6 files changed

+87
-1
lines changed

articles/azure-resource-manager/managed-applications/create-uidefinition-elements.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes the elements to use when constructing UI definitions for
44
author: tfitzmac
55

66
ms.topic: conceptual
7-
ms.date: 11/11/2019
7+
ms.date: 02/06/2020
88
ms.author: tomfitz
99

1010
---
@@ -56,6 +56,7 @@ The documentation for each element contains a UI sample, schema, remarks on the
5656
- [Microsoft.Compute.CredentialsCombo](microsoft-compute-credentialscombo.md)
5757
- [Microsoft.Compute.SizeSelector](microsoft-compute-sizeselector.md)
5858
- [Microsoft.Compute.UserNameTextBox](microsoft-compute-usernametextbox.md)
59+
- [Microsoft.ManagedIdentity.IdentitySelector](microsoft-managedidentity-identityselector.md)
5960
- [Microsoft.Network.PublicIpAddressCombo](microsoft-network-publicipaddresscombo.md)
6061
- [Microsoft.Network.VirtualNetworkCombo](microsoft-network-virtualnetworkcombo.md)
6162
- [Microsoft.Storage.MultiStorageAccountCombo](microsoft-storage-multistorageaccountcombo.md)
Loading
Loading
Loading
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: IdentitySelector UI element
3+
description: Describes the Microsoft.ManagedIdentity.IdentitySelector UI element for Azure portal. Use to assign managed identities to a resource.
4+
author: tfitzmac
5+
6+
ms.topic: conceptual
7+
ms.date: 02/06/2020
8+
ms.author: tomfitz
9+
10+
---
11+
12+
# Microsoft.ManagedIdentity.IdentitySelector UI element
13+
14+
A control for assigning [managed identities](../../active-directory/managed-identities-azure-resources/overview.md) for a resource in a deployment.
15+
16+
## UI sample
17+
18+
The control consists of the following elements:
19+
20+
![Microsoft.ManagedIdentity.IdentitySelector first step](./media/managed-application-elements/microsoft.managedidentity.identityselector1.png)
21+
22+
When the user selects **Add**, the following form opens. The user can select one or more user-assigned identities for the resource.
23+
24+
![Microsoft.ManagedIdentity.IdentitySelector second step](./media/managed-application-elements/microsoft.managedidentity.identityselector2.png)
25+
26+
The selected identities are displayed in the table. The user can add or delete items from this table.
27+
28+
![Microsoft.ManagedIdentity.IdentitySelector third step](./media/managed-application-elements/microsoft.managedidentity.identityselector3.png)
29+
30+
## Schema
31+
32+
```json
33+
{
34+
"name": "identity",
35+
"type": "Microsoft.ManagedIdentity.IdentitySelector",
36+
"label": "Managed Identity Configuration",
37+
"toolTip": {
38+
"systemAssignedIdentity": "Enable system assigned identity to grant the resource access to other existing resources.",
39+
"userAssignedIdentity": "Add user assigned identities to grant the resource access to other existing resources."
40+
},
41+
"defaultValue": {
42+
"systemAssignedIdentity": "Off"
43+
},
44+
"options": {
45+
"hideSystemAssignedIdentity": false,
46+
"hideUserAssignedIdentity": false
47+
},
48+
"visible": true
49+
}
50+
```
51+
52+
## Sample output
53+
54+
```json
55+
{
56+
"identity": {
57+
"value": {
58+
"type": "UserAssigned",
59+
"userAssignedIdentities": {
60+
"/subscriptions/xxxx/resourceGroups/TestResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/TestUserIdentity1": {}
61+
}
62+
}
63+
}
64+
}
65+
```
66+
67+
## Remarks
68+
69+
- Use **defaultValue.systemAssignedIdentity** to set an initial value for the system assigned identity options control. The default value is **Off**. The following values are allowed:
70+
- **On** – A system assigned identity is assigned to the resource.
71+
- **Off** – A system assigned identity isn't assigned to the resource.
72+
- **OnOnly** – A system assigned identity is assigned to the resource. Users can't edit this value during deployment.
73+
- **OffOnly** – A system assigned identity isn't assigned to the resource. Users can't edit this value during deployment.
74+
75+
- If **options.hideSystemAssignedIdentity** is set to **true**, the UI to configure the system assigned identity isn't displayed. The default value for this option is **false**.
76+
- If **options.hideUserAssignedIdentity** is set to **true**, the UI to configure the user assigned identity isn't displayed. The resource isn't assigned a user assigned identity. The default value for this option is **false**.
77+
78+
## Next steps
79+
80+
- For an introduction to creating UI definitions, see [Getting started with CreateUiDefinition](create-uidefinition-overview.md).
81+
- For a description of common properties in UI elements, see [CreateUiDefinition elements](create-uidefinition-elements.md).

articles/azure-resource-manager/managed-applications/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
href: microsoft-compute-sizeselector.md
111111
- name: UserNameTextBox
112112
href: microsoft-compute-usernametextbox.md
113+
- name: Managed Identity
114+
items:
115+
- name: IdentitySelector
116+
href: microsoft-managedidentity-identityselector.md
113117
- name: Network
114118
items:
115119
- name: PublicIPAddressCombo

0 commit comments

Comments
 (0)