Microsoft.MachineLearningServices workspaces/endpoints 2024-04-01-preview

Bicep resource definition

The workspaces/endpoints resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.MachineLearningServices/workspaces/endpoints resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/endpoints@2024-04-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    associatedResourceId: 'string'
    endpointUri: 'string'
    failureReason: 'string'
    name: 'string'
    shouldCreateAiServicesEndpoint: bool
    endpointType: 'string'
    // For remaining properties, see EndpointResourceProperties objects
  }
}

EndpointResourceProperties objects

Set the endpointType property to specify the type of object.

For Azure.ContentSafety, use:

  endpointType: 'Azure.ContentSafety'

For Azure.OpenAI, use:

  endpointType: 'Azure.OpenAI'

For Azure.Speech, use:

  endpointType: 'Azure.Speech'

For managedOnlineEndpoint, use:

  endpointType: 'managedOnlineEndpoint'

Property values

workspaces/endpoints

Name Description Value
name The resource name

See how to set names and types for child resources in Bicep.
string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: workspaces
properties EndpointResourceProperties (required)

EndpointResourceProperties

Name Description Value
associatedResourceId Byo resource id for creating the built-in model service endpoints. string
endpointUri Uri of the endpoint. string
failureReason The failure reason if the creation failed. string
name Name of the endpoint. string
shouldCreateAiServicesEndpoint Whether the proxy (non-byo) endpoint is a regular endpoint or a OneKeyV2 AI services account endpoint. bool
endpointType Set the object type Azure.ContentSafety
Azure.OpenAI
Azure.Speech
managedOnlineEndpoint (required)

ContentSafetyEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'Azure.ContentSafety' (required)

OpenAIEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'Azure.OpenAI' (required)

SpeechEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'Azure.Speech' (required)

ManagedOnlineEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'managedOnlineEndpoint' (required)

ARM template resource definition

The workspaces/endpoints resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.MachineLearningServices/workspaces/endpoints resource, add the following JSON to your template.

{
  "type": "Microsoft.MachineLearningServices/workspaces/endpoints",
  "apiVersion": "2024-04-01-preview",
  "name": "string",
  "properties": {
    "associatedResourceId": "string",
    "endpointUri": "string",
    "failureReason": "string",
    "name": "string",
    "shouldCreateAiServicesEndpoint": "bool",
    "endpointType": "string"
    // For remaining properties, see EndpointResourceProperties objects
  }
}

EndpointResourceProperties objects

Set the endpointType property to specify the type of object.

For Azure.ContentSafety, use:

  "endpointType": "Azure.ContentSafety"

For Azure.OpenAI, use:

  "endpointType": "Azure.OpenAI"

For Azure.Speech, use:

  "endpointType": "Azure.Speech"

For managedOnlineEndpoint, use:

  "endpointType": "managedOnlineEndpoint"

Property values

workspaces/endpoints

Name Description Value
type The resource type 'Microsoft.MachineLearningServices/workspaces/endpoints'
apiVersion The resource api version '2024-04-01-preview'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties EndpointResourceProperties (required)

EndpointResourceProperties

Name Description Value
associatedResourceId Byo resource id for creating the built-in model service endpoints. string
endpointUri Uri of the endpoint. string
failureReason The failure reason if the creation failed. string
name Name of the endpoint. string
shouldCreateAiServicesEndpoint Whether the proxy (non-byo) endpoint is a regular endpoint or a OneKeyV2 AI services account endpoint. bool
endpointType Set the object type Azure.ContentSafety
Azure.OpenAI
Azure.Speech
managedOnlineEndpoint (required)

ContentSafetyEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'Azure.ContentSafety' (required)

OpenAIEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'Azure.OpenAI' (required)

SpeechEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'Azure.Speech' (required)

ManagedOnlineEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. 'managedOnlineEndpoint' (required)

Terraform (AzAPI provider) resource definition

The workspaces/endpoints resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.MachineLearningServices/workspaces/endpoints resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/endpoints@2024-04-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      associatedResourceId = "string"
      endpointUri = "string"
      failureReason = "string"
      name = "string"
      shouldCreateAiServicesEndpoint = bool
      endpointType = "string"
      // For remaining properties, see EndpointResourceProperties objects
    }
  })
}

EndpointResourceProperties objects

Set the endpointType property to specify the type of object.

For Azure.ContentSafety, use:

  endpointType = "Azure.ContentSafety"

For Azure.OpenAI, use:

  endpointType = "Azure.OpenAI"

For Azure.Speech, use:

  endpointType = "Azure.Speech"

For managedOnlineEndpoint, use:

  endpointType = "managedOnlineEndpoint"

Property values

workspaces/endpoints

Name Description Value
type The resource type "Microsoft.MachineLearningServices/workspaces/endpoints@2024-04-01-preview"
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: workspaces
properties EndpointResourceProperties (required)

EndpointResourceProperties

Name Description Value
associatedResourceId Byo resource id for creating the built-in model service endpoints. string
endpointUri Uri of the endpoint. string
failureReason The failure reason if the creation failed. string
name Name of the endpoint. string
shouldCreateAiServicesEndpoint Whether the proxy (non-byo) endpoint is a regular endpoint or a OneKeyV2 AI services account endpoint. bool
endpointType Set the object type Azure.ContentSafety
Azure.OpenAI
Azure.Speech
managedOnlineEndpoint (required)

ContentSafetyEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. "Azure.ContentSafety" (required)

OpenAIEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. "Azure.OpenAI" (required)

SpeechEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. "Azure.Speech" (required)

ManagedOnlineEndpointResourceProperties

Name Description Value
endpointType Type of the endpoint. "managedOnlineEndpoint" (required)