Microsoft。代碼簽署 代碼簽署帳戶

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 驗證模組 可用來部署此資源類型。

Module 描述
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

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
模式 = ^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ (必要)
性能 此資源的資源特定屬性。 CodeSigningAccountProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

AccountSku 帳戶

名字 描述 價值
名字 SKU 的名稱。 “基本”
'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-預覽』
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
模式 = ^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ (必要)
性能 此資源的資源特定屬性。 CodeSigningAccountProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 “Microsoft.CodeSigning/codeSigningAccounts”

AccountSku 帳戶

名字 描述 價值
名字 SKU 的名稱。 “基本”
'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

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
模式 = ^(?=.{3,24}$)[^0-9][A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ (必要)
性能 此資源的資源特定屬性。 CodeSigningAccountProperties
標籤 資源標籤 標記名稱和值的字典。
型別 資源類型 「Microsoft。CodeSigning/codeSigningAccounts@2026-05-15-preview”

AccountSku 帳戶

名字 描述 價值
名字 SKU 的名稱。 “基本”
'Premium' (必要)

CodeSigningAccountProperties

名字 描述 價值
SKU 文物簽署帳號的 SKU。 AccountSku 帳戶

TrackedResourceTags

名字 描述 價值