Custom Location
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
This is optional input that contains the authentication that should be used to generate the namespace.
Link copied to clipboard
Contains the reference to the add-on that contains charts to deploy CRDs and operators.
Link copied to clipboard
Display name for the Custom Locations location.
Link copied to clipboard
Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
Link copied to clipboard
Provisioning State for the Custom Location.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Metadata pertaining to creation and last modification of the resource