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
The following list describes the options to create resources and deploy applications in Azure Spring Apps:
15
+
The following list describes the different options to create resources and deploy applications in Azure Spring Apps:
16
16
17
17
- Azure portal: Use the Azure portal to create resources and deploy applications step by step. The Azure portal is suitable for developers who are using the Azure Cloud Services for the first time.
18
18
- Azure Developer CLI: Use the Azure Developer CLI to create resources and deploy applications through simple commands, and to cover application code and infrastructure as code files needed to provision the Azure resources. The Azure Developer CLI is suitable for developers who are familiar with the Azure Cloud Services.
**This article applies to:** ✔️ Standard consumption and dedicated (Preview)
21
21
22
-
This article explains how to deploy a RESTful API application protected by [Microsoft Entra ID](../active-directory/fundamentals/active-directory-whatis.md) to Azure Spring Apps. The sample project is a simplified version based on the [Simple Todo](https://github.com/Azure-Samples/ASA-Samples-Web-Application) web application, which only provides the backend service and uses Microsoft Entra ID to protect the RESTful APIs.
22
+
This article describes how to deploy a RESTful API application protected by [Microsoft Entra ID](../active-directory/fundamentals/active-directory-whatis.md) to Azure Spring Apps. The sample project is a simplified version based on the [Simple Todo](https://github.com/Azure-Samples/ASA-Samples-Web-Application) web application, which only provides the backend service and uses Microsoft Entra ID to protect the RESTful APIs.
23
23
24
24
These RESTful APIs are protected by applying role-based access control (RBAC). Anonymous users can't access any data and aren't allowed to control access for different users. Anonymous users only have the following three permissions:
25
25
@@ -39,15 +39,15 @@ The following diagram shows the architecture of the system:
39
39
40
40
## 1. Prerequisites
41
41
42
-
####[Azure portal](#tab/Azure-portal)
42
+
### [Azure portal](#tab/Azure-portal)
43
43
44
44
- An Azure subscription. If you don't have a subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
45
45
-[Git](https://git-scm.com/downloads).
46
46
-[Java Development Kit (JDK)](/java/azure/jdk/), version 17.
47
47
- A Microsoft Entra ID tenant. For instructions on creating one, see [Quickstart: Create a new tenant in Azure AD](../active-directory/fundamentals/create-new-tenant.md).
- An Azure subscription. If you don't have a subscription, create a [free account](https://azure.microsoft.com/free/) before you begin.
53
53
-[Git](https://git-scm.com/downloads).
@@ -80,23 +80,23 @@ Use the following steps to register an application in Microsoft Entra ID, which
80
80
81
81
1. Under **Manage**, select **App registrations** > **New registration**.
82
82
83
-
1. Enter a name for your application in the **Name** field, for example `ToDoWeb`. Users of your app might see this name, and you can change it later.
83
+
1. Enter a name for your application in the **Name** field, for example *ToDoWeb*. Users of your app might see this name, and you can change it later.
84
84
85
85
1. For **Supported account types**, use the default **Accounts in this organizational directory only**.
86
86
87
87
1. Select **Register** to create the application.
88
88
89
89
1. On the app **Overview** page, look for the **Application (client) ID** value, and then record it for later use. You need it to acquire access token.
90
90
91
-
1. Select **API permissions** > **Add a permission** > **My APIs**. Select the `ToDo` application that you registered earlier, and then select the permissions **ToDo.Read**, **ToDo.Write**, and **ToDo.Delete**. Select **Add permissions**.
91
+
1. Select **API permissions** > **Add a permission** > **My APIs**. Select the **ToDo** application that you registered earlier, and then select the permissions **ToDo.Read**, **ToDo.Write**, and **ToDo.Delete**. Select **Add permissions**.
92
92
93
93
1. Select **Grant admin consent for {your-tenant-name}** to grant admin consent for the permissions you added.
94
94
95
95
:::image type="content" source="media/quickstart-deploy-restful-api-app/api-permissions.png" alt-text="Image that shows the API permissions of a web application." lightbox="media/quickstart-deploy-restful-api-app/api-permissions.png":::
96
96
97
97
#### Add user to access the RESTful APIs
98
98
99
-
Use the following steps to create a member user in your Microsoft Entra ID, then the user can manage the data of ToDo application through RESTful APIs.
99
+
Use the following steps to create a member user in your Microsoft Entra ID, then the user can manage the data of the ToDo application through RESTful APIs.
100
100
101
101
1. Under **Manage**, select **Users** > **New user** > **Create new user**.
102
102
@@ -109,7 +109,7 @@ Use the following steps to create a member user in your Microsoft Entra ID, then
109
109
> [!NOTE]
110
110
>
111
111
> - New users must complete the first login authentication and update their passwords, otherwise, you receive an `AADSTS50055: The password is expired` error when you get the access token.
112
-
> - When a new user logs in, they will receive an **Action Required** prompt, you may choose to **Ask later** to skip the validation.
112
+
> - When a new user logs in, they will receive an **Action Required** prompt. You may choose to **Ask later** to skip the validation.
113
113
114
114
1. Select **Review + create** to review your selections. Select **Create** to create the user.
115
115
@@ -119,7 +119,7 @@ Use the following steps to update the OAuth2 configuration for Swagger UI author
119
119
120
120
1. Open the Azure Spring Apps instance in the Azure portal.
121
121
122
-
1. Open your **Azure Active Directory** tenant in Azure portal, go to the registered app `ToDoWeb`.
122
+
1. Open your **Azure Active Directory** tenant in the Azure portal, go to the registered app `ToDoWeb`.
123
123
124
124
1. Under **Manage**, select **Authentication**, select **Add a platform**, and then select **Single-page application**.
125
125
@@ -133,7 +133,7 @@ Use the following steps to use [OAuth 2.0 authorization code flow](../active-dir
133
133
134
134
1. Open the URL exposed by the app, then select **Authorize** to prepare the OAuth2 authentication.
135
135
136
-
1. In the pop-up **Available authorizations** window, enter the client ID of the app `ToDoWeb` in the **client_id** field, and select all the scopes for **Scopes** field, ignore the **client_secret** field, then select **Authorize** to redirect to the Microsoft Entra ID login page.
136
+
1. In the **Available authorizations** window, enter the client ID of the app `ToDoWeb` in the **client_id** field, and select all the scopes for **Scopes** field, ignore the **client_secret** field, then select **Authorize** to redirect to the Microsoft Entra ID login page.
137
137
138
138
1. After completing the login with the previous user, you'll return to the following pop-up window:
Copy file name to clipboardExpand all lines: articles/spring-apps/quickstart-deploy-web-app.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,10 @@ The following diagram shows the architecture of the system:
36
36
37
37
::: zone pivot="sc-consumption-plan,sc-standard"
38
38
39
-
This article provides the following options for deploying to Azure Spring Apps:
39
+
The following list describes the different options to create resources and deploy applications in Azure Spring Apps:
40
40
41
-
- Azure portal - Use the Azure portal for a more conventional way to create resources and deploy applications step by step. This approach is suitable for Spring developers who are using Azure Cloud Services for the first time.
42
-
- Azure Developer CLI: Use Azure Developer CLI for a more efficient way to create resources and deploy applications through simple commands, and to cover application code and infrastructure as code files needed to provision the Azure resources. This approach is suitable for Spring developers who are familiar with the Azure Cloud Services.
41
+
- Azure portal: Use the Azure portal to create resources and deploy applications step by step. The Azure portal is suitable for developers who are using the Azure Cloud Services for the first time.
42
+
- Azure Developer CLI: Use the Azure Developer CLI to create resources and deploy applications through simple commands, and to cover application code and infrastructure as code files needed to provision the Azure resources. The Azure Developer CLI is suitable for developers who are familiar with the Azure Cloud Services.
43
43
44
44
::: zone-end
45
45
@@ -98,9 +98,9 @@ Now you can access the deployed app to see whether it works. Use the following s
98
98
99
99
::: zone pivot="sc-enterprise"
100
100
101
-
1. After the deployment has completed, you can access the app with this URL: `https://${AZURE_SPRING_APPS_NAME}-${APP_NAME}.azuremicroservices.io/`. The page should appear as you saw in localhost.
101
+
1. After the deployment is complete, you can access the app with this URL: `https://${AZURE_SPRING_APPS_NAME}-${APP_NAME}.azuremicroservices.io/`. The page should appear as you saw in localhost.
102
102
103
-
1.Use the following command to check the app's log to investigate any deployment issue:
103
+
1.To check the app's log to investigate any deployment issue, use the following command:
104
104
105
105
```azurecli
106
106
az spring app logs \
@@ -114,7 +114,7 @@ Now you can access the deployed app to see whether it works. Use the following s
114
114
115
115
1. Access the application with the output application URL. The page should appear as you saw in localhost.
116
116
117
-
1. From the navigation pane of the Azure Spring Apps instance overview page, select **Logs** to check the app's logs.
117
+
1. From the navigation menu of the Azure Spring Apps instance overview page, select **Logs** to check the app's logs.
118
118
119
119
:::image type="content" source="media/quickstart-deploy-web-app/logs.png" alt-text="Screenshot of the Azure portal showing the Azure Spring Apps logs page." lightbox="media/quickstart-deploy-web-app/logs.png":::
120
120
@@ -130,7 +130,7 @@ Now you can access the deployed app to see whether it works. Use the following s
130
130
131
131
::: zone pivot="sc-enterprise"
132
132
133
-
If you plan to continue working with subsequent quickstarts and tutorials, you might want to leave these resources in place. When you no longer need the resources, delete them by deleting the resource group. Use the following command to delete the resource group:
133
+
If you plan to continue working with subsequent quickstarts and tutorials, you might want to leave these resources in place. When you no longer need the resources, delete them by deleting the resource group. To delete the resource group, use the following command:
0 commit comments