Share via


Connected Cluster - Create Or Replace

Register a new Kubernetes cluster with Azure Resource Manager.
API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource in Azure Resource Manager (ARM).

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}?api-version=2024-12-01-preview

URI Parameters

Name In Required Type Description
clusterName
path True

string

The name of the Kubernetes cluster on which get is called.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Required Type Description
identity True

ConnectedClusterIdentity

The identity of the connected cluster.

location True

string

The geo-location where the resource lives

properties.agentPublicKeyCertificate True

string

Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.

kind

ConnectedClusterKind

The kind of connected cluster.

properties.aadProfile

AadProfile

AAD profile for the connected cluster.

properties.arcAgentProfile

ArcAgentProfile

Arc agentry configuration for the provisioned cluster.

properties.arcAgentryConfigurations

ArcAgentryConfigurations[]

Configuration settings for customizing the behavior of the connected cluster.

properties.azureHybridBenefit

AzureHybridBenefit

Indicates whether Azure Hybrid Benefit is opted in

properties.distribution

string

The Kubernetes distribution running on this connected cluster.

properties.distributionVersion

string

The Kubernetes distribution version on this connected cluster.

properties.gateway

Gateway

Details of the gateway used by the Arc router for connectivity.

properties.infrastructure

string

The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.

properties.oidcIssuerProfile

OidcIssuerProfile

Open ID Connect (OIDC) Issuer Profile for the connected cluster.

properties.privateLinkScopeResourceId

string

This is populated only if privateLinkState is enabled. The resource id of the private link scope this connected cluster is assigned to, if any.

properties.privateLinkState

PrivateLinkState

Property which describes the state of private link on a connected cluster resource.

properties.provisioningState

ProvisioningState

Provisioning state of the connected cluster resource.

properties.securityProfile

SecurityProfile

Security profile for the connected cluster.

tags

object

Resource tags.

Responses

Name Type Description
200 OK

ConnectedCluster

OK

201 Created

ConnectedCluster

Resource creation request accepted

Other Status Codes

ErrorResponse

Resource Provider error response describing why the operation failed.

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

CreateCluster_KindExample
CreateClusterAgentless_KindAWSExample
CreateClusterExample
CreateClusterPrivateLinkExample
UpdateClusterByPutExample

CreateCluster_KindExample

Sample request

PUT https://management.azure.com/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourcegroups/k8sc-rg/providers/Microsoft.Kubernetes/connectedClusters/testCluster?api-version=2024-12-01-preview

{
  "location": "East US",
  "tags": {},
  "identity": {
    "type": "SystemAssigned"
  },
  "kind": "ProvisionedCluster",
  "properties": {
    "agentPublicKeyCertificate": "",
    "azureHybridBenefit": "NotApplicable",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "aadProfile": {
      "enableAzureRBAC": true,
      "adminGroupObjectIDs": [
        "56f988bf-86f1-41af-91ab-2d7cd011db47"
      ],
      "tenantID": "82f988bf-86f1-41af-91ab-2d7cd011db47"
    },
    "oidcIssuerProfile": {
      "enabled": true
    },
    "arcAgentProfile": {
      "desiredAgentVersion": "0.1.0",
      "agentAutoUpgrade": "Enabled",
      "systemComponents": [
        {
          "type": "Strato",
          "userSpecifiedVersion": "0.1.1",
          "majorVersion": 0
        }
      ]
    }
  }
}

Sample response

{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "kind": "ProvisionedCluster",
  "properties": {
    "agentPublicKeyCertificate": "",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "provisioningState": "Succeeded",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "azureHybridBenefit": "NotApplicable",
    "aadProfile": {
      "enableAzureRBAC": true,
      "adminGroupObjectIDs": [
        "56f988bf-86f1-41af-91ab-2d7cd011db47"
      ],
      "tenantID": "82f988bf-86f1-41af-91ab-2d7cd011db47"
    },
    "oidcIssuerProfile": {
      "enabled": true,
      "issuerUrl": "https://oidcdiscovery-northamerica-endpoint-gbcge4adgqebgxev.z01.azurefd.net/885hc665-0g4a-4a4b-732b-e4950new3bed/"
    },
    "arcAgentProfile": {
      "desiredAgentVersion": "0.1.0",
      "agentAutoUpgrade": "Enabled",
      "agentState": "Succeeded",
      "systemComponents": [
        {
          "type": "Strato",
          "userSpecifiedVersion": "0.1.1",
          "currentVersion": "0.1.0",
          "majorVersion": 0
        }
      ]
    }
  }
}
{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "provisioningState": "Accepted",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "azureHybridBenefit": "NotApplicable",
    "aadProfile": {
      "enableAzureRBAC": true,
      "adminGroupObjectIDs": [
        "56f988bf-86f1-41af-91ab-2d7cd011db47"
      ],
      "tenantID": "82f988bf-86f1-41af-91ab-2d7cd011db47"
    },
    "oidcIssuerProfile": {
      "enabled": true,
      "issuerUrl": "https://oidcdiscovery-northamerica-endpoint-gbcge4adgqebgxev.z01.azurefd.net/885hc665-0g4a-4a4b-732b-e4950new3bed/"
    },
    "arcAgentProfile": {
      "desiredAgentVersion": "0.1.0",
      "agentAutoUpgrade": "Enabled",
      "agentState": "Succeeded",
      "systemComponents": [
        {
          "type": "Strato",
          "userSpecifiedVersion": "0.1.1",
          "currentVersion": "0.1.0",
          "majorVersion": 0
        }
      ]
    }
  }
}

CreateClusterAgentless_KindAWSExample

Sample request

PUT https://management.azure.com/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourcegroups/k8sc-rg/providers/Microsoft.Kubernetes/connectedClusters/testCluster?api-version=2024-12-01-preview

{
  "location": "East US",
  "tags": {},
  "identity": {
    "type": "None"
  },
  "kind": "AWS",
  "properties": {
    "agentPublicKeyCertificate": "",
    "distribution": "eks",
    "infrastructure": "aws"
  }
}

Sample response

{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "None"
  },
  "kind": "AWS",
  "properties": {
    "provisioningState": "Succeeded",
    "connectivityStatus": "AgentNotInstalled",
    "privateLinkState": "Disabled",
    "azureHybridBenefit": "NotApplicable",
    "agentPublicKeyCertificate": "",
    "aadProfile": {},
    "distribution": "eks",
    "infrastructure": "aws",
    "arcAgentProfile": {}
  }
}
{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "None"
  },
  "properties": {
    "provisioningState": "Succeeded",
    "connectivityStatus": "AgentNotInstalled",
    "privateLinkState": "Disabled",
    "azureHybridBenefit": "NotApplicable",
    "agentPublicKeyCertificate": "",
    "aadProfile": {},
    "distribution": "eks",
    "infrastructure": "aws",
    "arcAgentProfile": {}
  }
}

CreateClusterExample

Sample request

PUT https://management.azure.com/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourcegroups/k8sc-rg/providers/Microsoft.Kubernetes/connectedClusters/testCluster?api-version=2024-12-01-preview

{
  "location": "East US",
  "tags": {},
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "azureHybridBenefit": "NotApplicable",
    "distribution": "AKS",
    "distributionVersion": "1.0"
  }
}

Sample response

{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "provisioningState": "Succeeded",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "azureHybridBenefit": "NotApplicable"
  }
}
{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "provisioningState": "Accepted",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "azureHybridBenefit": "NotApplicable"
  }
}

CreateClusterPrivateLinkExample

Sample request

PUT https://management.azure.com/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourcegroups/k8sc-rg/providers/Microsoft.Kubernetes/connectedClusters/testCluster?api-version=2024-12-01-preview

{
  "location": "East US",
  "tags": {},
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "privateLinkState": "Enabled",
    "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName",
    "azureHybridBenefit": "NotApplicable",
    "distribution": "AKS",
    "distributionVersion": "1.0"
  }
}

Sample response

{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "privateLinkState": "Enabled",
    "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName",
    "provisioningState": "Succeeded",
    "azureHybridBenefit": "NotApplicable",
    "distribution": "AKS",
    "distributionVersion": "1.0"
  }
}
{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "privateLinkState": "Enabled",
    "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName",
    "provisioningState": "Accepted",
    "azureHybridBenefit": "NotApplicable",
    "distribution": "AKS",
    "distributionVersion": "1.0"
  }
}

UpdateClusterByPutExample

Sample request

PUT https://management.azure.com/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourcegroups/k8sc-rg/providers/Microsoft.Kubernetes/connectedClusters/testCluster?api-version=2024-12-01-preview

{
  "location": "East US",
  "tags": {},
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "azureHybridBenefit": "NotApplicable",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "gateway": {
      "enabled": true,
      "resourceId": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.HybridCompute/gateways/gateway1"
    }
  }
}

Sample response

{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "provisioningState": "Succeeded",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "azureHybridBenefit": "NotApplicable",
    "gateway": {
      "enabled": true,
      "resourceId": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.HybridCompute/gateways/gateway1"
    }
  }
}
{
  "id": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.Kubernetes/connectedClusters/connectedCluster1",
  "name": "connectedCluster1",
  "type": "Microsoft.Kubernetes/connectedClusters",
  "location": "East US",
  "tags": {},
  "systemData": {
    "createdBy": "sikasire@microsoft.com",
    "createdByType": "User",
    "createdAt": "2020-12-17T07:06:33.9173186Z",
    "lastModifiedBy": "sikasire@microsoft.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2020-12-17T07:06:33.9173186Z"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "agentPublicKeyCertificate": "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
    "kubernetesVersion": "1.17.0",
    "totalNodeCount": 2,
    "agentVersion": "0.1.0",
    "provisioningState": "Accepted",
    "distribution": "AKS",
    "distributionVersion": "1.0",
    "azureHybridBenefit": "NotApplicable",
    "gateway": {
      "enabled": true,
      "resourceId": "/subscriptions/1bfbb5d0-917e-4346-9026-1d3b344417f5/resourceGroups/akkeshar/providers/Microsoft.HybridCompute/gateways/gateway1"
    }
  }
}

Definitions

Name Description
AadProfile

AAD Profile specifies attributes for Azure Active Directory integration.

AgentError

Agent Errors if any during agent or system component upgrade.

ArcAgentProfile

Defines the Arc Agent properties for the clusters.

ArcAgentryConfigurations
AutoUpgradeOptions

Indicates whether the Arc agents on the be upgraded automatically to the latest version. Defaults to Enabled.

AzureHybridBenefit

Indicates whether Azure Hybrid Benefit is opted in

ConnectedCluster

Represents a connected cluster.

ConnectedClusterIdentity

Identity for the connected cluster.

ConnectedClusterKind

Indicates the kind of Arc connected cluster based on host infrastructure.

ConnectivityStatus

Represents the connectivity status of the connected cluster.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

Gateway
lastModifiedByType

The type of identity that last modified the resource.

OidcIssuerProfile

OIDC Issuer Profile specifies attributes for workload identity integration.

PrivateLinkState

Property which describes the state of private link on a connected cluster resource.

ProvisioningState

Provisioning state of the connected cluster resource.

ResourceIdentityType

The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster.

SecurityProfile

Security Profile specifies attributes for cluster security features.

SystemComponent

System extensions and its current versions installed on the cluster resource.

SystemData

Metadata pertaining to creation and last modification of the resource.

WorkloadIdentity

The workload identity feature webhook.

AadProfile

AAD Profile specifies attributes for Azure Active Directory integration.

Name Type Description
adminGroupObjectIDs

string[]

The list of AAD group object IDs that will have admin role of the cluster.

enableAzureRBAC

boolean

Whether to enable Azure RBAC for Kubernetes authorization.

tenantID

string

The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.

AgentError

Agent Errors if any during agent or system component upgrade.

Name Type Description
component

string

Agent component where error message occured.

message

string

Agent error message.

severity

string

Severity of the error message.

time

string (date-time)

The timestamp of error occured (UTC).

ArcAgentProfile

Defines the Arc Agent properties for the clusters.

Name Type Default value Description
agentAutoUpgrade

AutoUpgradeOptions

Enabled

Indicates whether the Arc agents on the be upgraded automatically to the latest version. Defaults to Enabled.

agentErrors

AgentError[]

List of arc agentry and system components errors on the cluster resource.

agentState

string

Represents the current state of the Arc agentry and its dependent components.

desiredAgentVersion

string

Version of the Arc agents to be installed on the cluster resource

systemComponents

SystemComponent[]

List of system extensions that are installed on the cluster resource.

ArcAgentryConfigurations

Name Type Description
feature

string

Specifies the name of the feature for the configuration setting.

protectedSettings

object

The configuration settings for the feature that contain any sensitive or secret information.

settings

object

The configuration settings for the feature that do not contain any sensitive or secret information.

AutoUpgradeOptions

Indicates whether the Arc agents on the be upgraded automatically to the latest version. Defaults to Enabled.

Value Description
Enabled
Disabled

AzureHybridBenefit

Indicates whether Azure Hybrid Benefit is opted in

Value Description
True
False
NotApplicable

ConnectedCluster

Represents a connected cluster.

Name Type Default value Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity

ConnectedClusterIdentity

The identity of the connected cluster.

kind

ConnectedClusterKind

The kind of connected cluster.

location

string

The geo-location where the resource lives

name

string

The name of the resource

properties.aadProfile

AadProfile

AAD profile for the connected cluster.

properties.agentPublicKeyCertificate

string

Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.

properties.agentVersion

string

Version of the agent running on the connected cluster resource

properties.arcAgentProfile

ArcAgentProfile

Arc agentry configuration for the provisioned cluster.

properties.arcAgentryConfigurations

ArcAgentryConfigurations[]

Configuration settings for customizing the behavior of the connected cluster.

properties.azureHybridBenefit

AzureHybridBenefit

NotApplicable

Indicates whether Azure Hybrid Benefit is opted in

properties.connectivityStatus

ConnectivityStatus

Represents the connectivity status of the connected cluster.

properties.distribution

string

The Kubernetes distribution running on this connected cluster.

properties.distributionVersion

string

The Kubernetes distribution version on this connected cluster.

properties.gateway

Gateway

Details of the gateway used by the Arc router for connectivity.

properties.infrastructure

string

The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.

properties.kubernetesVersion

string

The Kubernetes version of the connected cluster resource

properties.lastConnectivityTime

string (date-time)

Time representing the last instance when heart beat was received from the cluster

properties.managedIdentityCertificateExpirationTime

string (date-time)

Expiration time of the managed identity certificate

properties.miscellaneousProperties

object

More properties related to the Connected Cluster

properties.offering

string

Connected cluster offering

properties.oidcIssuerProfile

OidcIssuerProfile

Open ID Connect (OIDC) Issuer Profile for the connected cluster.

properties.privateLinkScopeResourceId

string

This is populated only if privateLinkState is enabled. The resource id of the private link scope this connected cluster is assigned to, if any.

properties.privateLinkState

PrivateLinkState

Disabled

Property which describes the state of private link on a connected cluster resource.

properties.provisioningState

ProvisioningState

Provisioning state of the connected cluster resource.

properties.securityProfile

SecurityProfile

Security profile for the connected cluster.

properties.totalCoreCount

integer (int32)

Number of CPU cores present in the connected cluster resource

properties.totalNodeCount

integer

Number of nodes present in the connected cluster resource

systemData

SystemData

Metadata pertaining to creation and last modification of the resource

tags

object

Resource tags.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

ConnectedClusterIdentity

Identity for the connected cluster.

Name Type Default value Description
principalId

string

The principal id of connected cluster identity. This property will only be provided for a system assigned identity.

tenantId

string

The tenant id associated with the connected cluster. This property will only be provided for a system assigned identity.

type

ResourceIdentityType

SystemAssigned

The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster.

ConnectedClusterKind

Indicates the kind of Arc connected cluster based on host infrastructure.

Value Description
ProvisionedCluster
AWS

ConnectivityStatus

Represents the connectivity status of the connected cluster.

Value Description
Connecting
Connected
Offline
Expired
AgentNotInstalled

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

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

Gateway

Name Type Description
enabled

boolean

Indicates whether the gateway for arc router connectivity is enabled.

resourceId

string (arm-id)

The resource ID of the gateway used for the Arc router feature.

lastModifiedByType

The type of identity that last modified the resource.

Value Description
User
Application
ManagedIdentity
Key

OidcIssuerProfile

OIDC Issuer Profile specifies attributes for workload identity integration.

Name Type Description
enabled

boolean

Whether to enable oidc issuer for workload identity integration.

issuerUrl

string

The issuer url for hybrid clusters connected to Arc used for the workload identity feature.

selfHostedIssuerUrl

string

The issuer url for public cloud clusters - AKS, EKS, GKE - used for the workload identity feature.

PrivateLinkState

Property which describes the state of private link on a connected cluster resource.

Value Description
Enabled
Disabled

ProvisioningState

Provisioning state of the connected cluster resource.

Value Description
Succeeded
Failed
Canceled
Provisioning
Updating
Deleting
Accepted

ResourceIdentityType

The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster.

Value Description
None
SystemAssigned

SecurityProfile

Security Profile specifies attributes for cluster security features.

Name Type Description
workloadIdentity

WorkloadIdentity

The workload identity feature webhook.

SystemComponent

System extensions and its current versions installed on the cluster resource.

Name Type Description
currentVersion

string

Version of the system extension that is currently installed on the cluster resource.

majorVersion

integer (int32)

Major Version of the system extension that is currently installed on the cluster resource.

type

string

Type of the system extension

userSpecifiedVersion

string

Version of the system extension to be installed on the cluster resource.

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

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource modification (UTC).

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

lastModifiedByType

The type of identity that last modified the resource.

WorkloadIdentity

The workload identity feature webhook.

Name Type Description
enabled

boolean

Whether to enable or disable the workload identity Webhook