BatchAttachConfiguration 類別

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

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

初始化組態物件。

繼承
BatchAttachConfiguration

建構函式

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

參數

resource_group
str
預設值: None

Batch 帳戶所在的資源組名。

account_name
str
預設值: None

Batch 帳戶名稱。

resource_id
str
預設值: None

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

resource_group
str
必要

Batch 帳戶所在的資源組名。

account_name
str
必要

Batch 帳戶名稱

resource_id
str
必要

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

方法

validate_configuration

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

如果驗證失敗,則引發 ComputeTargetException

validate_configuration

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

如果驗證失敗,則引發 ComputeTargetException

validate_configuration()

例外狀況