- Latest
- 2026-08-02-預覽
- 2026-08-01
- 2026-07-02-預覽
- 2026-07-01
- 2026-06-02-預覽
- 2026-06-01
- 2026-05-02-預覽
- 2026-05-01
- 2026-04-02-預覽
- 2026-04-01
- 2026-03-02-預覽
- 2026-03-01
- 2026-02-02-預覽
- 2026-02-01
- 2026-01-02-預覽
- 2026-01-01
- 2025-10-02-預覽
- 2025-10-01
- 2025-09-02-預覽
- 2025-09-01
- 2025-08-02-預覽
- 2025-08-01
- 2025-07-02-預覽
- 2025-07-01
- 2025-06-02-預覽
- 2025-05-02-preview
- 2025-05-01
- 2025-04-02-preview
- 2025-04-01
- 2025-03-02-preview
- 2025-03-01
- 2025-02-02-preview
- 2025-02-01
- 2025-01-02-preview
- 2025-01-01
- 2024-10-02-preview
- 2024-10-01
- 2024-09-02-preview
- 2024-09-01
- 2024-08-01
- 2024-07-02-preview
- 2024-07-01
- 2024-06-02-preview
- 2024-05-02-preview
- 2024-05-01
- 2024-04-02-preview
- 2024-03-02-preview
- 2024-02-02-preview
- 2024-02-01
- 2024-01-02-preview
- 2024-01-01
- 2023-11-02-preview
- 2023-11-01
- 2023-10-02-preview
- 2023-10-01
- 2023-09-02-preview
- 2023-09-01
- 2023-08-02-preview
- 2023-07-02-preview
- 2023-06-02-preview
- 2023-05-02-preview
- 2023-04-02-preview
- 2023-03-02-preview
- 2023-02-02-preview
- 2023-01-02-preview
- 2022-11-02-preview
- 2022-10-02-preview
- 2022-09-02-preview
- 2022-08-03-preview
- 2022-08-02-preview
- 2022-07-02-preview
- 2022-06-02-preview
- 2022-05-02-preview
- 2022-04-02-preview
Bicep 資源定義
managedClusters/trustedAccessRoleBindings 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Bicep 範例
部署 Kubernetes 叢集信任存取角色繫結的基本範例。
param resourceName string = 'acctest0001'
param location string = 'westus'
resource vault 'Microsoft.KeyVault/vaults@2023-02-01' = {
name: 'kv${resourceName}'
location: location
properties: {
accessPolicies: []
createMode: 'default'
enableRbacAuthorization: false
enabledForDeployment: false
enabledForDiskEncryption: false
enabledForTemplateDeployment: false
publicNetworkAccess: 'Enabled'
sku: {
family: 'A'
name: 'standard'
}
softDeleteRetentionInDays: 7
tenantId: tenant().tenantId
}
}
resource workspace 'Microsoft.MachineLearningServices/workspaces@2024-04-01' = {
name: 'mlw-${resourceName}'
location: location
sku: {
name: 'Basic'
tier: 'Basic'
}
kind: 'Default'
properties: {
applicationInsights: component.id
keyVault: vault.id
publicNetworkAccess: 'Enabled'
storageAccount: storageAccount.id
v1LegacyMode: false
}
}
resource managedCluster 'Microsoft.ContainerService/managedClusters@2025-02-01' = {
name: 'aks-${resourceName}'
location: location
sku: {
name: 'Base'
tier: 'Free'
}
properties: {
addonProfiles: {}
agentPoolProfiles: [
{
count: 1
enableAutoScaling: false
enableEncryptionAtHost: false
enableFIPS: false
enableNodePublicIP: false
enableUltraSSD: false
kubeletDiskType: ''
mode: 'System'
name: 'default'
nodeLabels: {}
osDiskType: 'Managed'
osType: 'Linux'
scaleDownMode: 'Delete'
tags: {}
type: 'VirtualMachineScaleSets'
upgradeSettings: {
drainTimeoutInMinutes: 0
maxSurge: '10%'
nodeSoakDurationInMinutes: 0
}
vmSize: 'Standard_B2s'
}
]
apiServerAccessProfile: {
disableRunCommand: false
enablePrivateCluster: false
enablePrivateClusterPublicFQDN: false
}
autoUpgradeProfile: {
nodeOSUpgradeChannel: 'NodeImage'
upgradeChannel: 'none'
}
azureMonitorProfile: {
metrics: {
enabled: false
}
}
disableLocalAccounts: false
dnsPrefix: 'aks-${resourceName}'
enableRBAC: true
kubernetesVersion: ''
metricsProfile: {
costAnalysis: {
enabled: false
}
}
nodeResourceGroup: ''
securityProfile: {}
servicePrincipalProfile: {
clientId: 'msi'
}
supportPlan: 'KubernetesOfficial'
}
}
resource trustedAccessRoleBinding 'Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings@2025-02-01' = {
name: 'tarb-${resourceName}'
parent: managedCluster
properties: {
roles: [
'Microsoft.MachineLearningServices/workspaces/mlworkload'
]
sourceResourceId: workspace.id
}
}
resource component 'Microsoft.Insights/components@2020-02-02' = {
name: 'ai-${resourceName}'
location: location
kind: 'web'
properties: {
Application_Type: 'web'
DisableIpMasking: false
DisableLocalAuth: false
ForceCustomerStorageForProfiler: false
RetentionInDays: 90
SamplingPercentage: 100
publicNetworkAccessForIngestion: 'Enabled'
publicNetworkAccessForQuery: 'Enabled'
}
}
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
name: 'st${resourceName}'
location: location
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
properties: {
accessTier: 'Hot'
allowBlobPublicAccess: true
allowCrossTenantReplication: false
allowSharedKeyAccess: true
defaultToOAuthAuthentication: false
dnsEndpointType: 'Standard'
encryption: {
keySource: 'Microsoft.Storage'
services: {
queue: {
keyType: 'Service'
}
table: {
keyType: 'Service'
}
}
}
isHnsEnabled: false
isLocalUserEnabled: true
isNfsV3Enabled: false
isSftpEnabled: false
minimumTlsVersion: 'TLS1_2'
networkAcls: {
bypass: 'AzureServices'
defaultAction: 'Allow'
ipRules: []
resourceAccessRules: []
virtualNetworkRules: []
}
publicNetworkAccess: 'Enabled'
supportsHttpsTrafficOnly: true
}
}
資源格式
若要建立 Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings@2025-08-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
roles: [
'string'
]
sourceResourceId: 'string'
}
}
屬性值
Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings
| 名稱 | Description | 價值觀 |
|---|---|---|
| 名稱 | 資源名稱 | string 約束: 最小長度 = 1 最大長度 = 24 模式 = ^([A-Za-z0-9-])+$ (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱:managedClusters |
| properties | 受信任存取角色系結的屬性 | TrustedAccessRoleBindingProperties (必需) |
TrustedAccessRoleBindingProperties
| 名稱 | Description | 價值觀 |
|---|---|---|
| 角色 | 要系結的角色清單,每個專案都是資源類型限定角色名稱。 例如:'Microsoft.MachineLearningServices/workspaces/reader'。 | string[] (必要) |
| 源資源ID | 已設定受信任存取來源資源的 ARM 資源識別碼。 | 字串 (必要) |
ARM 樣本資源定義
managedClusters/trustedAccessRoleBindings 資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"apiVersion": "2025-08-01",
"name": "string",
"properties": {
"roles": [ "string" ],
"sourceResourceId": "string"
}
}
屬性值
Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings
| 名稱 | Description | 價值觀 |
|---|---|---|
| apiVersion | API 版本 | '2025-08-01' |
| 名稱 | 資源名稱 | string 約束: 最小長度 = 1 最大長度 = 24 模式 = ^([A-Za-z0-9-])+$ (必要) |
| properties | 受信任存取角色系結的屬性 | TrustedAccessRoleBindingProperties (必需) |
| 型別 | 資源類型 | 'Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings' |
TrustedAccessRoleBindingProperties
| 名稱 | Description | 價值觀 |
|---|---|---|
| 角色 | 要系結的角色清單,每個專案都是資源類型限定角色名稱。 例如:'Microsoft.MachineLearningServices/workspaces/reader'。 | string[] (必要) |
| 源資源ID | 已設定受信任存取來源資源的 ARM 資源識別碼。 | 字串 (必要) |
Terraform (AzAPI 提供者) 資源定義
managedClusters/trustedAccessRoleBindings 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
使用範例
Terraform 範例
部署 Kubernetes 叢集信任存取角色繫結的基本範例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
data "azapi_client_config" "current" {}
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" "component" {
type = "Microsoft.Insights/components@2020-02-02"
parent_id = azapi_resource.resourceGroup.id
name = "ai-${var.resource_name}"
location = var.location
body = {
kind = "web"
properties = {
Application_Type = "web"
DisableIpMasking = false
DisableLocalAuth = false
ForceCustomerStorageForProfiler = false
RetentionInDays = 90
SamplingPercentage = 100
publicNetworkAccessForIngestion = "Enabled"
publicNetworkAccessForQuery = "Enabled"
}
}
}
resource "azapi_resource" "vault" {
type = "Microsoft.KeyVault/vaults@2023-02-01"
parent_id = azapi_resource.resourceGroup.id
name = "kv${var.resource_name}"
location = var.location
body = {
properties = {
accessPolicies = []
createMode = "default"
enableRbacAuthorization = false
enabledForDeployment = false
enabledForDiskEncryption = false
enabledForTemplateDeployment = false
publicNetworkAccess = "Enabled"
sku = {
family = "A"
name = "standard"
}
softDeleteRetentionInDays = 7
tenantId = data.azapi_client_config.current.tenant_id
}
}
}
resource "azapi_resource" "managedCluster" {
type = "Microsoft.ContainerService/managedClusters@2025-02-01"
parent_id = azapi_resource.resourceGroup.id
name = "aks-${var.resource_name}"
location = var.location
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
properties = {
addonProfiles = {}
agentPoolProfiles = [{
count = 1
enableAutoScaling = false
enableEncryptionAtHost = false
enableFIPS = false
enableNodePublicIP = false
enableUltraSSD = false
kubeletDiskType = ""
mode = "System"
name = "default"
nodeLabels = {}
osDiskType = "Managed"
osType = "Linux"
scaleDownMode = "Delete"
tags = {}
type = "VirtualMachineScaleSets"
upgradeSettings = {
drainTimeoutInMinutes = 0
maxSurge = "10%"
nodeSoakDurationInMinutes = 0
}
vmSize = "Standard_B2s"
}]
apiServerAccessProfile = {
disableRunCommand = false
enablePrivateCluster = false
enablePrivateClusterPublicFQDN = false
}
autoUpgradeProfile = {
nodeOSUpgradeChannel = "NodeImage"
upgradeChannel = "none"
}
azureMonitorProfile = {
metrics = {
enabled = false
}
}
disableLocalAccounts = false
dnsPrefix = "aks-${var.resource_name}"
enableRBAC = true
kubernetesVersion = ""
metricsProfile = {
costAnalysis = {
enabled = false
}
}
nodeResourceGroup = ""
securityProfile = {}
servicePrincipalProfile = {
clientId = "msi"
}
supportPlan = "KubernetesOfficial"
}
sku = {
name = "Base"
tier = "Free"
}
}
}
resource "azapi_resource" "storageAccount" {
type = "Microsoft.Storage/storageAccounts@2023-05-01"
parent_id = azapi_resource.resourceGroup.id
name = "st${var.resource_name}"
location = var.location
body = {
kind = "StorageV2"
properties = {
accessTier = "Hot"
allowBlobPublicAccess = true
allowCrossTenantReplication = false
allowSharedKeyAccess = true
defaultToOAuthAuthentication = false
dnsEndpointType = "Standard"
encryption = {
keySource = "Microsoft.Storage"
services = {
queue = {
keyType = "Service"
}
table = {
keyType = "Service"
}
}
}
isHnsEnabled = false
isLocalUserEnabled = true
isNfsV3Enabled = false
isSftpEnabled = false
minimumTlsVersion = "TLS1_2"
networkAcls = {
bypass = "AzureServices"
defaultAction = "Allow"
ipRules = []
resourceAccessRules = []
virtualNetworkRules = []
}
publicNetworkAccess = "Enabled"
supportsHttpsTrafficOnly = true
}
sku = {
name = "Standard_LRS"
}
}
}
resource "azapi_resource" "workspace" {
type = "Microsoft.MachineLearningServices/workspaces@2024-04-01"
parent_id = azapi_resource.resourceGroup.id
name = "mlw-${var.resource_name}"
location = var.location
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
kind = "Default"
properties = {
applicationInsights = azapi_resource.component.id
keyVault = azapi_resource.vault.id
publicNetworkAccess = "Enabled"
storageAccount = azapi_resource.storageAccount.id
v1LegacyMode = false
}
sku = {
name = "Basic"
tier = "Basic"
}
}
}
resource "azapi_resource" "trustedAccessRoleBinding" {
type = "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings@2025-02-01"
parent_id = azapi_resource.managedCluster.id
name = "tarb-${var.resource_name}"
body = {
properties = {
roles = ["Microsoft.MachineLearningServices/workspaces/mlworkload"]
sourceResourceId = azapi_resource.workspace.id
}
}
}
資源格式
若要建立 Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings@2025-08-01"
name = "string"
parent_id = "string"
body = {
properties = {
roles = [
"string"
]
sourceResourceId = "string"
}
}
}
屬性值
Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings
| 名稱 | Description | 價值觀 |
|---|---|---|
| 名稱 | 資源名稱 | string 約束: 最小長度 = 1 最大長度 = 24 模式 = ^([A-Za-z0-9-])+$ (必要) |
| parent_id | 此資源為父系之資源的標識碼。 | 類型的資源標識碼:managedClusters |
| properties | 受信任存取角色系結的屬性 | TrustedAccessRoleBindingProperties (必需) |
| 型別 | 資源類型 | 「Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings@2025-08-01」 |
TrustedAccessRoleBindingProperties
| 名稱 | Description | 價值觀 |
|---|---|---|
| 角色 | 要系結的角色清單,每個專案都是資源類型限定角色名稱。 例如:'Microsoft.MachineLearningServices/workspaces/reader'。 | string[] (必要) |
| 源資源ID | 已設定受信任存取來源資源的 ARM 資源識別碼。 | 字串 (必要) |