Skip to content

Commit a487020

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into vnet-encryption-ga
2 parents 6ee30af + f78589c commit a487020

File tree

4 files changed

+155
-135
lines changed

4 files changed

+155
-135
lines changed

articles/app-service/tutorial-custom-container.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ The streamed logs look like this:
217217

218218
Azure App Service uses the Docker container technology to host both built-in images and custom images. To see a list of built-in images, run the Azure CLI command, ['az webapp list-runtimes --os linux'](/cli/azure/webapp#az-webapp-list-runtimes). If those images don't satisfy your needs, you can build and deploy a custom image.
219219

220+
> [!NOTE]
221+
> Container should target x86-x64 architecture, ARM64 is not supported.
222+
>
223+
220224
In this tutorial, you learn how to:
221225

222226
> [!div class="checklist"]

articles/machine-learning/how-to-migrate-from-v1.md

Lines changed: 64 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.subservice: core
88
ms.topic: how-to
99
author: balapv
1010
ms.author: balapv
11-
ms.date: 09/23/2022
11+
ms.date: 02/22/2024
1212
ms.reviewer: sgilley
1313
ms.custom: devplatv2, devx-track-python
1414
monikerRange: 'azureml-api-2 || azureml-api-1'
@@ -32,7 +32,7 @@ You should use v2 if you're starting a new machine learning project or workflow.
3232
* Responsible AI dashboard
3333
* Registry of assets
3434

35-
A new v2 project can reuse existing resources like workspaces and compute and existing assets like models and environments created using v1.
35+
A new v2 project can reuse existing v1 resources like workspaces and compute and existing assets like models and environments created using v1.
3636

3737
Some feature gaps in v2 include:
3838

@@ -46,12 +46,6 @@ You should then ensure the features you need in v2 meet your organization's requ
4646
> [!IMPORTANT]
4747
> New features in Azure Machine Learning will only be launched in v2.
4848
49-
## Should I upgrade existing code to v2
50-
51-
You can reuse your existing assets in your v2 workflows. For instance a model created in v1 can be used to perform Managed Inferencing in v2.
52-
53-
Optionally, if you want to upgrade specific parts of your existing code to v2, please refer to the comparison links provided in the details of each resource or asset in the rest of this document.
54-
5549
## Which v2 API should I use?
5650

5751
In v2 interfaces via REST API, CLI, and Python SDK are available. The interface you should use depends on your scenario and preferences.
@@ -62,15 +56,25 @@ In v2 interfaces via REST API, CLI, and Python SDK are available. The interface
6256
|CLI|Recommended for automation with CI/CD or per personal preference. Allows quick iteration with YAML files and straightforward separation between Azure Machine Learning and ML model code.|
6357
|Python SDK|Recommended for complicated scripting (for example, programmatically generating large pipeline jobs) or per personal preference. Allows quick iteration with YAML files or development solely in Python.|
6458

65-
## Can I use v1 and v2 together?
59+
## Mapping of Python SDK v1 to v2
6660

67-
v1 and v2 can co-exist in a workspace. You can reuse your existing assets in your v2 workflows. For instance a model created in v1 can be used to perform Managed Inferencing in v2. Resources like workspace, compute, and datastore work across v1 and v2, with exceptions. A user can call the v1 Python SDK to change a workspace's description, then using the v2 CLI extension change it again. Jobs (experiments/runs/pipelines in v1) can be submitted to the same workspace from the v1 or v2 Python SDK. A workspace can have both v1 and v2 model deployment endpoints.
61+
See each of the following articles for a comparison code mapping for SDK v1 vs v2.
6862

69-
### Using v1 and v2 code together
70-
We do not recommend using the v1 and v2 SDKs together in the same code. It is technically possible to use v1 and v2 in the same code because they use different Azure namespaces. However, there are many classes with the same name across these namespaces (like Workspace, Model) which can cause confusion and make code readability and debuggability challenging.
63+
|Resources and assets |Article |
64+
|---------|---------|
65+
|Workspace | [Workspace management in SDK v1 and SDK v2](migrate-to-v2-resource-workspace.md) |
66+
|Datastore | [Datastore management in SDK v1 and SDK v2](migrate-to-v2-resource-datastore.md) |
67+
|Data | [Data assets in SDK v1 and v2](migrate-to-v2-assets-data.md) |
68+
|Compute | [Compute management in SDK v1 and SDK v2](migrate-to-v2-resource-compute.md) |
69+
|Training | [Run a script](migrate-to-v2-command-job.md) |
70+
|Training | [Local runs](migrate-to-v2-local-runs.md) |
71+
|Training | [Hyperparameter tuning](migrate-to-v2-execution-hyperdrive.md) |
72+
|Training | [Parallel Run](migrate-to-v2-execution-parallel-run-step.md) |
73+
|Training | [Pipelines](migrate-to-v2-execution-pipeline.md) |
74+
|Training | [AutoML](migrate-to-v2-execution-automl.md) |
75+
| Models | [Model management in SDK v1 and SDK v2](migrate-to-v2-assets-model.md) |
76+
| Deployment | [Upgrade deployment endpoints to SDK v2](migrate-to-v2-deploy-endpoints.md) |
7177

72-
> [!IMPORTANT]
73-
> If your workspace uses a private endpoint, it will automatically have the `v1_legacy_mode` flag enabled, preventing usage of v2 APIs. See [how to configure network isolation with v2](how-to-configure-network-isolation-with-v2.md?view=azureml-api-2&preserve-view=true) for details.
7478

7579
## Resources and assets in v1 and v2
7680

@@ -100,26 +104,25 @@ Object storage datastore types created with v1 are fully available for use in v2
100104

101105
For a comparison of SDK v1 and v2 code, see [Datastore management in SDK v1 and SDK v2](migrate-to-v2-resource-datastore.md).
102106

103-
### Compute
107+
### Data (datasets in v1)
104108

105-
Compute of type `AmlCompute` and `ComputeInstance` are fully available for use in v2.
109+
Datasets are renamed to data assets. *Backwards compatibility* is provided, which means you can use V1 Datasets in V2. When you consume a V1 Dataset in a V2 job you will notice they are automatically mapped into V2 types as follows:
106110

107-
For a comparison of SDK v1 and v2 code, see [Compute management in SDK v1 and SDK v2](migrate-to-v2-resource-compute.md).
111+
* V1 FileDataset = V2 Folder (`uri_folder`)
112+
* V1 TabularDataset = V2 Table (`mltable`)
108113

109-
### Endpoint and deployment (endpoint and web service in v1)
114+
It should be noted that *forwards compatibility* is **not** provided, which means you **cannot** use V2 data assets in V1.
110115

111-
With SDK/CLI v1, you can deploy models on ACI or AKS as web services. Your existing v1 model deployments and web services will continue to function as they are, but Using SDK/CLI v1 to deploy models on ACI or AKS as web services is now considered as **legacy**. For new model deployments, we recommend upgrading to v2. In v2, we offer [managed endpoints or Kubernetes endpoints](./concept-endpoints.md?view=azureml-api-2&preserve-view=true). The following table guides our recommendation:
116+
This article talks more about handling data in v2 - [Read and write data in a job](how-to-read-write-data-v2.md?view=azureml-api-2&preserve-view=true)
112117

113-
|Endpoint type in v2|Upgrade from|Notes|
114-
|-|-|-|
115-
|Local|ACI|Quick test of model deployment locally; not for production.|
116-
|Managed online endpoint|ACI, AKS|Enterprise-grade managed model deployment infrastructure with near real-time responses and massive scaling for production.|
117-
|Managed batch endpoint|ParallelRunStep in a pipeline for batch scoring|Enterprise-grade managed model deployment infrastructure with massively parallel batch processing for production.|
118-
|Azure Kubernetes Service (AKS)|ACI, AKS|Manage your own AKS cluster(s) for model deployment, giving flexibility and granular control at the cost of IT overhead.|
119-
|Azure Arc Kubernetes|N/A|Manage your own Kubernetes cluster(s) in other clouds or on-premises, giving flexibility and granular control at the cost of IT overhead.|
118+
For a comparison of SDK v1 and v2 code, see [Data assets in SDK v1 and v2](migrate-to-v2-assets-data.md).
120119

121-
For a comparison of SDK v1 and v2 code, see [Upgrade deployment endpoints to SDK v2](migrate-to-v2-deploy-endpoints.md).
122-
For migration steps from your existing ACI web services to managed online endpoints, see our [upgrade guide article](migrate-to-v2-managed-online-endpoints.md) and [blog](https://aka.ms/acimoemigration).
120+
121+
### Compute
122+
123+
Compute of type `AmlCompute` and `ComputeInstance` are fully available for use in v2.
124+
125+
For a comparison of SDK v1 and v2 code, see [Compute management in SDK v1 and SDK v2](migrate-to-v2-resource-compute.md).
123126

124127
### Jobs (experiments, runs, pipelines in v1)
125128

@@ -141,24 +144,27 @@ You can continue to use designer to build pipelines using classic prebuilt compo
141144

142145
You cannot build a pipeline using both existing designer classic prebuilt components and v2 custom components.
143146

144-
### Data (datasets in v1)
145-
146-
Datasets are renamed to data assets. *Backwards compatibility* is provided, which means you can use V1 Datasets in V2. When you consume a V1 Dataset in a V2 job you will notice they are automatically mapped into V2 types as follows:
147147

148-
* V1 FileDataset = V2 Folder (`uri_folder`)
149-
* V1 TabularDataset = V2 Table (`mltable`)
148+
### Model
150149

151-
It should be noted that *forwards compatibility* is **not** provided, which means you **cannot** use V2 data assets in V1.
150+
Models created from v1 can be used in v2.
152151

153-
This article talks more about handling data in v2 - [Read and write data in a job](how-to-read-write-data-v2.md?view=azureml-api-2&preserve-view=true)
152+
For a comparison of SDK v1 and v2 code, see [Model management in SDK v1 and SDK v2](migrate-to-v2-assets-model.md)
154153

155-
For a comparison of SDK v1 and v2 code, see [Data assets in SDK v1 and v2](migrate-to-v2-assets-data.md).
154+
### Endpoint and deployment (endpoint and web service in v1)
156155

157-
### Model
156+
With SDK/CLI v1, you can deploy models on ACI or AKS as web services. Your existing v1 model deployments and web services will continue to function as they are, but Using SDK/CLI v1 to deploy models on ACI or AKS as web services is now considered as **legacy**. For new model deployments, we recommend upgrading to v2. In v2, we offer [managed endpoints or Kubernetes endpoints](./concept-endpoints.md?view=azureml-api-2&preserve-view=true). The following table guides our recommendation:
158157

159-
Models created from v1 can be used in v2.
158+
|Endpoint type in v2|Upgrade from|Notes|
159+
|-|-|-|
160+
|Local|ACI|Quick test of model deployment locally; not for production.|
161+
|Managed online endpoint|ACI, AKS|Enterprise-grade managed model deployment infrastructure with near real-time responses and massive scaling for production.|
162+
|Managed batch endpoint|ParallelRunStep in a pipeline for batch scoring|Enterprise-grade managed model deployment infrastructure with massively parallel batch processing for production.|
163+
|Azure Kubernetes Service (AKS)|ACI, AKS|Manage your own AKS cluster(s) for model deployment, giving flexibility and granular control at the cost of IT overhead.|
164+
|Azure Arc Kubernetes|N/A|Manage your own Kubernetes cluster(s) in other clouds or on-premises, giving flexibility and granular control at the cost of IT overhead.|
160165

161-
For a comparison of SDK v1 and v2 code, see [Model management in SDK v1 and SDK v2](migrate-to-v2-assets-model.md)
166+
For a comparison of SDK v1 and v2 code, see [Upgrade deployment endpoints to SDK v2](migrate-to-v2-deploy-endpoints.md).
167+
For migration steps from your existing ACI web services to managed online endpoints, see our [upgrade guide article](migrate-to-v2-managed-online-endpoints.md) and [blog](https://aka.ms/acimoemigration).
162168

163169
### Environment
164170

@@ -208,6 +214,25 @@ A key paradigm with v2 is serializing machine learning entities as YAML files fo
208214

209215
You can obtain a YAML representation of any entity with the CLI via `az ml <entity> show --output yaml`. Note that this output will have system-generated properties, which can be ignored or deleted.
210216

217+
## Should I upgrade existing v1 code to v2
218+
219+
You can reuse your existing v1 assets in your v2 workflows. For instance a model created in v1 can be used to perform Managed Inferencing in v2.
220+
221+
Optionally, if you want to upgrade specific parts of your existing v1 code to v2, please refer to the comparison links provided in this document.
222+
223+
## Can I use v1 and v2 together?
224+
225+
v1 and v2 can co-exist in a workspace. You can reuse your existing assets in your v2 workflows. For instance a model created in v1 can be used to perform Managed Inferencing in v2. Resources like workspace, compute, and datastore work across v1 and v2, with exceptions. A user can call the v1 Python SDK to change a workspace's description, then using the v2 CLI extension change it again. Jobs (experiments/runs/pipelines in v1) can be submitted to the same workspace from the v1 or v2 Python SDK. A workspace can have both v1 and v2 model deployment endpoints.
226+
227+
### Using v1 and v2 code together
228+
229+
We do not recommend using the v1 and v2 SDKs together in the same code. It is technically possible to use v1 and v2 in the same code because they use different Azure namespaces. However, there are many classes with the same name across these namespaces (like Workspace, Model) which can cause confusion and make code readability and debuggability challenging.
230+
231+
> [!IMPORTANT]
232+
> If your workspace uses a private endpoint, it will automatically have the `v1_legacy_mode` flag enabled, preventing usage of v2 APIs. See [how to configure network isolation with v2](how-to-configure-network-isolation-with-v2.md?view=azureml-api-2&preserve-view=true) for details.
233+
234+
235+
211236
## Next steps
212237

213238
- [Get started with the CLI (v2)](how-to-configure-cli.md?view=azureml-api-2&preserve-view=true)

0 commit comments

Comments
 (0)