Trusted Access Role Bindings - Create Or Update
Create or update a trusted access role binding
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}?api-version=2026-04-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
resource
|
path | True |
string minLength: 1maxLength: 63 pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ |
The name of the managed cluster resource. |
|
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
|
trusted
|
path | True |
string minLength: 1maxLength: 24 pattern: ^([A-Za-z0-9-])+$ |
The name of trusted access role binding. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| properties.roles | True |
string[] |
A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'. |
| properties.sourceResourceId | True |
string (arm-id) |
The ARM resource ID of source resource that trusted access is configured for. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Resource 'TrustedAccessRoleBinding' update operation succeeded |
|
| 201 Created |
Resource 'TrustedAccessRoleBinding' create operation succeeded Headers
|
|
| Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Create or update a trusted access role binding
Sample request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1?api-version=2026-04-01
{
"properties": {
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
],
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c"
}
}
Sample response
{
"name": "binding1",
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
"properties": {
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
],
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c"
}
}
{
"name": "binding1",
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
"properties": {
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
],
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c"
}
}
Definitions
| Name | Description |
|---|---|
|
created |
The type of identity that created the resource. |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Trusted |
Defines binding between a resource and role |
|
Trusted |
The current provisioning state of trusted access role binding. |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |
TrustedAccessRoleBinding
Defines binding between a resource and role
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
The name of the resource |
| properties.provisioningState |
The current provisioning state of trusted access role binding. |
|
| properties.roles |
string[] |
A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'. |
| properties.sourceResourceId |
string (arm-id) |
The ARM resource ID of source resource that trusted access is configured for. |
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
TrustedAccessRoleBindingProvisioningState
The current provisioning state of trusted access role binding.
| Value | Description |
|---|---|
| Canceled |
Trusted access role binding provisioning was canceled. |
| Deleting |
Trusted access role binding is being deleted. |
| Failed |
Trusted access role binding provisioning failed. |
| Succeeded |
Trusted access role binding provisioning succeeded. |
| Updating |
Trusted access role binding is being updated. |