共用方式為


BatchAttachConfiguration 類別

表示附加 BatchCompute 目標的組態參數。

attach_configuration使用 類別的 BatchCompute 方法來指定附加參數。

初始化組態物件。

繼承
BatchAttachConfiguration

建構函式

BatchAttachConfiguration(resource_group=None, account_name=None, resource_id=None)

參數

名稱 Description
resource_group
str

Batch 帳戶所在的資源組名。

預設值: None
account_name
str

Batch 帳戶名稱。

預設值: None
resource_id
str

所附加計算資源的 Azure 資源識別碼。

預設值: None
resource_group
必要
str

Batch 帳戶所在的資源組名。

account_name
必要
str

Batch 帳戶名稱

resource_id
必要
str

所連結計算資源的 Azure 資源識別碼

方法

validate_configuration

檢查指定的組態值是否有效。

如果驗證失敗,則引發 ComputeTargetException

validate_configuration

檢查指定的組態值是否有效。

如果驗證失敗,則引發 ComputeTargetException

validate_configuration()

例外狀況

類型 Description