v2

latestSwagger 2.0raw.githubusercontent.com2019-10-082354105.4 KB
Service

Create a Service.

Create a Service with the specified payload.

post/modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/services

Path parameters

subscriptionIdstring uuid required

The Azure Subscription ID.

resourceGroupstring required

The Name of the resource group in which the workspace is located.

workspacestring required

The name of the workspace.

Request body

namestring required

The service name.

descriptionstring

The description of the service.

kvTagsobject

The service tag dictionary. Tags are mutable.

propertiesobject

The service properties dictionary. Properties are immutable.

computeType'ACI' | 'AKS' | 'AMLCOMPUTE' | 'IOT' | 'AKSENDPOINT' | 'UNKNOWN' required

The compute environment type for the service.

deploymentType'GRPCRealtimeEndpoint' | 'HttpRealtimeEndpoint' | 'Batch'

The deployment type for the service.

imageIdstring

The Image Id.

locationstring

The location of the service.

Example request

{
  "computeType": "AKS",
  "deploymentType": "HttpRealtimeEndpoint",
  "environmentImageRequest": {
    "environment": {
      "name": "mydevenvironment",
      "version": "1",
      "docker": {
        "baseImage": "ubuntu:latest",
        "baseDockerfile": "FROM ubuntu:latest\r\nRUN echo \"Hello world!\"",
        "shmSize": "1g"
      },
      "inferencingStackVersion": "latest"
    }
  }
}

Response

The request was accepted. The header 'Operation-Location' contains the async operation location URL. Accessing this URL with a GET call will return the status of the background task.