Define a deployment configuration

PHOTO EMBED

Sat Apr 09 2022 22:06:42 GMT+0000 (Coordinated Universal Time)

Saved by @wessim

from azureml.core.webservice import LocalWebservice

deployment_config = LocalWebservice.deploy_configuration(port=6789)
content_copyCOPY

A deployment configuration specifies the amount of memory and cores your webservice needs in order to run. It also provides configuration details of the underlying webservice. For example, a deployment configuration lets you specify that your service needs 2 gigabytes of memory, 2 CPU cores, 1 GPU core, and that you want to enable autoscaling. The options available for a deployment configuration differ depending on the compute target you choose. In a local deployment, all you can specify is which port your webservice will be served on.

https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-and-where?tabs=python