Microsoft.ExtendedLocation customLocations 2021-03-15-preview
Bicep resource definition
The customLocations resource type can be deployed to:
- Resource groups - See resource group deployment commands
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@2021-03-15-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
properties: {
authentication: {
type: 'string'
value: 'string'
}
clusterExtensionIds: [
'string'
]
displayName: 'string'
hostResourceId: 'string'
hostType: 'Kubernetes'
namespace: 'string'
provisioningState: 'string'
}
}
Property values
customLocations
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
location | The geo-location where the resource lives | string (required) |
tags | Resource tags. | Dictionary of tag names and values. See Tags in templates |
properties | The set of properties specific to a Custom Location | CustomLocationProperties |
CustomLocationProperties
Name | Description | Value |
---|---|---|
authentication | This is optional input that contains the authentication that should be used to generate the namespace. | CustomLocationPropertiesAuthentication |
clusterExtensionIds | Contains the reference to the add-on that contains charts to deploy CRDs and operators. | string[] |
displayName | Display name for the Custom Locations location. | string |
hostResourceId | Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions. | string |
hostType | Type of host the Custom Locations is referencing (Kubernetes, etc...). | 'Kubernetes' |
namespace | Kubernetes namespace that will be created on the specified cluster. | string |
provisioningState | Provisioning State for the Custom Location. | string |
CustomLocationPropertiesAuthentication
Name | Description | Value |
---|---|---|
type | The type of the Custom Locations authentication | string |
value | The kubeconfig value. | string |
ARM template resource definition
The customLocations resource type can be deployed to:
- Resource groups - See resource group deployment commands
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 JSON to your template.
{
"type": "Microsoft.ExtendedLocation/customLocations",
"apiVersion": "2021-03-15-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"authentication": {
"type": "string",
"value": "string"
},
"clusterExtensionIds": [ "string" ],
"displayName": "string",
"hostResourceId": "string",
"hostType": "Kubernetes",
"namespace": "string",
"provisioningState": "string"
}
}
Property values
customLocations
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.ExtendedLocation/customLocations' |
apiVersion | The resource api version | '2021-03-15-preview' |
name | The resource name | string (required) |
location | The geo-location where the resource lives | string (required) |
tags | Resource tags. | Dictionary of tag names and values. See Tags in templates |
properties | The set of properties specific to a Custom Location | CustomLocationProperties |
CustomLocationProperties
Name | Description | Value |
---|---|---|
authentication | This is optional input that contains the authentication that should be used to generate the namespace. | CustomLocationPropertiesAuthentication |
clusterExtensionIds | Contains the reference to the add-on that contains charts to deploy CRDs and operators. | string[] |
displayName | Display name for the Custom Locations location. | string |
hostResourceId | Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions. | string |
hostType | Type of host the Custom Locations is referencing (Kubernetes, etc...). | 'Kubernetes' |
namespace | Kubernetes namespace that will be created on the specified cluster. | string |
provisioningState | Provisioning State for the Custom Location. | string |
CustomLocationPropertiesAuthentication
Name | Description | Value |
---|---|---|
type | The type of the Custom Locations authentication | string |
value | The kubeconfig value. | string |
Terraform (AzAPI provider) resource definition
The customLocations resource type can be deployed to:
- 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@2021-03-15-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
authentication = {
type = "string"
value = "string"
}
clusterExtensionIds = [
"string"
]
displayName = "string"
hostResourceId = "string"
hostType = "Kubernetes"
namespace = "string"
provisioningState = "string"
}
})
}
Property values
customLocations
Name | Description | Value |
---|---|---|
type | The resource type | "Microsoft.ExtendedLocation/customLocations@2021-03-15-preview" |
name | The resource name | string (required) |
location | The geo-location where the resource lives | string (required) |
parent_id | To deploy to a resource group, use the ID of that resource group. | string (required) |
tags | Resource tags. | Dictionary of tag names and values. |
properties | The set of properties specific to a Custom Location | CustomLocationProperties |
CustomLocationProperties
Name | Description | Value |
---|---|---|
authentication | This is optional input that contains the authentication that should be used to generate the namespace. | CustomLocationPropertiesAuthentication |
clusterExtensionIds | Contains the reference to the add-on that contains charts to deploy CRDs and operators. | string[] |
displayName | Display name for the Custom Locations location. | string |
hostResourceId | Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions. | string |
hostType | Type of host the Custom Locations is referencing (Kubernetes, etc...). | "Kubernetes" |
namespace | Kubernetes namespace that will be created on the specified cluster. | string |
provisioningState | Provisioning State for the Custom Location. | string |
CustomLocationPropertiesAuthentication
Name | Description | Value |
---|---|---|
type | The type of the Custom Locations authentication | string |
value | The kubeconfig value. | string |