Megosztás a következőn keresztül:


TemplateArtifact Class

Definition

Blueprint artifact that deploys a Resource Manager template.

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

Constructors

TemplateArtifact(BinaryData, IDictionary<String,ParameterValue>)

Initializes a new instance of TemplateArtifact.

Properties

DependsOn

Artifacts which need to be deployed before the specified artifact.

Description

Multi-line explain this resource.

DisplayName

One-liner string explain this resource.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
Parameters

Resource Manager template blueprint artifact parameter values.

ResourceGroup

If applicable, the name of the resource group placeholder to which the Resource Manager template blueprint artifact will be deployed.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Template

The Resource Manager template blueprint artifact body.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Applies to