Skip to content

Commit e9e938d

Browse files
authored
Merge branch 'MicrosoftDocs:main' into release-stor-isv
2 parents 9885bf0 + 9ea6b1d commit e9e938d

16 files changed

+33
-53
lines changed

articles/machine-learning/how-to-create-component-pipeline-python.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ The code above define a component with display name `Prep Data` using `@command_
112112
* `display_name` is a friendly display name of the component in UI, which isn't unique.
113113
* `description` usually describes what task this component can complete.
114114
* `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:
117+
118+
:::code language="python" source="~/azureml-examples-v2samplesreorg/sdk/python/jobs/pipelines/2e_image_classification_keras_minist_convnet/prep/conda.yaml":::
119+
115120
* The `prepare_data_component` function defines one input for `input_data` and two outputs for `training_data` and `test_data`.
116121
`input_data` is input data path. `training_data` and `test_data` are output data paths for training data and test data.
117122
* 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.
123128
124129
:::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":::
125130
126-
#### Specify component run-time environment
127-
128-
You'll need to modify the runtime environment in which your component runs.
129-
130-
:::code language="python" source="~/azureml-examples-main/sdk/python/jobs/pipelines/2e_image_classification_keras_minist_convnet/prep/prep_component.py" range="5-10":::
131-
132-
The above code creates an object of `Environment` class, which represents the runtime environment in which the component runs.
133-
134-
The `conda.yaml` file contains all packages used for the component like following:
135-
136-
:::code language="python" source="~/azureml-examples-main/sdk/python/jobs/pipelines/2e_image_classification_keras_minist_convnet/prep/conda.yaml":::
137-
138-
139131
Now, you've prepared all source files for the `Prep Data` component.
140132

141133

@@ -165,8 +157,6 @@ The code above define a component with display name `Train Image Classification
165157
166158
* 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.
167159
168-
#### Specify component run-time environment
169-
170160
The train-model component has a slightly more complex configuration than the prep-data component. The `conda.yaml` is like following:
171161
172162
:::code language="yaml" source="~/azureml-examples-main/sdk/python/jobs/pipelines/2e_image_classification_keras_minist_convnet/train/conda.yaml":::
@@ -206,11 +196,7 @@ In this section, you'll learn to create a component specification in the valid Y
206196
* This component has two inputs and one output.
207197
* 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.
208198
* 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).
214200

215201
Now, you've got all source files for score-model component.
216202
281 KB
Loading

articles/machine-learning/tutorial-designer-automobile-price-deploy.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,13 @@ You can update the online endpoint with new model trained in the designer. On th
179179

180180
## Limitations
181181

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.":::
183189

184190
## Clean up resources
185191

articles/spring-apps/expose-apps-gateway-end-to-end-tls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This article explains how to expose applications to the internet using Applicati
2929

3030
## Configure Application Gateway for Azure Spring Apps
3131

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).
3333

3434
To configure Application Gateway in front of Azure Spring Apps, use the following steps.
3535

articles/spring-apps/expose-apps-gateway-tls-termination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ When an Azure Spring Apps service instance is deployed in your virtual network (
2828

2929
## Configure Application Gateway for Azure Spring Apps
3030

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).
3232

3333
To configure Application Gateway in front of Azure Spring Apps in a private VNET, use the following steps.
3434

articles/spring-apps/how-to-integrate-azure-load-balancers.md

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,19 @@ ms.custom: devx-track-java, event-tier1-build-2022
2020

2121
Azure Spring Apps supports Spring applications on Azure. Increasing business can require multiple data centers with management of multiple instances of Azure Spring Apps.
2222

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:
2424

2525
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).
2832

2933
## Prerequisites
3034

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)
3136
* Azure Spring Apps: [How to create an Azure Spring Apps service](./quickstart.md)
3237
* Azure Traffic Manager: [How to create a traffic manager](../traffic-manager/quickstart-create-traffic-manager-profile.md)
3338
* Azure App Gateway: [How to create an application gateway](../application-gateway/quick-create-portal.md)
@@ -53,10 +58,6 @@ Add endpoints in traffic manager:
5358
To finish the configuration:
5459

5560
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.
58-
59-
![Traffic Manager 3](media/spring-cloud-load-balancers/traffic-manager-3.png)
6061

6162
## Integrate Azure Spring Apps with Azure App Gateway
6263

@@ -72,43 +73,30 @@ To integrate with Azure Spring Apps service, complete the following configuratio
7273
### Add Custom Probe
7374

7475
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).
7677

7778
![App Gateway 2](media/spring-cloud-load-balancers/app-gateway-2.png)
7879

79-
### Configure Http Setting
80+
### Configure Backend Setting
8081

81-
1. Select **Http Settings** then **Add** to add an HTTP setting.
82-
1. **Override with new host name:** select *Yes*.
83-
1. **Host name override**: select **Pick host name from backend target**.
82+
1. Select **Backend settings** then **Add** to add a backend setting.
83+
1. **Override with new host name:** select *No*.
8484
1. **Use custom probe**: select *Yes* and pick the custom probe created above.
8585

8686
![App Gateway 3](media/spring-cloud-load-balancers/app-gateway-3.png)
8787

88-
### Configure Rewrite Set
89-
90-
1. Select **Rewrites** then **Rewrite set** to add a rewrite set.
91-
1. Select the routing rules that route requests to Azure Spring Apps public endpoints.
92-
1. On **Rewrite rule configuration** tab, select **Add rewrite rule**.
93-
1. **Rewrite type**: select **Request Header**
94-
1. **Action type**: select **Delete**
95-
1. **Header name**: select **Common header**
96-
1. **Common Header**: select **X-Forwarded-Proto**
97-
98-
![App Gateway 4](media/spring-cloud-load-balancers/app-gateway-4.png)
99-
10088
## Integrate Azure Spring Apps with Azure Front Door
10189

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:
10391

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.
10694

10795
![Front Door 1](media/spring-cloud-load-balancers/front-door-1.png)
10896

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 **backend host 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).
112100

113101
![Front Door 2](media/spring-cloud-load-balancers/front-door-2.png)
114102

-25.2 KB
Loading
5.53 KB
Loading
-17.1 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)