你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DeploymentWhatIfProperties 构造函数

定义

重载

DeploymentWhatIfProperties()

初始化 DeploymentWhatIfProperties 类的新实例。

DeploymentWhatIfProperties(DeploymentMode, Object, TemplateLink, Object, ParametersLink, DebugSetting, OnErrorDeployment, ExpressionEvaluationOptions, DeploymentWhatIfSettings)

初始化 DeploymentWhatIfProperties 类的新实例。

DeploymentWhatIfProperties()

初始化 DeploymentWhatIfProperties 类的新实例。

public DeploymentWhatIfProperties ();
Public Sub New ()

适用于

初始化 DeploymentWhatIfProperties 类的新实例。

public DeploymentWhatIfProperties (Microsoft.Azure.Management.ResourceManager.Fluent.Models.DeploymentMode mode, object template = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.TemplateLink templateLink = default, object parameters = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.ParametersLink parametersLink = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.DebugSetting debugSetting = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.OnErrorDeployment onErrorDeployment = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.ExpressionEvaluationOptions expressionEvaluationOptions = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.DeploymentWhatIfSettings whatIfSettings = default);
new Microsoft.Azure.Management.ResourceManager.Fluent.Models.DeploymentWhatIfProperties : Microsoft.Azure.Management.ResourceManager.Fluent.Models.DeploymentMode * obj * Microsoft.Azure.Management.ResourceManager.Fluent.Models.TemplateLink * obj * Microsoft.Azure.Management.ResourceManager.Fluent.Models.ParametersLink * Microsoft.Azure.Management.ResourceManager.Fluent.Models.DebugSetting * Microsoft.Azure.Management.ResourceManager.Fluent.Models.OnErrorDeployment * Microsoft.Azure.Management.ResourceManager.Fluent.Models.ExpressionEvaluationOptions * Microsoft.Azure.Management.ResourceManager.Fluent.Models.DeploymentWhatIfSettings -> Microsoft.Azure.Management.ResourceManager.Fluent.Models.DeploymentWhatIfProperties
Public Sub New (mode As DeploymentMode, Optional template As Object = Nothing, Optional templateLink As TemplateLink = Nothing, Optional parameters As Object = Nothing, Optional parametersLink As ParametersLink = Nothing, Optional debugSetting As DebugSetting = Nothing, Optional onErrorDeployment As OnErrorDeployment = Nothing, Optional expressionEvaluationOptions As ExpressionEvaluationOptions = Nothing, Optional whatIfSettings As DeploymentWhatIfSettings = Nothing)

参数

mode
DeploymentMode

用于部署资源的模式。 此值可以是“增量”或“完成”。 在增量模式下,将在不删除模板中未包含的现有资源的情况下部署资源。 在“完成”模式下,将部署资源,并删除资源组中未包含在模板中的现有资源。 使用“完成”模式时要小心,因为可能会无意中删除资源。 可能的值包括:“Incremental”、“Complete”

template
Object

模板内容。 如果要直接在请求中传递模板语法,而不是链接到现有模板,请使用此元素。 它可以是 JObject 或格式正确的 JSON 字符串。 使用 templateLink 属性或模板属性,但不能同时使用两者。

templateLink
TemplateLink

模板的 URI。 使用 templateLink 属性或模板属性,但不能同时使用两者。

parameters
Object

定义模板部署参数的名称和值对。 如果要直接在请求中提供参数值,而不是链接到现有参数文件,请使用此元素。 使用 parametersLink 属性或 parameters 属性,但不能同时使用两者。 它可以是 JObject 或格式正确的 JSON 字符串。

parametersLink
ParametersLink

参数文件的 URI。 使用此元素链接到现有参数文件。 使用 parametersLink 属性或 parameters 属性,但不能同时使用两者。

debugSetting
DebugSetting

部署的调试设置。

onErrorDeployment
OnErrorDeployment

错误行为的部署。

expressionEvaluationOptions
ExpressionEvaluationOptions

指定是在父模板还是嵌套模板的范围内计算模板表达式。 仅适用于嵌套模板。 如果未指定,默认值为 outer。

whatIfSettings
DeploymentWhatIfSettings

可选What-If操作设置。

适用于