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

Microsoft.DeploymentManager artifactSources

Bicep 资源定义

artifactSources 资源类型可以部署到:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.DeploymentManager/artifactSources 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.DeploymentManager/artifactSources@2019-11-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    artifactRoot: 'string'
    authentication: {
      type: 'string'
      // For remaining properties, see Authentication objects
    }
    sourceType: 'string'
  }
}

身份验证对象

设置 type 属性以指定对象的类型。

对于 Sas,请使用:

  type: 'Sas'
  properties: {
    sasUri: 'string'
  }

属性值

artifactSources

名称 说明
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
properties 定义项目源的属性。 ArtifactSourceProperties

ArtifactSourceProperties

名称 说明
artifactRoot 从“身份验证”属性 [例如 Blob 容器的 SAS URI] 引用的位置到项目位置的路径。 这可用于区分不同版本的项目。 或者,不同类型的项目,如二进制文件或模板。 身份验证属性引用的位置与此可选 artifactRoot 路径连接在一起,构成了应在其中找到项目的项目源位置。 字符串
身份验证 用于访问项目源的身份验证方法。 需要身份验证 ()
sourceType 使用的项目源的类型。 字符串 (必需)

身份验证

名称 说明 Value
type 设置对象类型 需要 Sas ()

SasAuthentication

名称 说明 Value
type 身份验证类型 “Sas” (必需的)
properties SAS 属性 SasProperties

SasProperties

名称 说明
sasUri Azure 存储 Blob 容器的 SAS URI。 可以在 artifactRoot 中定义从容器的根目录到项目所在位置的任何偏移量。 字符串 (必需)

ARM 模板资源定义

artifactSources 资源类型可以部署到:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.DeploymentManager/artifactSources 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.DeploymentManager/artifactSources",
  "apiVersion": "2019-11-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "artifactRoot": "string",
    "authentication": {
      "type": "string"
      // For remaining properties, see Authentication objects
    },
    "sourceType": "string"
  }
}

身份验证对象

设置 type 属性以指定对象的类型。

对于 Sas,请使用:

  "type": "Sas",
  "properties": {
    "sasUri": "string"
  }

属性值

artifactSources

名称 说明 Value
type 资源类型 “Microsoft.DeploymentManager/artifactSources”
apiVersion 资源 API 版本 “2019-11-01-preview”
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
properties 定义项目源的属性。 ArtifactSourceProperties

ArtifactSourceProperties

名称 说明
artifactRoot 从“身份验证”属性 [例如 Blob 容器的 SAS URI] 引用的位置到项目位置的路径。 这可用于区分不同版本的项目。 或者,不同类型的项目,如二进制文件或模板。 身份验证属性与此可选 artifactRoot 路径连接所引用的位置构成了项目源位置,预计会在其中找到项目。 字符串
身份验证 用于访问项目源的身份验证方法。 需要身份验证 ()
sourceType 使用的项目源的类型。 字符串 (必需)

身份验证

名称 说明 Value
type 设置对象类型 需要 sas ()

SasAuthentication

名称 说明 Value
type 身份验证类型 需要“Sas” ()
properties SAS 属性 SasProperties

SasProperties

名称 说明
sasUri Azure 存储 Blob 容器的 SAS URI。 可以在 artifactRoot 中定义从容器的根到项目所在位置的任何偏移量。 字符串 (必需)

Terraform (AzAPI 提供程序) 资源定义

artifactSources 资源类型可部署到:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.DeploymentManager/artifactSources 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DeploymentManager/artifactSources@2019-11-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      artifactRoot = "string"
      authentication = {
        type = "string"
        // For remaining properties, see Authentication objects
      }
      sourceType = "string"
    }
  })
}

身份验证对象

设置 type 属性以指定对象的类型。

对于 Sas,请使用:

  type = "Sas"
  properties = {
    sasUri = "string"
  }

属性值

artifactSources

名称 说明 Value
type 资源类型 “Microsoft.DeploymentManager/artifactSources@2019-11-01-preview”
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记。 标记名称和值的字典。
properties 定义项目源的属性。 ArtifactSourceProperties

ArtifactSourceProperties

名称 说明
artifactRoot 从“身份验证”属性 [例如 Blob 容器的 SAS URI] 引用的位置到项目位置的路径。 这可用于区分不同版本的项目。 或者,不同类型的项目,如二进制文件或模板。 身份验证属性与此可选 artifactRoot 路径连接所引用的位置构成了项目源位置,预计会在其中找到项目。 字符串
身份验证 用于访问项目源的身份验证方法。 需要身份验证 ()
sourceType 使用的项目源的类型。 字符串 (必需)

身份验证

名称 说明 Value
type 设置对象类型 需要 sas ()

SasAuthentication

名称 说明 Value
type 身份验证类型 需要“Sas” ()
properties SAS 属性 SasProperties

SasProperties

名称 说明
sasUri Azure 存储 Blob 容器的 SAS URI。 可以在 artifactRoot 中定义从容器的根到项目所在位置的任何偏移量。 字符串 (必需)