entities Package

Contains entities and SDK objects for Azure Machine Learning SDKv2.

Main areas include managing compute targets, creating/managing workspaces and jobs, and submitting/accessing model, runs and run output/logging etc.

Classes

AccessKeyConfiguration

Access Key Credentials.

AccountKeyConfiguration
AlertNotification

Alert notification configuration for monitoring jobs

AmlCompute

AzureML Compute resource.

AmlComputeNodeInfo

Compute node information related to AmlCompute.

AmlComputeSshSettings

SSH settings to access a AML compute target.

AmlTokenConfiguration

AzureML Token identity configuration.

ApiKeyConfiguration

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Api Key Credentials.

Asset

Base class for asset.

This class should not be instantiated directly. Instead, use one of its subclasses.

AssignedUserConfiguration

Settings to create a compute resource on behalf of another user.

AutoPauseSettings

Auto pause settings for Synapse Spark compute.

AutoScaleSettings

Auto-scale settings for Synapse Spark compute.

AzureAISearchWorkspaceConnection

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

A Workspace Connection that is specifically designed for handling connections to Azure AI Search.

AzureAIServiceWorkspaceConnection

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

A Workspace Connection that is specifically designed for handling connections to an Azure AI Service.

AzureBlobDatastore

Azure blob storage that is linked to an Azure ML workspace.

AzureBlobStoreWorkspaceConnection

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

A connection to an Azure Blob Store. Connections of this type are read-only, creation operations with them are not supported, and this class is only meant to be instantiated from GET and LIST workspace connection operations.

AzureDataLakeGen1Datastore

Azure Data Lake aka Gen 1 datastore that is linked to an Azure ML workspace.

AzureDataLakeGen2Datastore

Azure data lake gen 2 that is linked to an Azure ML workspace.

AzureFileDatastore

Azure file share that is linked to an Azure ML workspace.

AzureMLBatchInferencingServer

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Azure ML batch inferencing configurations.

AzureMLOnlineInferencingServer

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Azure ML online inferencing configurations.

AzureOpenAIWorkspaceConnection

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

A Workspace Connection that is specifically designed for handling connections to Azure Open AI.

BaseEnvironment

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Base environment type.

All required parameters must be populated in order to send to Azure.

BaselineDataRange

Baseline data range for monitoring.

This class is used when initializing a data_window for a ReferenceData object. For trailing input, set lookback_window_size and lookback_window_offset to a desired value. For static input, set window_start and window_end to a desired value.

BatchDeployment

Batch endpoint deployment entity.

BatchEndpoint

Batch endpoint entity.

BatchJob

Batch jobs that are created with batch deployments/endpoints invocation.

This class shouldn't be instantiated directly. Instead, it is used as the return type of batch deployment/endpoint invocation and job listing.

BatchRetrySettings

Retry settings for batch deployment.

BuildContext

Docker build context for Environment.

CategoricalDriftMetrics

Categorical Drift Metrics

CertificateConfiguration
CodeConfiguration

Code configuration for a scoring job.

Command

Base class for command node, used for command component version consumption.

You should not instantiate this class directly. Instead, you should create it using the builder function: command().

CommandComponent

Command component version, used to define a Command Component or Job.

CommandJob

Command job.

CommandJobLimits

Limits for Command Jobs.

Component

Base class for component version, used to define a component. Can't be instantiated directly.

Compute

Base class for compute resources.

This class should not be instantiated directly. Instead, use one of its subclasses.

ComputeConfiguration

Compute resource configuration

ComputeInstance

Compute Instance resource.

ComputeInstanceSshSettings

Credentials for an administrator user account to SSH into the compute node.

Can only be configured if ssh_public_access_enabled is set to true on compute resource.

ComputeRuntime

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Spark compute runtime configuration.

ComputeSchedules

Compute schedules.

ComputeStartStopSchedule

Schedules for compute start or stop scenario.

ContainerRegistryCredential

Key for ACR associated with given workspace.

CronTrigger

Cron Trigger for a job schedule.

CustomApplications

Specifies the custom service application configuration.

CustomInferencingServer

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Custom inferencing configurations.

CustomMonitoringMetricThreshold

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Feature attribution drift metric threshold

CustomMonitoringSignal

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Custom monitoring signal.

CustomerManagedKey

Key vault details for encrypting data with customer-managed keys.

Data

Data for training and scoring.

DataAsset

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Data Asset entity

DataCollector

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Data Capture deployment entity.

DataColumn

A dataframe column

DataDriftMetricThreshold

Data drift metric threshold

DataDriftSignal

Data drift signal.

DataImport

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Data asset with a creating data import job.

DataQualityMetricThreshold

Data quality metric threshold

DataQualityMetricsCategorical

Data Quality Categorical Metrics

DataQualityMetricsNumerical

Data Quality Numerical Metrics

DataQualitySignal

Data quality signal

DataSegment

Data segment for monitoring.

Datastore

Datastore of an Azure ML workspace, abstract class.

DefaultScaleSettings

Default scale settings.

Deployment

Endpoint Deployment base class.

Endpoint Deployment base class.

Constructor of Endpoint Deployment base class.

DeploymentCollection

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Collection entity

DiagnoseRequestProperties

DiagnoseRequestProperties.

DiagnoseResponseResult

DiagnoseResponseResult.

DiagnoseResponseResultValue

DiagnoseResponseResultValue.

DiagnoseResult

Result of Diagnose.

DiagnoseWorkspaceParameters

Parameters to diagnose a workspace.

Endpoint

Endpoint base class.

Endpoint base class.

Constructor for Endpoint base class.

EndpointAuthKeys

Keys for endpoint authentication.

Constructor for keys for endpoint authentication.

EndpointAuthToken

Endpoint authentication token.

Constuctor for Endpoint authentication token.

EndpointConnection

Private Endpoint Connection related to a workspace private endpoint.

EndpointsSettings

Specifies an endpoint configuration for a Custom Application.

Environment

Environment for training.

FADProductionData

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Feature Attribution Production Data

Feature
FeatureAttributionDriftMetricThreshold

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Feature attribution drift metric threshold

FeatureAttributionDriftSignal

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Feature attribution drift signal

FeatureSet

Feature Set

FeatureSetBackfillMetadata

Feature Set Backfill Metadata

FeatureSetBackfillRequest

Feature Set Backfill Request

FeatureSetMaterializationMetadata

Feature Set Materialization Metadata

FeatureSetSpecification

Feature Set Specification

FeatureStore

Feature Store

FeatureStoreEntity

Feature Store Entity

FeatureStoreSettings

Feature Store Settings

FeatureWindow

Feature window :keyword feature_window_end: Specifies the feature window end time. :paramtype feature_window_end: ~datetime.datetime :keyword feature_window_start: Specifies the feature window start time. :paramtype feature_window_start: ~datetime.datetime

FixedInputData
FqdnDestination

Class representing a FQDN outbound rule.

Creating a FqdnDestination outbound rule object.


   from azure.ai.ml.entities import FqdnDestination

   # Example FQDN rule
   pypirule = FqdnDestination(name="rulename", destination="pypi.org")

GenerationSafetyQualityMonitoringMetricThreshold

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Generation safety quality metric threshold

GenerationSafetyQualitySignal

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Generation Safety Quality monitoring signal.

IdentityConfiguration

Identity configuration used to represent identity property on compute, endpoint, and registry resources.

ImageMetadata

Metadata about the operating system image for the compute instance.

ImageSettings

Specifies an image configuration for a Custom Application.

ImportDataSchedule

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

ImportDataSchedule object.

InputPort
IntellectualProperty

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Intellectual property settings definition.

IsolationMode

IsolationMode for the workspace managed network.

Job

Base class for jobs.

This class should not be instantiated directly. Instead, use one of its subclasses.

JobResourceConfiguration

Job resource configuration class, inherited and extended functionalities from ResourceConfiguration.

JobSchedule

Class for managing job schedules.

JobService

Basic job service configuration for backward compatibility.

This class is not intended to be used directly. Instead, use one of its subclasses specific to your job type.

JupyterLabJobService

JupyterLab job service configuration.

KubernetesCompute

Kubernetes Compute resource.

KubernetesOnlineDeployment

Kubernetes Online endpoint deployment entity.

Kubernetes Online endpoint deployment entity.

Constructor for Kubernetes Online endpoint deployment entity.

KubernetesOnlineEndpoint

K8s Online endpoint entity.

K8s Online endpoint entity.

Constructor for K8s Online endpoint entity.

LlmData

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

LLM Request Response Data

ManagedIdentityConfiguration

Managed Identity credential configuration.

ManagedNetwork

Managed Network settings for a workspace.

Creating a ManagedNetwork object with one of each rule type.


   from azure.ai.ml.entities import (
       Workspace,
       ManagedNetwork,
       IsolationMode,
       ServiceTagDestination,
       PrivateEndpointDestination,
       FqdnDestination,
   )

   # Example private endpoint outbound to a blob
   blobrule = PrivateEndpointDestination(
       name="blobrule",
       service_resource_id="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/storage-name",
       subresource_target="blob",
       spark_enabled=False,
   )

   # Example service tag rule
   datafactoryrule = ServiceTagDestination(
       name="datafactory", service_tag="DataFactory", protocol="TCP", port_ranges="80, 8080-8089"
   )

   # Example FQDN rule
   pypirule = FqdnDestination(name="pypirule", destination="pypi.org")

   network = ManagedNetwork(
       isolation_mode=IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND,
       outbound_rules=[blobrule, datafactoryrule, pypirule],
   )

   # Workspace configuration
   ws = Workspace(name="ws-name", location="eastus", managed_network=network)

ManagedNetworkProvisionStatus

ManagedNetworkProvisionStatus.

ManagedOnlineDeployment

Managed Online endpoint deployment entity.

Managed Online endpoint deployment entity.

Constructor for Managed Online endpoint deployment entity.

ManagedOnlineEndpoint

Managed Online endpoint entity.

Managed Online endpoint entity.

Constructor for Managed Online endpoint entity.

MaterializationComputeResource

Materialization Compute resource

MaterializationSettings

Defines materialization settings.

MaterializationStore

Materialization Store

Model

Model for training and scoring.

ModelBatchDeployment

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Job Definition entity.

ModelBatchDeploymentSettings

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Model Batch Deployment Settings entity.

ModelConfiguration

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

ModelConfiguration.

ModelPackage

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Model package.

ModelPackageInput

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Model package input.

ModelPerformanceClassificationThresholds

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

ModelPerformanceMetricThreshold

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

ModelPerformanceRegressionThresholds

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

ModelPerformanceSignal

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Model performance signal.

MonitorDefinition

Monitor definition

MonitorFeatureFilter

Monitor feature filter

MonitorInputData

Monitor input data.

MonitorSchedule

Monitor schedule.

MonitoringTarget

Monitoring target.

NetworkSettings

Network settings for a compute resource.

NoneCredentialConfiguration

None Credential Configuration.

NotebookAccessKeys

Key for notebook resource associated with given workspace.

Notification

Configuration for notification.

NumericalDriftMetrics

Numerical Drift Metrics

OneLakeArtifact

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

OneLake artifact (data source) backing the OneLake workspace.

OneLakeDatastore

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

OneLake datastore that is linked to an Azure ML workspace.

OnlineDeployment

Online endpoint deployment entity.

Online endpoint deployment entity.

Constructor for Online endpoint deployment entity

OnlineEndpoint

Online endpoint entity.

Online endpoint entity.

Constructor for an Online endpoint entity.

OnlineRequestSettings

Request Settings entity.

OnlineScaleSettings

Scale settings for online deployment.

OutboundRule

Base class for Outbound Rules, cannot be instantiated directly. Please see FqdnDestination, PrivateEndpointDestination, and ServiceTagDestination objects to create outbound rules.

PackageInputPathId

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Package input path specified with a resource ID.

PackageInputPathUrl

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Package input path specified with a url.

PackageInputPathVersion

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Package input path specified with a resource name and version.

Parallel

Base class for parallel node, used for parallel component version consumption.

You should not instantiate this class directly. Instead, you should create from builder function: parallel.

ParallelComponent

Parallel component version, used to define a parallel component.

ParallelTask

Parallel task.

ParameterizedCommand

Command component version that contains the command and supporting parameters for a Command component or job.

This class should not be instantiated directly. Instead, use the child class ~azure.ai.ml.entities.CommandComponent.

PatTokenConfiguration

Personal access token credentials.

Pipeline

Base class for pipeline node, used for pipeline component version consumption. You should not instantiate this class directly. Instead, you should use @pipeline decorator to create a pipeline node.

PipelineComponent

Pipeline component, currently used to store components in an azure.ai.ml.dsl.pipeline.

PipelineComponentBatchDeployment

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Pipeline Component Batch Deployment entity.

PipelineJob

Pipeline job.

You should not instantiate this class directly. Instead, you should use the @pipeline decorator to create a PipelineJob.

] :param compute: Compute target name of the built pipeline. Defaults to None :type compute: str :param tags: Tag dictionary. Tags can be added, removed, and updated. Defaults to None :type tags: dict[str, str] :param kwargs: A dictionary of additional configuration parameters. Defaults to None :type kwargs: dict

PipelineJobSettings

Settings of PipelineJob.

PredictionDriftMetricThreshold

Prediction drift metric threshold

PredictionDriftSignal

Prediction drift signal.

PrivateEndpoint

Private Endpoint of a workspace.

PrivateEndpointDestination

Class representing a Private Endpoint outbound rule.

Creating a PrivateEndpointDestination outbound rule object.


   from azure.ai.ml.entities import PrivateEndpointDestination

   # Example private endpoint outbound to a blob
   blobrule = PrivateEndpointDestination(
       name="blobrule",
       service_resource_id="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/storage-name",
       subresource_target="blob",
       spark_enabled=False,
   )

ProbeSettings

Settings on how to probe an endpoint.

ProductionData

Production Data

QueueSettings

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Queue settings for a pipeline job.

RecurrencePattern

Recurrence pattern for a job schedule.

RecurrenceTrigger

Recurrence trigger for a job schedule.

ReferenceData

Reference Data

Registry

Azure ML registry.

RegistryRegionDetails

Details for each region a registry is in.

RequestLogging

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Request Logging deployment entity.

Resource

Base class for entity classes.

Resource is an abstract object that serves as a base for creating resources. It contains common properties and methods for all resources.

This class should not be instantiated directly. Instead, use one of its subclasses.

ResourceConfiguration

Resource configuration for a job.

This class should not be instantiated directly. Instead, use its subclasses.

ResourceRequirementsSettings

Resource requirements settings for a container.

ResourceSettings

Resource settings for a container.

This class uses Kubernetes Resource unit formats. For more information, see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/.

RetrySettings

Parallel RetrySettings.

Route

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Route.

SasTokenConfiguration
Schedule

Schedule object used to create and manage schedules.

This class should not be instantiated directly. Instead, please use the subclasses.

ScheduleTriggerResult

Schedule trigger result returned by trigger an enabled schedule once.

This class shouldn't be instantiated directly. Instead, it is used as the return type of schedule trigger.

ScriptReference

Script reference.

ServerlessComputeSettings

Settings regarding serverless compute(s) in an Azure ML workspace.

ServerlessSparkCompute

Serverless Spark compute.

ServiceInstance

Service Instance Result.

ServicePrincipalConfiguration

Service Principal credentials configuration.

ServiceTagDestination

Class representing a Service Tag outbound rule.

Creating a ServiceTagDestination outbound rule object.


   from azure.ai.ml.entities import ServiceTagDestination

   # Example service tag rule
   datafactoryrule = ServiceTagDestination(
       name="datafactory", service_tag="DataFactory", protocol="TCP", port_ranges="80, 8080-8089"
   )

SetupScripts

Customized setup scripts.

Spark

Base class for spark node, used for spark component version consumption.

You should not instantiate this class directly. Instead, you should create it from the builder function: spark.

]

]]

SparkComponent

Spark component version, used to define a Spark Component or Job.

SparkJob

A standalone Spark job.

SparkJobEntry

Entry for Spark job.

SparkJobEntryType

Type of Spark job entry. Possibilities are Python file entry or Scala class entry.

SparkResourceConfiguration

Compute resource configuration for Spark component or job.

SshJobService

SSH job service configuration.

StaticInputData
Sweep

Base class for sweep node.

This class should not be instantiated directly. Instead, it should be created via the builder function: sweep.

]

]]

]]

]

SynapseSparkCompute

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

SynapseSpark Compute resource.

SystemCreatedAcrAccount

Azure ML ACR account.

SystemCreatedStorageAccount
SystemData

Metadata related to the creation and most recent modification of a resource.

TargetUtilizationScaleSettings

Auto scale settings.

TensorBoardJobService

TensorBoard job service configuration.

TrailingInputData
TritonInferencingServer

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Azure ML triton inferencing configurations.

UnsupportedCompute

Unsupported compute resource.

Only used for displaying compute properties for resources not fully supported in the SDK.

Usage

AzureML resource usage.

UsageName

The usage name.

UserIdentityConfiguration

User identity configuration.

UsernamePasswordConfiguration

Username and password credentials.

ValidationResult

Represents the result of job/asset validation.

This class is used to organize and parse diagnostics from both client & server side before expose them. The result is immutable.

VirtualMachineCompute

Virtual Machine Compute resource.

VirtualMachineSshSettings

SSH settings for a virtual machine.

VmSize

Virtual Machine Size.

VolumeSettings

Specifies the Bind Mount settings for a Custom Application.

VsCodeJobService

VS Code job service configuration.

Workspace

Azure ML workspace.

Creating a Workspace object.


   from azure.ai.ml.entities import Workspace

   ws = Workspace(name="sample-ws", location="eastus", description="a sample workspace object")

WorkspaceConnection

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Azure ML workspace connection provides a secure way to store authentication and configuration information needed to connect and interact with the external resources.

Note: For connections to OpenAI, Cognitive Search, and Cognitive Services, use the respective subclasses (ex: ~azure.ai.ml.entities.OpenAIWorkspaceConnection) instead of instantiating this class directly.

WorkspaceHub

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

WorkspaceHub.

Creating a WorkspaceHub object.


   from azure.ai.ml.entities import WorkspaceHub

   ws = WorkspaceHub(name="sample-ws", location="eastus", description="a sample workspace hub object")

WorkspaceHubConfig

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

WorkspaceHubConfig.

WorkspaceKeys

Workspace Keys.

Enums

ComputePowerAction

[Required] The compute power action.

CreatedByType

The type of identity that created the resource.

DataAvailabilityStatus

DataAvailabilityStatus.

DataColumnType

Dataframe Column Type Enum

MaterializationType

Materialization Type Enum

UsageUnit

An enum describing the unit of usage measurement.