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/app-service/tutorial-custom-container.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,10 @@ The streamed logs look like this:
217
217
218
218
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.
219
219
220
+
> [!NOTE]
221
+
> Container should target x86-x64 architecture, ARM64 is not supported.
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-migrate-from-v1.md
+64-39Lines changed: 64 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.subservice: core
8
8
ms.topic: how-to
9
9
author: balapv
10
10
ms.author: balapv
11
-
ms.date: 09/23/2022
11
+
ms.date: 02/22/2024
12
12
ms.reviewer: sgilley
13
13
ms.custom: devplatv2, devx-track-python
14
14
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.
32
32
* Responsible AI dashboard
33
33
* Registry of assets
34
34
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.
36
36
37
37
Some feature gaps in v2 include:
38
38
@@ -46,12 +46,6 @@ You should then ensure the features you need in v2 meet your organization's requ
46
46
> [!IMPORTANT]
47
47
> New features in Azure Machine Learning will only be launched in v2.
48
48
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
-
55
49
## Which v2 API should I use?
56
50
57
51
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
62
56
|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.|
63
57
|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.|
64
58
65
-
## Can I use v1 and v2 together?
59
+
## Mapping of Python SDK v1 to v2
66
60
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 SDKv1 vs v2.
68
62
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)|
| 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)|
71
77
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.
74
78
75
79
## Resources and assets in v1 and v2
76
80
@@ -100,26 +104,25 @@ Object storage datastore types created with v1 are fully available for use in v2
100
104
101
105
For a comparison of SDK v1 and v2 code, see [Datastore management in SDK v1 and SDK v2](migrate-to-v2-resource-datastore.md).
102
106
103
-
### Compute
107
+
### Data (datasets in v1)
104
108
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:
106
110
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`)
108
113
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.
110
115
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)
112
117
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).
120
119
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).
123
126
124
127
### Jobs (experiments, runs, pipelines in v1)
125
128
@@ -141,24 +144,27 @@ You can continue to use designer to build pipelines using classic prebuilt compo
141
144
142
145
You cannot build a pipeline using both existing designer classic prebuilt components and v2 custom components.
143
146
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:
147
147
148
-
* V1 FileDataset = V2 Folder (`uri_folder`)
149
-
* V1 TabularDataset = V2 Table (`mltable`)
148
+
### Model
150
149
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.
152
151
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)
154
153
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)
156
155
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:
158
157
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.|
160
165
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).
162
168
163
169
### Environment
164
170
@@ -208,6 +214,25 @@ A key paradigm with v2 is serializing machine learning entities as YAML files fo
208
214
209
215
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.
210
216
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
+
211
236
## Next steps
212
237
213
238
-[Get started with the CLI (v2)](how-to-configure-cli.md?view=azureml-api-2&preserve-view=true)
0 commit comments