@@ -48,7 +48,7 @@ A Managed Application can be configured with Managed Identity through the [Creat
48
48
49
49
```json
50
50
"outputs" : {
51
- "managedIdentity" : " [parse('{ \ " Type\" : \ " SystemAssigned\" }')] "
51
+ "managedIdentity" : { "Type" : " SystemAssigned" }
52
52
}
53
53
```
54
54
@@ -60,71 +60,65 @@ Below are some recommendations on when to use CreateUIDefinition for enabling Ma
60
60
- The Managed Identity requires complex consumer input.
61
61
- The Managed Identity is needed on creation of the Managed Application.
62
62
63
- #### SystemAssigned CreateUIDefinition
63
+ #### Managed Identity CreateUIDefinition control
64
64
65
- A basic CreateUIDefinition that enables the SystemAssigned identity for the Managed Application .
65
+ CreateUIDefinition supports a built-in [ Managed Identity control](./microsoft-managedidentity-identityselector.md) .
66
66
67
67
```json
68
68
{
69
69
"$schema" : " https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#" ,
70
70
"handler" : " Microsoft.Azure.CreateUIDef" ,
71
- "version" : " 0.1.2-preview" ,
72
- "parameters" : {
73
- "basics" : [
74
- {}
75
- ],
76
- "steps" : [
77
- ],
78
- "outputs" : {
79
- "managedIdentity" : " [parse('{\" Type\" :\" SystemAssigned\" }')]"
80
- }
81
- }
82
- }
83
- ```
84
-
85
- #### UserAssigned CreateUIDefinition
86
-
87
- A basic CreateUIDefinition that takes a **user-assigned identity** resource as input and enables the UserAssigned identity for the Managed Application.
88
-
89
- ```json
90
- {
91
- "$schema" : " https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#" ,
92
- "handler" : " Microsoft.Azure.CreateUIDef" ,
93
- "version" : " 0.1.2-preview" ,
94
- "parameters" : {
95
- "basics" : [
96
- {}
97
- ],
98
- "steps" : [
99
- {
100
- "name" : " manageIdentity" ,
101
- "label" : " Identity" ,
102
- "subLabel" : {
103
- "preValidation" : " Manage Identities" ,
104
- "postValidation" : " Done"
105
- },
106
- "bladeTitle" : " Identity" ,
107
- "elements" : [
108
- {
109
- "name" : " userAssignedText" ,
110
- "type" : " Microsoft.Common.TextBox" ,
111
- "label" : " User assigned managed identity" ,
112
- "defaultValue" : " /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userassignedidentites/myuserassignedidentity" ,
113
- "visible" : true
114
- }
115
- ]
116
- }
117
- ],
118
- "outputs" : {
119
- "managedIdentity" : " [parse(concat('{\" Type\" :\" UserAssigned\" ,\" UserAssignedIdentities\" :{',string(steps('manageIdentity').userAssignedText),':{}}}'))]"
120
- }
71
+ "version" : " 0.0.1-preview" ,
72
+ "parameters" : {
73
+ "basics" : [],
74
+ "steps" : [
75
+ {
76
+ "name" : " applicationSettings" ,
77
+ "label" : " Application Settings" ,
78
+ "subLabel" : {
79
+ "preValidation" : " Configure your application settings" ,
80
+ "postValidation" : " Done"
81
+ },
82
+ "bladeTitle" : " Application Settings" ,
83
+ "elements" : [
84
+ {
85
+ "name" : " appName" ,
86
+ "type" : " Microsoft.Common.TextBox" ,
87
+ "label" : " Managed application Name" ,
88
+ "toolTip" : " Managed application instance name" ,
89
+ "visible" : true
90
+ },
91
+ {
92
+ "name" : " appIdentity" ,
93
+ "type" : " Microsoft.ManagedIdentity.IdentitySelector" ,
94
+ "label" : " Managed Identity Configuration" ,
95
+ "toolTip" : {
96
+ "systemAssignedIdentity" : " Enable system assigned identity to grant the managed application access to additional existing resources." ,
97
+ "userAssignedIdentity" : " Add user assigned identities to grant the managed application access to additional existing resources."
98
+ },
99
+ "defaultValue" : {
100
+ "systemAssignedIdentity" : " Off"
101
+ },
102
+ "options" : {
103
+ "hideSystemAssignedIdentity" : false ,
104
+ "hideUserAssignedIdentity" : false ,
105
+ "readOnlySystemAssignedIdentity" : false
106
+ },
107
+ "visible" : true
108
+ }
109
+ ]
110
+ }
111
+ ],
112
+ "outputs" : {
113
+ "applicationResourceName" : " [steps('applicationSettings').appName]" ,
114
+ "location" : " [location()]" ,
115
+ "managedIdentity" : " [steps('applicationSettings').appIdentity]"
121
116
}
117
+ }
122
118
}
123
119
```
124
120
125
- The CreateUIDefinition.json above generates a create user experience that has a textbox for a consumer to enter the **user-assigned identity** Azure resource ID. The generated experience would look like:
126
-
127
- 
121
+ 
128
122
129
123
### Using Azure Resource Manager templates
130
124
0 commit comments