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

Microsoft.CodeSigning 代码签名帐户

Bicep 资源定义

可以使用目标操作部署 codeSigningAccounts 资源类型:

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

用法示例

Bicep 示例

部署受信任签名帐户的基本示例。

param resourceName string = 'acctest0001'
param location string = 'westus'

resource codeSigningAccount 'Microsoft.CodeSigning/codeSigningAccounts@2024-09-30-preview' = {
  name: resourceName
  location: location
  properties: {
    sku: {
      name: 'Basic'
    }
  }
}

Azure 验证模块

以下 Azure 验证模块 可用于部署此资源类型。

模块 描述
Azure工件签名 AVM Resource Module for Azure Artifact Signing

资源格式

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

resource symbolicname 'Microsoft.CodeSigning/codeSigningAccounts@2026-05-15-preview' = {
  location: 'string'
  name: 'string'
  properties: {
    sku: {
      name: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

Microsoft.CodeSigning/codeSigningAccounts

名字 描述 价值
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
模式 = ^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ (必需)
性能 此资源的资源特定属性。 CodeSigningAccountProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

AccountSku 账户

名字 描述 价值
名字 SKU 的名称。 “Basic”
“Premium”(必需)

CodeSigningAccountProperties

名字 描述 价值
SKU 文物签名账户的SKU。 AccountSku 账户

TrackedResourceTags

名字 描述 价值

ARM 模板资源定义

可以使用目标操作部署 codeSigningAccounts 资源类型:

用法示例

Azure 快速入门模板

以下 Azure 快速入门模板 部署此资源类型。

Template 描述
创建可信的签名账户

部署到 Azure
此模板演示如何在Azure中创建可信签名账户。

资源格式

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

{
  "type": "Microsoft.CodeSigning/codeSigningAccounts",
  "apiVersion": "2026-05-15-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "sku": {
      "name": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

Microsoft.CodeSigning/codeSigningAccounts

名字 描述 价值
apiVersion API 版本 '2026-05-15-预览'
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
模式 = ^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ (必需)
性能 此资源的资源特定属性。 CodeSigningAccountProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 “Microsoft.CodeSigning/codeSigningAccounts”

AccountSku 账户

名字 描述 价值
名字 SKU 的名称。 “Basic”
“Premium”(必需)

CodeSigningAccountProperties

名字 描述 价值
SKU 文物签名账户的SKU。 AccountSku 账户

TrackedResourceTags

名字 描述 价值

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

可以使用目标操作部署 codeSigningAccounts 资源类型:

  • 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。

用法示例

Terraform 示例

部署受信任签名帐户的基本示例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westus"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "codeSigningAccount" {
  type      = "Microsoft.CodeSigning/codeSigningAccounts@2024-09-30-preview"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      sku = {
        name = "Basic"
      }
    }
  }
}

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.CodeSigning/codeSigningAccounts@2026-05-15-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      sku = {
        name = "string"
      }
    }
  }
}

属性值

Microsoft.CodeSigning/codeSigningAccounts

名字 描述 价值
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
模式 = ^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ (必需)
性能 此资源的资源特定属性。 CodeSigningAccountProperties
标签 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft。代码签名/codeSigningAccounts@2026-05-15-预览”

AccountSku 账户

名字 描述 价值
名字 SKU 的名称。 “Basic”
“Premium”(必需)

CodeSigningAccountProperties

名字 描述 价值
SKU 文物签名账户的SKU。 AccountSku 账户

TrackedResourceTags

名字 描述 价值