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
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-microservice-apps/deploy-microservice-apps-with-basic-standard-plan.md
+19-33Lines changed: 19 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@ author: KarlErickson
3
3
ms.author: v-shilichen
4
4
ms.service: spring-apps
5
5
ms.topic: include
6
-
ms.date: 06/9/2023
6
+
ms.date: 01/10/2024
7
7
---
8
8
9
-
<!--
9
+
<!--
10
10
For clarity of structure, a separate markdown file is used to describe how to deploy to Azure Spring Apps with Basic/Standard plan.
Use the following steps to initialize the Pet Clinic application using Azure Developer CLI templates:
39
25
40
-
1.Open a terminal, create a new, empty folder, and then navigate to it.
26
+
1.In the Bash window, create a new, empty folder and then navigate to it.
41
27
42
28
1. Use the following command to initialize the project:
43
29
@@ -53,11 +39,11 @@ Use the following steps to initialize the Pet Clinic application using Azure Dev
53
39
54
40
```output
55
41
Initializing a new project (azd init)
56
-
42
+
57
43
Downloading template code to: <your-local-path>
58
44
(✓) Done: Initialized git repository
59
45
Enter a new environment name: <your-env-name>
60
-
46
+
61
47
SUCCESS: New project initialized!
62
48
You can view the template code in your directory: <your-local-path>
63
49
Learn more about running 3rd party code on our DevHub: https://aka.ms/azd-third-party-code-notice
@@ -98,7 +84,7 @@ Use the following steps to create the service instance:
98
84
|**Name**|*myasa*| A unique name that identifies your Azure Spring Apps instance. The name must be between 4 and 32 characters long and can contain only lowercase letters, numbers, and hyphens. The first character of the service name must be a letter and the last character must be either a letter or a number. |
99
85
|**Plan**|**Standard**| The pricing plan determines the resources and cost associated with your instance. |
100
86
|**Region**| The region closest to your users. | The location that is closest to your users. |
101
-
|**Zone Redundant**|Unchecked | Creates your Azure Spring Apps service in an Azure availability zone. Not currently supported in all regions. |
87
+
|**Zone Redundant**|Unselected| Creates your Azure Spring Apps service in an Azure availability zone. Not currently supported in all regions. |
102
88
103
89
1. Navigate to the **Diagnostic settings** tab on the **Create Azure Spring Apps** page and then select **Create new** to create a new Log Analytics workspaces instance. On the **Create new Log Analytics workspace** page, update the name of the **Log Analytics workspace** as needed, and then select **OK** to confirm the creation.
104
90
@@ -118,7 +104,7 @@ Use the following steps to create the service instance:
118
104
119
105
1. Select **Config Server** in the navigation pane.
120
106
121
-
1. On the **Config Server** page, for **URI**, enter *`https://github.com/Azure-Samples/spring-petclinic-microservices-config.git`*, and then select **Validate**.
107
+
1. On the **Config Server** page, for **URI**, enter *https://github.com/Azure-Samples/spring-petclinic-microservices-config.git* and then select **Validate**.
122
108
123
109
:::image type="content" source="../../media/quickstart-deploy-microservice-apps/validate-config-server.png" alt-text="Screenshot of the Azure portal that shows the Config Server page with the Default URI and the Validate button highlighted and the Apply button disabled." lightbox="../../media/quickstart-deploy-microservice-apps/validate-config-server.png":::
124
110
@@ -128,15 +114,15 @@ Use the following steps to create the service instance:
128
114
129
115
Use the following steps to create the required resources:
130
116
131
-
1. Use the following command to sign in to Azure with OAuth2. Ignore this step if you've already signed in.
117
+
1. Use the following command to sign in to Azure with OAuth2. Ignore this step if you already signed in.
132
118
133
119
```bash
134
120
azd auth login
135
121
```
136
122
137
123
The console outputs messages similar to the following example:
138
124
139
-
```text
125
+
```output
140
126
Logged in to Azure.
141
127
```
142
128
@@ -172,7 +158,7 @@ You can now deploy the app to Azure Spring Apps.
172
158
173
159
Use the following steps to deploy the microservice applications using the [Maven plugin for Azure Spring Apps](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Spring-Apps):
174
160
175
-
1. Navigate to the sample project directory and use the following command to configure the apps for Azure Spring Apps:
161
+
1. Navigate to the sample project directory and then use the following command to configure the apps for Azure Spring Apps:
Copy file name to clipboardExpand all lines: articles/spring-apps/includes/quickstart-deploy-microservice-apps/deploy-microservice-apps-with-enterprise-plan.md
+122-3Lines changed: 122 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@ author: KarlErickson
3
3
ms.author: v-shilichen
4
4
ms.service: spring-apps
5
5
ms.topic: include
6
-
ms.date: 9/15/2023
6
+
ms.date: 01/10/2024
7
7
---
8
8
9
-
<!--
9
+
<!--
10
10
For clarity of structure, a separate markdown file is used to describe how to deploy to Azure Spring Apps with Enterprise plan.
@@ -15,12 +15,67 @@ For clarity of structure, a separate markdown file is used to describe how to de
15
15
16
16
## 2. Prepare the Spring project
17
17
18
+
### [Azure portal](#tab/Azure-portal-ent)
19
+
18
20
The **Deploy to Azure** button in the next section launches an Azure portal experience that downloads a JAR package from the [ASA-Samples-Web-Application releases](https://github.com/Azure-Samples/ASA-Samples-Web-Application/releases) page on GitHub. No local preparation steps are needed.
1. Open a new Bash window and navigate to the project `spring-petclinic-frontend` directory. Use the following commands to install dependencies and run the frontend application:
63
+
64
+
```bash
65
+
npm install
66
+
npm run start
67
+
````
68
+
69
+
1. After the script completes successfully, go to `http://localhost:8080`in your browser to access the PetClinic application.
70
+
71
+
---
72
+
20
73
## 3. Prepare the cloud environment
21
74
22
75
The main resource you need to run this sample is an Azure Spring Apps instance. This section describes how to create this resource.
23
76
77
+
### [Azure portal](#tab/Azure-portal-ent)
78
+
24
79
This section uses a **Deploy to Azure** button to launch a deployment experience in the Azure portal. This experience uses an [ARM template](../../../azure-resource-manager/templates/overview.md) to create Azure resources.
25
80
26
81
### 3.1. Sign in to the Azure portal
@@ -43,14 +98,78 @@ Use the following steps to create all the Azure resources that the app depends o
43
98
| **Resource group** | *myresourcegroup* | A new resource group name or an existing one from your subscription. |
44
99
| **Region** | The region closest to your users. | The region is used to create the resource group. |
45
100
46
-
:::image type="content" source="../../media/quickstart-deploy-microservice-apps/custom-deployment-microservice.png" alt-text="Screenshot of the Azure portal that shows the custom deployment for microservice." lightbox="../../media/quickstart-deploy-microservice-apps/custom-deployment-microservice.png":::
101
+
:::image type="content" source="../../media/quickstart-deploy-microservice-apps/custom-deployment-microservice.png" alt-text="Screenshot of the Azure portal that shows the Custom deployment page." lightbox="../../media/quickstart-deploy-microservice-apps/custom-deployment-microservice.png":::
47
102
48
103
1. Select **Review and Create** to review your selections. Then, select **Create** to deploy the app to Azure Spring Apps.
49
104
50
105
1. On the toolbar, select the **Notifications** icon (a bell) to monitor the deployment process. After the deployment finishes, you can select **Pin to dashboard**, which creates a tile for this service on your Azure portal dashboard as a shortcut to the service's **Overview** page. Select **Go to resource** to open the service's **Overview** page.
51
106
52
107
:::image type="content" source="../../media/quickstart-deploy-microservice-apps/custom-deployment-notifications.png" alt-text="Screenshot of the Azure portal that shows the Overview page with the custom deployment notifications pane open." lightbox="../../media/quickstart-deploy-microservice-apps/custom-deployment-notifications.png":::
The **Deploy to Azure** button in the previous section launches an Azure portal experience that includes application deployment, so nothing else is needed.
Use the following steps to deploy using the [Maven plugin for Azure Spring Apps](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Spring-Apps):
16
+
17
+
1. Navigate to the project root directory and then run the following command to configure the apps in Azure Spring Apps:
The following list describes the command interactions:
24
+
25
+
-**Select child modules to configure**: Press <kbd>Enter</kbd> to select all.
26
+
-**Select subscription**: Select the subscription list number of the Azure Spring Apps instance you created, which defaults to the first subscription in the list. If you use the default number, press <kbd>Enter</kbd> directly.
27
+
-**Use existing Azure Spring Apps in Azure**: Press <kbd>y</kbd> to use the existing Azure Spring Apps instance.
28
+
-**Select apps to expose public access**: Press <kbd>Enter</kbd> to select none.
29
+
-**Confirm to save all the above configurations**: Press <kbd>y</kbd>. If you press <kbd>n</kbd>, the configuration isn't saved in the POM files.
0 commit comments