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
@@ -79,6 +79,44 @@ az spring app get-remote-debugging-config \
79
79
80
80
---
81
81
82
+
## Assign an Azure role
83
+
84
+
To remotely debug an app instance, you must be granted the role `Azure Spring Apps Remote Debugging Role`, which includes the `Microsoft.AppPlatform/Spring/apps/deployments/remotedebugging/action` data action permission.
85
+
86
+
You can assign an Azure role using the Azure portal or Azure CLI.
87
+
88
+
### [Azure portal](#tab/azure-portal)
89
+
90
+
Use the following steps to assign an Azure role using the Azure portal.
91
+
92
+
1. Open the [Azure portal](https://portal.azure.com).
93
+
1. Open your Azure Spring Apps service instance.
94
+
1. In the navigation pane, select **Access Control (IAM)**.
95
+
1. On the **Access Control (IAM)** page, select **Add**, and then select **Add role assignment**.
96
+
97
+
:::image type="content" source="media/how-to-remote-debugging-app-instance/add-role-assignment.png" alt-text="Screenshot of the Azure portal showing the Access Control (IAM) page for an Azure Spring Apps instance with the Add role assignment option highlighted." lightbox="media/how-to-remote-debugging-app-instance/add-role-assignment.png":::
98
+
99
+
1. On the **Add role assignment** page, in the **Name** list, search for and select *Azure Spring Apps Remote Debugging Role*, and then select **Next**.
100
+
101
+
:::image type="content" source="media/how-to-remote-debugging-app-instance/remote-debugging-role.png" alt-text="Screenshot of the Azure portal showing the Add role assignment page for an Azure Spring Apps instance with the Azure Spring Apps Remote Debugging Role name highlighted." lightbox="media/how-to-remote-debugging-app-instance/remote-debugging-role.png":::
102
+
103
+
1. Select **Members**, and then search for and select your username.
104
+
105
+
1. Select **Review + assign**.
106
+
107
+
### [Azure CLI](#tab/azure-cli)
108
+
109
+
Use the following command to obtain the Azure Spring Apps Remote Debugging Role.
110
+
111
+
```azurecli
112
+
az role assignment create \
113
+
--role "Azure Spring Apps Remote Debugging Role" \
114
+
--scope "<service-instance-resource-id>" \
115
+
--assignee "<your-identity>"
116
+
```
117
+
118
+
---
119
+
82
120
## Debug an app instance remotely
83
121
84
122
You can debug an app instance remotely using the Azure Toolkit for IntelliJ or the Azure Spring Apps for VS Code extension.
@@ -105,15 +143,6 @@ Use the following steps to enable or disable remote debugging:
105
143
106
144
Use the following steps to attach debugger.
107
145
108
-
1. Use the following Azure CLI command to obtain the **Azure Spring Apps Remote Debugging Role** role, which includes the `Microsoft.AppPlatform/Spring/apps/deployments/remotedebugging/action` data action permission.
109
-
110
-
```azurecli
111
-
az role assignment create \
112
-
--role "Azure Spring Apps Remote Debugging Role" \
113
-
--scope "<service-instance-resource-id>" \
114
-
--assignee "<your-identity>"
115
-
```
116
-
117
146
1. Select an app instance, and then select **Attach Debugger**. IntelliJ connects to the app instance and starts remote debugging.
118
147
119
148
:::image type="content" source="media/how-to-remote-debugging-app-instance/intellij-remote-debugging-instance.png" alt-text="Screenshot showing the Attach Debugger option." lightbox="media/how-to-remote-debugging-app-instance/intellij-remote-debugging-instance.png":::
@@ -160,15 +189,6 @@ Use the following steps to enable or disable remote debugging:
160
189
161
190
Use the following steps to attach debugger.
162
191
163
-
1. Use the following Azure CLI command to obtain the **Azure Spring Apps Remote Debugging Role** role, which includes the `Microsoft.AppPlatform/Spring/apps/deployments/remotedebugging/action` data action permission.
164
-
165
-
```azurecli
166
-
az role assignment create \
167
-
--role "Azure Spring Apps Remote Debugging Role" \
168
-
--scope "<service-instance-resource-id>" \
169
-
--assignee "<your-identity>"
170
-
```
171
-
172
192
1. Select an app instance, and then select **Attach Debugger**. VS Code connects to the app instance and starts remote debugging.
173
193
174
194
:::image type="content" source="media/how-to-remote-debugging-app-instance/visual-studio-code-remote-debugging-instance.png" alt-text="Screenshot showing the Attach Debugger option." lightbox="media/how-to-remote-debugging-app-instance/visual-studio-code-remote-debugging-instance.png":::
0 commit comments