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/machine-learning/how-to-create-component-pipeline-python.md
+6-20Lines changed: 6 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,11 @@ The code above define a component with display name `Prep Data` using `@command_
112
112
*`display_name` is a friendly display name of the component in UI, which isn't unique.
113
113
* `description` usually describes what task this component can complete.
114
114
* `environment` specifies the run-time environment for this component. The environment of this component specifies a docker image and refers to the `conda.yaml` file.
115
+
116
+
The `conda.yaml` file contains all packages used for the component like following:
* The `prepare_data_component` function defines one input for `input_data` and two outputs for `training_data` and `test_data`.
116
121
`input_data` is input data path. `training_data` and `test_data` are output data paths for training data and test data.
117
122
* This component converts the data from `input_data` into a training data csv to `training_data` and a test data csv to `test_data`.
@@ -123,19 +128,6 @@ Following is what a component looks like in the studio UI.
123
128
124
129
:::image type="content" source="./media/how-to-create-component-pipeline-python/prep-data-component.png" alt-text="Screenshot of the Prep Data component in the UI and code." lightbox ="./media/how-to-create-component-pipeline-python/prep-data-component.png":::
125
130
126
-
#### Specify component run-time environment
127
-
128
-
You'll need to modify the runtime environment in which your component runs.
Now, you've prepared all source files for the `Prep Data` component.
140
132
141
133
@@ -165,8 +157,6 @@ The code above define a component with display name `Train Image Classification
165
157
166
158
* The `keras_train_component` function defines one input `input_data` where training data comes from, one input `epochs` specifying epochs during training, and one output `output_model` where outputs the model file. The default value of `epochs` is 10. The execution logic of this component is from `train()` function in `train.py` above.
167
159
168
-
#### Specify component run-time environment
169
-
170
160
The train-model component has a slightly more complex configuration than the prep-data component. The `conda.yaml` is like following:
@@ -206,11 +196,7 @@ In this section, you'll learn to create a component specification in the valid Y
206
196
* This component has two inputs and one output.
207
197
* The source code path of it's defined in the `code` section and when the component is run in cloud, all files from that path will be uploaded as the snapshot of this component.
208
198
* The `command` section specifies the command to execute while running this component.
209
-
* The `environment` section contains a docker image and a conda yaml file.
210
-
211
-
#### Specify component run-time environment
212
-
213
-
The score component uses the same image and conda.yaml file as the train component. The source file is in the [sample repository](https://github.com/Azure/azureml-examples/blob/main/sdk/python/jobs/pipelines/2e_image_classification_keras_minist_convnet/train/conda.yaml).
199
+
* The `environment` section contains a docker image and a conda yaml file. The source file is in the [sample repository](https://github.com/Azure/azureml-examples/blob/v2samplesreorg/sdk/python/jobs/pipelines/2e_image_classification_keras_minist_convnet/score/conda.yaml).
214
200
215
201
Now, you've got all source files for score-model component.
Copy file name to clipboardExpand all lines: articles/machine-learning/tutorial-designer-automobile-price-deploy.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,13 @@ You can update the online endpoint with new model trained in the designer. On th
179
179
180
180
## Limitations
181
181
182
-
Due to datastore access limitation, if your inference pipeline contains **Import Data** or **Export Data** component, they'll be auto-removed when deploy to real-time endpoint.
182
+
* Due to datastore access limitation, if your inference pipeline contains **Import Data** or **Export Data** component, they'll be auto-removed when deploy to real-time endpoint.
183
+
184
+
* If you have datasets in the real-time inference pipeline and want to deploy it to real-time endpoint, currently this flow only supports datasets registered from **Blob** datastore. If you want to use datasets from other type datastores, you can use Select Column to connect with your initial dataset with settings of selecting all columns, register the outputs of Select Column as File dataset and then replace the initial dataset in the real-time inference pipeline with this newly registered dataset.
185
+
186
+
* If your inference graph contains "Enter Data Manually" component which is not connected to the same port as “Web service Input” component, the "Enter Data Manually" component will not be executed during HTTP call processing. A workaround is to register the outputs of that "Enter Data Manually" component as dataset, then in the inference pipeline draft, replace the "Enter Data Manually" component with the registered dataset.
187
+
188
+
:::image type="content" source="./media/tutorial-designer-automobile-price-deploy/real-time-inferencepipeline-limitation.png" alt-text="Screenshot showing how to modify inference pipeline containing enter data manually component.":::
Copy file name to clipboardExpand all lines: articles/spring-apps/expose-apps-gateway-end-to-end-tls.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ This article explains how to expose applications to the internet using Applicati
29
29
30
30
## Configure Application Gateway for Azure Spring Apps
31
31
32
-
We recommend that the domain name, as seen by the browser, is the same as the host name which Application Gateway uses to direct traffic to the Azure Spring Apps back end. This recommendation provides the best experience when using Application Gateway to expose applications hosted in Azure Spring Apps and residing in a virtual network. If the domain exposed by Application Gateway is different from the domain accepted by Azure Spring Apps, cookies and generated redirect URLs (for example) can be broken.
32
+
We recommend that the domain name, as seen by the browser, is the same as the host name which Application Gateway uses to direct traffic to the Azure Spring Apps back end. This recommendation provides the best experience when using Application Gateway to expose applications hosted in Azure Spring Apps and residing in a virtual network. If the domain exposed by Application Gateway is different from the domain accepted by Azure Spring Apps, cookies and generated redirect URLs (for example) can be broken. For more information, see [Host name preservation](/azure/architecture/best-practices/host-name-preservation.md).
33
33
34
34
To configure Application Gateway in front of Azure Spring Apps, use the following steps.
Copy file name to clipboardExpand all lines: articles/spring-apps/expose-apps-gateway-tls-termination.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ When an Azure Spring Apps service instance is deployed in your virtual network (
28
28
29
29
## Configure Application Gateway for Azure Spring Apps
30
30
31
-
We recommend that the domain name, as seen by the browser, is the same as the host name which Application Gateway uses to direct traffic to the Azure Spring Apps back end. This recommendation provides the best experience when using Application Gateway to expose applications hosted in Azure Spring Apps and residing in a virtual network. If the domain exposed by Application Gateway is different from the domain accepted by Azure Spring Apps, cookies and generated redirect URLs (for example) can be broken.
31
+
We recommend that the domain name, as seen by the browser, is the same as the host name which Application Gateway uses to direct traffic to the Azure Spring Apps back end. This recommendation provides the best experience when using Application Gateway to expose applications hosted in Azure Spring Apps and residing in a virtual network. If the domain exposed by Application Gateway is different from the domain accepted by Azure Spring Apps, cookies and generated redirect URLs (for example) can be broken. For more information, see [Host name preservation](/azure/architecture/best-practices/host-name-preservation.md).
32
32
33
33
To configure Application Gateway in front of Azure Spring Apps in a private VNET, use the following steps.
Azure Spring Apps supports Spring applications on Azure. Increasing business can require multiple data centers with management of multiple instances of Azure Spring Apps.
22
22
23
-
Azure already provides different load-balance solutions. There are three options to integrate Azure Spring Apps with Azure load-balance solutions:
23
+
Azure already provides [different load-balance solutions](/azure/architecture/guide/technology-choices/load-balancing-overview.md). There are three common options to integrate Azure Spring Apps with Azure load-balance solutions:
24
24
25
25
1. Integrate Azure Spring Apps with Azure Traffic Manager
26
-
2. Integrate Azure Spring Apps with Azure App Gateway
27
-
3. Integrate Azure Spring Apps with Azure Front Door
26
+
1. Integrate Azure Spring Apps with Azure App Gateway
27
+
1. Integrate Azure Spring Apps with Azure Front Door
28
+
29
+
In the examples below, we will load balance requests for a custom domain of `www.contoso.com` towards two deployments of Azure Spring Apps in two different regions: `eastus.azuremicroservices.io` and `westus.azuremicroservices.io`.
30
+
31
+
We recommend that the domain name, as seen by the browser, is the same as the host name which the load balancer uses to direct traffic to the Azure Spring Apps back end. This recommendation provides the best experience when using a load balancer to expose applications hosted in Azure Spring Apps. If the domain exposed by the load balancer is different from the domain accepted by Azure Spring Apps, cookies and generated redirect URLs (for example) can be broken. For more information, see [Host name preservation](/azure/architecture/best-practices/host-name-preservation.md).
28
32
29
33
## Prerequisites
30
34
35
+
* A custom domain to be used to access the application: [Tutorial: Map an existing custom domain to Azure Spring Apps](./tutorial-custom-domain.md)
31
36
* Azure Spring Apps: [How to create an Azure Spring Apps service](./quickstart.md)
32
37
* Azure Traffic Manager: [How to create a traffic manager](../traffic-manager/quickstart-create-traffic-manager-profile.md)
33
38
* Azure App Gateway: [How to create an application gateway](../application-gateway/quick-create-portal.md)
@@ -53,10 +58,6 @@ Add endpoints in traffic manager:
53
58
To finish the configuration:
54
59
55
60
1. Sign in to the website of your domain provider, and create a CNAME record mapping from your custom domain to traffic manager’s Azure default domain name.
56
-
1. Follow instructions [How to add custom domain to Azure Spring Apps](./tutorial-custom-domain.md).
57
-
1. Add above custom domain binding to traffic manager to Azure Spring Apps corresponding app service and upload SSL certificate there.
## Integrate Azure Spring Apps with Azure App Gateway
62
63
@@ -72,43 +73,30 @@ To integrate with Azure Spring Apps service, complete the following configuratio
72
73
### Add Custom Probe
73
74
74
75
1. Select **Health Probes** then **Add** to open custom **Probe** dialog.
75
-
1. The key point is to select *Yes* for **Pick host name from backend HTTP settings** option.
76
+
1. The key point is to select *No* for **Pick host name from backend HTTP settings** option and explicitly specify the host name. For more information, see [Application Gateway configuration for host name preservation](/azure/architecture/best-practices/host-name-preservation.md#application-gateway).
## Integrate Azure Spring Apps with Azure Front Door
101
89
102
-
To integrate with Azure Spring Apps service and configure backend pool, use the following steps:
90
+
To integrate with Azure Spring Apps service and configure an origin group, use the following steps:
103
91
104
-
1.**Add backend pool**.
105
-
1. Specify the backend endpoint by adding host.
92
+
1.**Add origin group**.
93
+
1. Specify the backend endpoints by adding origins for the different Azure Spring Apps instances.
106
94
107
95

108
96
109
-
1. Specify **backend host type** as *custom host*.
110
-
1.Input FQDN of your Azure Spring Apps public endpoints in**backend host name**.
111
-
1.Accept the **backend host header**default, which is the same as **backendhost name**.
97
+
1. Specify **origin type** as *Azure Spring Apps*.
98
+
1.Select your Azure Spring Apps instance for the**host name**.
99
+
1.Keep the **origin host header**empty, so that the incoming host header will be used towards the backend. For more information, see [Azure Front Door configuration for host name preservation](/azure/architecture/best-practices/host-name-preservation.md#azure-front-door).
112
100
113
101

0 commit comments