Deploy a web service to Azure Container Instances for testing or debugging. Use ACI for low-scale CPU-based workloads that require less than 48 GB of RAM.

Deploy to ACI if one of the following conditions is true:

  • You need to quickly deploy and validate your model. You do not need to create ACI containers ahead of time. They are created as part of the deployment process.

  • You are testing a model that is under development.

aci_webservice_deployment_config(cpu_cores = NULL, memory_gb = NULL,
  tags = NULL, properties = NULL, description = NULL,
  location = NULL, auth_enabled = NULL, ssl_enabled = NULL,
  enable_app_insights = NULL, ssl_cert_pem_file = NULL,
  ssl_key_pem_file = NULL, ssl_cname = NULL, dns_name_label = NULL)

Arguments

cpu_cores

The number of cpu cores to allocate for the web service. Can be a decimal. Defaults to 0.1.

memory_gb

The amount of memory (in GB) to allocate for the web service. Can be a decimal. Defaults to 0.5.

tags

A named list of key-value tags for the web service, e.g. list("key" = "value").

properties

A named list of key-value properties for the web service, e.g. list("key" = "value"). These properties cannot be changed after deployment, but new key-value pairs can be added.

description

A string of the description to give the web service.

location

A string of the Azure region to deploy the web service to. If not specified the workspace location will be used. More details on available regions can be found here.

auth_enabled

If TRUE enable key-based authentication for the web service. Defaults to FALSE.

ssl_enabled

If TRUE enable SSL for the web service. Defaults to FALSE.

enable_app_insights

If TRUE enable AppInsights for the web service. Defaults to FALSE.

ssl_cert_pem_file

A string of the cert file needed if SSL is enabled.

ssl_key_pem_file

A string of the key file needed if SSL is enabled.

ssl_cname

A string of the cname if SSL is enabled.

dns_name_label

A string of the dns name label for the scoring endpoint. If not specified a unique dns name label will be generated for the scoring endpoint.

Value

The AciServiceDeploymentConfiguration object.

See also

deploy_model()

Examples

if (FALSE) { deployment_config <- aci_webservice_deployment_config(cpu_cores = 1, memory_gb = 1) }