Language

AdapterDeploymentProperties(String, String) Constructor

Definition

Initializes a new instance of AdapterDeploymentProperties.

public AdapterDeploymentProperties(string sourceModelId, string targetDeploymentName);
new Azure.ResourceManager.CognitiveServices.Models.AdapterDeploymentProperties : string * string -> Azure.ResourceManager.CognitiveServices.Models.AdapterDeploymentProperties
Public Sub New (sourceModelId As String, targetDeploymentName As String)

Parameters

sourceModelId
String

The immutable Project Models version produced by Foundry fine-tuning. The identifier uses the Azure AI project model URI format. Model and version segments use ASCII letters, digits, periods, underscores, and hyphens. The service validates LoRA weight type, protected status, provenance, compatibility metadata, and registration state.

targetDeploymentName
String

The name of the compatible managed compute parent deployment. The service resolves this name within the adapter's owning account; full Azure Resource Manager resource IDs and cross-account references are not accepted. It cannot equal the adapter deployment's resource name. Updating this value re-targets the adapter while its source model remains unchanged.

Exceptions

sourceModelId or targetDeploymentName is null.

Applies to