DeploymentProperties 類別

部署屬性

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.resource.resources._serialization.Model
DeploymentProperties

建構函式

DeploymentProperties(*, mode: str | _models.DeploymentMode, template: MutableMapping[str, Any] | None = None, template_link: _models.TemplateLink | None = None, parameters: MutableMapping[str, Any] | None = None, parameters_link: _models.ParametersLink | None = None, debug_setting: _models.DebugSetting | None = None, on_error_deployment: _models.OnErrorDeployment | None = None, expression_evaluation_options: _models.ExpressionEvaluationOptions | None = None, **kwargs)

變數

template
<xref:JSON>

範本內容。 當您想要直接在要求中傳遞範本語法,而不是連結至現有的範本時,請使用這個專案。 它可以是 JObject 或格式正確的 JSON 字串。 使用 templateLink 屬性或範本屬性,但不能同時使用兩者。

template_link
TemplateLink

範本的 URI。 使用 templateLink 屬性或範本屬性,但不能同時使用兩者。

parameters
<xref:JSON>

定義範本部署參數的名稱和值組。 當您想要直接在要求中提供參數值,而不是連結至現有的參數檔案時,請使用這個專案。 使用 parametersLink 屬性或 parameters 屬性,但不能同時使用兩者。 它可以是 JObject 或格式正確的 JSON 字串。

parameters_link
ParametersLink

參數檔案的 URI。 您可以使用這個專案連結至現有的參數檔案。 使用 parametersLink 屬性或 parameters 屬性,但不能同時使用兩者。

mode
strDeploymentMode

用來部署資源的模式。 此值可以是累加或完成。 在 [增量] 模式中,部署資源時不會刪除範本中未包含的現有資源。 在 [完成] 模式中,系統會部署資源,而範本中未包含的資源群組中現有的資源則會遭到刪除。 使用完整模式時請小心,因為您可能不小心刪除資源。 必要。 已知值為:「Incremental」 和 「Complete」。

debug_setting
DebugSetting

部署的偵錯設定。

on_error_deployment
OnErrorDeployment

錯誤行為的部署。

expression_evaluation_options
ExpressionEvaluationOptions

指定範本運算式是否在父範本或巢狀範本的範圍內進行評估。 僅適用于巢狀範本。 如果未指定,預設值為外部。