Microsoft.ExtendedLocation customLocations

Bicep resource definition

The customLocations resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ExtendedLocation/customLocations resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.ExtendedLocation/customLocations@2024-09-15-preview' = {
  identity: {
    type: 'string'
  }
  location: 'string'
  name: 'string'
  properties: {
    clusterExtensionIds: [
      'string'
    ]
    displayName: 'string'
    hostResourceId: 'string'
    hostType: 'string'
    namespace: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.ExtendedLocation/customLocations

Name Description Value
identity Identity for the resource. SystemAssignedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (required)
properties The set of properties specific to a Custom Location CustomLocationProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

CustomLocationProperties

Name Description Value
clusterExtensionIds Contains the reference to the add-on that contains charts to deploy CRDs and operators. Optional for EdgeCluster hostType. string[]
displayName Display name for the Custom Locations location. string
hostResourceId Connected Cluster, AKS Cluster or Edge Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions for Connected Cluster and AKS Cluster. string
hostType Type of host the Custom Locations is referencing (Kubernetes, EdgeCluster, etc...). 'EdgeCluster'
'Kubernetes'
namespace Kubernetes namespace that will be created on the specified cluster. Optional for EdgeCluster hostType. string

SystemAssignedServiceIdentity

Name Description Value
type Type of managed service identity (either system assigned, or none). 'None'
'SystemAssigned' (required)

TrackedResourceTags

Name Description Value

ARM template resource definition

The customLocations resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.ExtendedLocation/customLocations resource, add the following JSON to your template.

{
  "type": "Microsoft.ExtendedLocation/customLocations",
  "apiVersion": "2024-09-15-preview",
  "name": "string",
  "identity": {
    "type": "string"
  },
  "location": "string",
  "properties": {
    "clusterExtensionIds": [ "string" ],
    "displayName": "string",
    "hostResourceId": "string",
    "hostType": "string",
    "namespace": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.ExtendedLocation/customLocations

Name Description Value
apiVersion The api version '2024-09-15-preview'
identity Identity for the resource. SystemAssignedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (required)
properties The set of properties specific to a Custom Location CustomLocationProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ExtendedLocation/customLocations'

CustomLocationProperties

Name Description Value
clusterExtensionIds Contains the reference to the add-on that contains charts to deploy CRDs and operators. Optional for EdgeCluster hostType. string[]
displayName Display name for the Custom Locations location. string
hostResourceId Connected Cluster, AKS Cluster or Edge Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions for Connected Cluster and AKS Cluster. string
hostType Type of host the Custom Locations is referencing (Kubernetes, EdgeCluster, etc...). 'EdgeCluster'
'Kubernetes'
namespace Kubernetes namespace that will be created on the specified cluster. Optional for EdgeCluster hostType. string

SystemAssignedServiceIdentity

Name Description Value
type Type of managed service identity (either system assigned, or none). 'None'
'SystemAssigned' (required)

TrackedResourceTags

Name Description Value

Terraform (AzAPI provider) resource definition

The customLocations resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ExtendedLocation/customLocations resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ExtendedLocation/customLocations@2024-09-15-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      clusterExtensionIds = [
        "string"
      ]
      displayName = "string"
      hostResourceId = "string"
      hostType = "string"
      namespace = "string"
    }
  }
}

Property Values

Microsoft.ExtendedLocation/customLocations

Name Description Value
identity Identity for the resource. SystemAssignedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (required)
properties The set of properties specific to a Custom Location CustomLocationProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ExtendedLocation/customLocations@2024-09-15-preview"

CustomLocationProperties

Name Description Value
clusterExtensionIds Contains the reference to the add-on that contains charts to deploy CRDs and operators. Optional for EdgeCluster hostType. string[]
displayName Display name for the Custom Locations location. string
hostResourceId Connected Cluster, AKS Cluster or Edge Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions for Connected Cluster and AKS Cluster. string
hostType Type of host the Custom Locations is referencing (Kubernetes, EdgeCluster, etc...). 'EdgeCluster'
'Kubernetes'
namespace Kubernetes namespace that will be created on the specified cluster. Optional for EdgeCluster hostType. string

SystemAssignedServiceIdentity

Name Description Value
type Type of managed service identity (either system assigned, or none). 'None'
'SystemAssigned' (required)

TrackedResourceTags

Name Description Value