Skip to content

Commit c14873e

Browse files
Xuyang CaoXuyang Cao
authored andcommitted
refine doc
1 parent 0ddf0e9 commit c14873e

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

articles/container-apps/java-admin.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Now that you have an existing environment, you can create your container app and
144144

145145
```azurecli
146146
az role definition create --role-definition '{
147-
"Name": "Java Component Dashboard Access",
147+
"Name": "<your-role-name>",
148148
"IsCustom": true,
149149
"Description": "Can access managed Java Component dashboards in managed environments",
150150
"Actions": [
@@ -153,7 +153,7 @@ Now that you have an existing environment, you can create your container app and
153153
"AssignableScopes": ["/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
154154
}'
155155
```
156-
Please replace the `AssignableScopes` value with your subscription id.
156+
Please replace the `AssignableScopes` value with your subscription id. And provide a value for `<your-role-name>` as the name of the role definition.
157157

158158
1. Assign the Custom Role to your accound on managed environment resource.
159159

@@ -170,9 +170,12 @@ Now that you have an existing environment, you can create your container app and
170170
```azurecli
171171
az role assignment create \
172172
--assignee <user-or-service-principal-id> \
173-
--role "Java Component Dashboard Access" \
173+
--role "<your-role-name>" \
174174
--scope $ENVIRONMENT_ID
175175
```
176+
> [!NOTE]
177+
> <user-or-service-principal-id> usually should be the identity that you use to access Azure Portal.
178+
> <your-role-name> is the name you assigned in step 1.
176179

177180
1. Get the URL of the Admin for Spring dashboard.
178181

articles/container-apps/java-eureka-server.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Now that you have an existing environment, you can create your container app and
159159

160160
```azurecli
161161
az role definition create --role-definition '{
162-
"Name": "Java Component Dashboard Access",
162+
"Name": "<your-role-name>",
163163
"IsCustom": true,
164164
"Description": "Can access managed Java Component dashboards in managed environments",
165165
"Actions": [
@@ -168,8 +168,8 @@ Now that you have an existing environment, you can create your container app and
168168
"AssignableScopes": ["/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
169169
}'
170170
```
171-
Please replace the `AssignableScopes` value with your subscription id.
172-
171+
Please replace the `AssignableScopes` value with your subscription id. And provide a value for `<your-role-name>` as the name of the role definition.
172+
173173
1. Assign the Custom Role to your accound on managed environment resource.
174174

175175
Get the resource id of the managed environment:
@@ -185,9 +185,12 @@ Now that you have an existing environment, you can create your container app and
185185
```azurecli
186186
az role assignment create \
187187
--assignee <user-or-service-principal-id> \
188-
--role "Java Component Dashboard Access" \
188+
--role "<your-role-name>" \
189189
--scope $ENVIRONMENT_ID
190190
```
191+
> [!NOTE]
192+
> <user-or-service-principal-id> usually should be the identity that you use to access Azure Portal.
193+
> <your-role-name> is the name you assigned in step 1.
191194

192195
1. Get the URL of the Eureka Server for Spring dashboard.
193196

0 commit comments

Comments
 (0)