azure-native.extendedlocation.CustomLocation
Explore with Pulumi AI
Custom Locations definition. API Version: 2021-03-15-preview.
Example Usage
Create/Update Custom Location
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var customLocation = new AzureNative.ExtendedLocation.CustomLocation("customLocation", new()
{
Authentication = new AzureNative.ExtendedLocation.Inputs.CustomLocationPropertiesAuthenticationArgs
{
Type = "KubeConfig",
Value = "<base64 KubeConfig>",
},
ClusterExtensionIds = new[]
{
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension",
},
DisplayName = "customLocationLocation01",
HostResourceId = "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
Location = "West US",
Namespace = "namespace01",
ResourceGroupName = "testresourcegroup",
ResourceName = "customLocation01",
});
});
package main
import (
extendedlocation "github.com/pulumi/pulumi-azure-native-sdk/extendedlocation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := extendedlocation.NewCustomLocation(ctx, "customLocation", &extendedlocation.CustomLocationArgs{
Authentication: &extendedlocation.CustomLocationPropertiesAuthenticationArgs{
Type: pulumi.String("KubeConfig"),
Value: pulumi.String("<base64 KubeConfig>"),
},
ClusterExtensionIds: pulumi.StringArray{
pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"),
},
DisplayName: pulumi.String("customLocationLocation01"),
HostResourceId: pulumi.String("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01"),
Location: pulumi.String("West US"),
Namespace: pulumi.String("namespace01"),
ResourceGroupName: pulumi.String("testresourcegroup"),
ResourceName: pulumi.String("customLocation01"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.extendedlocation.CustomLocation;
import com.pulumi.azurenative.extendedlocation.CustomLocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var customLocation = new CustomLocation("customLocation", CustomLocationArgs.builder()
.authentication(Map.ofEntries(
Map.entry("type", "KubeConfig"),
Map.entry("value", "<base64 KubeConfig>")
))
.clusterExtensionIds("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension")
.displayName("customLocationLocation01")
.hostResourceId("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01")
.location("West US")
.namespace("namespace01")
.resourceGroupName("testresourcegroup")
.resourceName("customLocation01")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
custom_location = azure_native.extendedlocation.CustomLocation("customLocation",
authentication=azure_native.extendedlocation.CustomLocationPropertiesAuthenticationArgs(
type="KubeConfig",
value="<base64 KubeConfig>",
),
cluster_extension_ids=["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"],
display_name="customLocationLocation01",
host_resource_id="/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
location="West US",
namespace="namespace01",
resource_group_name="testresourcegroup",
resource_name_="customLocation01")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const customLocation = new azure_native.extendedlocation.CustomLocation("customLocation", {
authentication: {
type: "KubeConfig",
value: "<base64 KubeConfig>",
},
clusterExtensionIds: ["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"],
displayName: "customLocationLocation01",
hostResourceId: "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
location: "West US",
namespace: "namespace01",
resourceGroupName: "testresourcegroup",
resourceName: "customLocation01",
});
resources:
customLocation:
type: azure-native:extendedlocation:CustomLocation
properties:
authentication:
type: KubeConfig
value: <base64 KubeConfig>
clusterExtensionIds:
- /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension
displayName: customLocationLocation01
hostResourceId: /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01
location: West US
namespace: namespace01
resourceGroupName: testresourcegroup
resourceName: customLocation01
Create CustomLocation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomLocation(name: string, args: CustomLocationArgs, opts?: CustomResourceOptions);
@overload
def CustomLocation(resource_name: str,
args: CustomLocationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomLocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
authentication: Optional[CustomLocationPropertiesAuthenticationArgs] = None,
cluster_extension_ids: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
host_resource_id: Optional[str] = None,
host_type: Optional[Union[str, HostType]] = None,
location: Optional[str] = None,
namespace: Optional[str] = None,
provisioning_state: Optional[str] = None,
resource_name_: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCustomLocation(ctx *Context, name string, args CustomLocationArgs, opts ...ResourceOption) (*CustomLocation, error)
public CustomLocation(string name, CustomLocationArgs args, CustomResourceOptions? opts = null)
public CustomLocation(String name, CustomLocationArgs args)
public CustomLocation(String name, CustomLocationArgs args, CustomResourceOptions options)
type: azure-native:extendedlocation:CustomLocation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CustomLocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CustomLocationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomLocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomLocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomLocationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var customLocationResource = new AzureNative.Extendedlocation.CustomLocation("customLocationResource", new()
{
ResourceGroupName = "string",
Authentication =
{
{ "type", "string" },
{ "value", "string" },
},
ClusterExtensionIds = new[]
{
"string",
},
DisplayName = "string",
HostResourceId = "string",
HostType = "string",
Location = "string",
Namespace = "string",
ProvisioningState = "string",
ResourceName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := extendedlocation.NewCustomLocation(ctx, "customLocationResource", &extendedlocation.CustomLocationArgs{
ResourceGroupName: "string",
Authentication: map[string]interface{}{
"type": "string",
"value": "string",
},
ClusterExtensionIds: []string{
"string",
},
DisplayName: "string",
HostResourceId: "string",
HostType: "string",
Location: "string",
Namespace: "string",
ProvisioningState: "string",
ResourceName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var customLocationResource = new CustomLocation("customLocationResource", CustomLocationArgs.builder()
.resourceGroupName("string")
.authentication(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.clusterExtensionIds("string")
.displayName("string")
.hostResourceId("string")
.hostType("string")
.location("string")
.namespace("string")
.provisioningState("string")
.resourceName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
custom_location_resource = azure_native.extendedlocation.CustomLocation("customLocationResource",
resource_group_name=string,
authentication={
type: string,
value: string,
},
cluster_extension_ids=[string],
display_name=string,
host_resource_id=string,
host_type=string,
location=string,
namespace=string,
provisioning_state=string,
resource_name_=string,
tags={
string: string,
})
const customLocationResource = new azure_native.extendedlocation.CustomLocation("customLocationResource", {
resourceGroupName: "string",
authentication: {
type: "string",
value: "string",
},
clusterExtensionIds: ["string"],
displayName: "string",
hostResourceId: "string",
hostType: "string",
location: "string",
namespace: "string",
provisioningState: "string",
resourceName: "string",
tags: {
string: "string",
},
});
type: azure-native:extendedlocation:CustomLocation
properties:
authentication:
type: string
value: string
clusterExtensionIds:
- string
displayName: string
hostResourceId: string
hostType: string
location: string
namespace: string
provisioningState: string
resourceGroupName: string
resourceName: string
tags:
string: string
CustomLocation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CustomLocation resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Authentication
Pulumi.
Azure Native. Extended Location. Inputs. Custom Location Properties Authentication - This is optional input that contains the authentication that should be used to generate the namespace.
- Cluster
Extension List<string>Ids - Contains the reference to the add-on that contains charts to deploy CRDs and operators.
- Display
Name string - Display name for the Custom Locations location.
- Host
Resource stringId - Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
- Host
Type string | Pulumi.Azure Native. Extended Location. Host Type - Type of host the Custom Locations is referencing (Kubernetes, etc...).
- Location string
- The geo-location where the resource lives
- Namespace string
- Kubernetes namespace that will be created on the specified cluster.
- Provisioning
State string - Provisioning State for the Custom Location.
- Resource
Name string - Custom Locations name.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Authentication
Custom
Location Properties Authentication Args - This is optional input that contains the authentication that should be used to generate the namespace.
- Cluster
Extension []stringIds - Contains the reference to the add-on that contains charts to deploy CRDs and operators.
- Display
Name string - Display name for the Custom Locations location.
- Host
Resource stringId - Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
- Host
Type string | HostType - Type of host the Custom Locations is referencing (Kubernetes, etc...).
- Location string
- The geo-location where the resource lives
- Namespace string
- Kubernetes namespace that will be created on the specified cluster.
- Provisioning
State string - Provisioning State for the Custom Location.
- Resource
Name string - Custom Locations name.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- authentication
Custom
Location Properties Authentication - This is optional input that contains the authentication that should be used to generate the namespace.
- cluster
Extension List<String>Ids - Contains the reference to the add-on that contains charts to deploy CRDs and operators.
- display
Name String - Display name for the Custom Locations location.
- host
Resource StringId - Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
- host
Type String | HostType - Type of host the Custom Locations is referencing (Kubernetes, etc...).
- location String
- The geo-location where the resource lives
- namespace String
- Kubernetes namespace that will be created on the specified cluster.
- provisioning
State String - Provisioning State for the Custom Location.
- resource
Name String - Custom Locations name.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- authentication
Custom
Location Properties Authentication - This is optional input that contains the authentication that should be used to generate the namespace.
- cluster
Extension string[]Ids - Contains the reference to the add-on that contains charts to deploy CRDs and operators.
- display
Name string - Display name for the Custom Locations location.
- host
Resource stringId - Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
- host
Type string | HostType - Type of host the Custom Locations is referencing (Kubernetes, etc...).
- location string
- The geo-location where the resource lives
- namespace string
- Kubernetes namespace that will be created on the specified cluster.
- provisioning
State string - Provisioning State for the Custom Location.
- resource
Name string - Custom Locations name.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- authentication
Custom
Location Properties Authentication Args - This is optional input that contains the authentication that should be used to generate the namespace.
- cluster_
extension_ Sequence[str]ids - Contains the reference to the add-on that contains charts to deploy CRDs and operators.
- display_
name str - Display name for the Custom Locations location.
- host_
resource_ strid - Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
- host_
type str | HostType - Type of host the Custom Locations is referencing (Kubernetes, etc...).
- location str
- The geo-location where the resource lives
- namespace str
- Kubernetes namespace that will be created on the specified cluster.
- provisioning_
state str - Provisioning State for the Custom Location.
- resource_
name str - Custom Locations name.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- authentication Property Map
- This is optional input that contains the authentication that should be used to generate the namespace.
- cluster
Extension List<String>Ids - Contains the reference to the add-on that contains charts to deploy CRDs and operators.
- display
Name String - Display name for the Custom Locations location.
- host
Resource StringId - Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
- host
Type String | "Kubernetes" - Type of host the Custom Locations is referencing (Kubernetes, etc...).
- location String
- The geo-location where the resource lives
- namespace String
- Kubernetes namespace that will be created on the specified cluster.
- provisioning
State String - Provisioning State for the Custom Location.
- resource
Name String - Custom Locations name.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomLocation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Extended Location. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
CustomLocationPropertiesAuthentication, CustomLocationPropertiesAuthenticationArgs
CustomLocationPropertiesResponseAuthentication, CustomLocationPropertiesResponseAuthenticationArgs
- Type string
- The type of the Custom Locations authentication
- Type string
- The type of the Custom Locations authentication
- type String
- The type of the Custom Locations authentication
- type string
- The type of the Custom Locations authentication
- type str
- The type of the Custom Locations authentication
- type String
- The type of the Custom Locations authentication
HostType, HostTypeArgs
- Kubernetes
- Kubernetes
- Host
Type Kubernetes - Kubernetes
- Kubernetes
- Kubernetes
- Kubernetes
- Kubernetes
- KUBERNETES
- Kubernetes
- "Kubernetes"
- Kubernetes
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:extendedlocation:CustomLocation customLocation01 /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0