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

TemplateArtifact 类

定义

部署资源管理器模板的蓝图项目。

public class TemplateArtifact : Azure.ResourceManager.Blueprint.ArtifactData
type TemplateArtifact = class
    inherit ArtifactData
Public Class TemplateArtifact
Inherits ArtifactData
继承
TemplateArtifact

构造函数

TemplateArtifact(BinaryData, IDictionary<String,ParameterValue>)

初始化 TemplateArtifact 的新实例。

属性

DependsOn

需要在指定项目之前部署的项目。

Description

多行说明此资源。

DisplayName

单行字符串解释此资源。

Id

资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}。

(继承自 ResourceData)
Name

资源的名称。

(继承自 ResourceData)
Parameters

资源管理器模板蓝图项目参数值。

ResourceGroup

如果适用,则为将资源管理器模板蓝图项目部署到的资源组占位符的名称。

ResourceType

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”。

(继承自 ResourceData)
SystemData

包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。

(继承自 ResourceData)
Template

资源管理器模板蓝图项目主体。

若要将对象分配给此属性,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

适用于