Azure Key Vault Secret Provider Class
The AzureKeyVaultSecretProviderClass resource. Uses Azure REST API version 2024-08-21-preview.
Example Usage
AzureKeyVaultSecretProviderClasses_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var azureKeyVaultSecretProviderClass = new AzureNative.SecretSyncController.AzureKeyVaultSecretProviderClass("azureKeyVaultSecretProviderClass", new()
{
AzureKeyVaultSecretProviderClassName = "akvspc-ssc-example",
ClientId = "00000000-0000-0000-0000-000000000000",
ExtendedLocation = new AzureNative.SecretSyncController.Inputs.AzureResourceManagerCommonTypesExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-ssc-example/providers/Microsoft.ExtendedLocation/customLocations/example-custom-location",
Type = AzureNative.SecretSyncController.ExtendedLocationType.CustomLocation,
},
KeyvaultName = "example-ssc-key-vault",
Location = "eastus",
Objects = @"array: |
- |
objectName: my-secret-object
objectType: secret
objectVersionHistory: 1",
ResourceGroupName = "rg-ssc-example",
Tags =
{
{ "example-tag", "example-tag-value" },
},
TenantId = "00000000-0000-0000-0000-000000000000",
});
});
Content copied to clipboard
package main
import (
secretsynccontroller "github.com/pulumi/pulumi-azure-native-sdk/secretsynccontroller/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := secretsynccontroller.NewAzureKeyVaultSecretProviderClass(ctx, "azureKeyVaultSecretProviderClass", &secretsynccontroller.AzureKeyVaultSecretProviderClassArgs{
AzureKeyVaultSecretProviderClassName: pulumi.String("akvspc-ssc-example"),
ClientId: pulumi.String("00000000-0000-0000-0000-000000000000"),
ExtendedLocation: &secretsynccontroller.AzureResourceManagerCommonTypesExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-ssc-example/providers/Microsoft.ExtendedLocation/customLocations/example-custom-location"),
Type: pulumi.String(secretsynccontroller.ExtendedLocationTypeCustomLocation),
},
KeyvaultName: pulumi.String("example-ssc-key-vault"),
Location: pulumi.String("eastus"),
Objects: pulumi.String("array: |\n - |\n objectName: my-secret-object\n objectType: secret\n objectVersionHistory: 1"),
ResourceGroupName: pulumi.String("rg-ssc-example"),
Tags: pulumi.StringMap{
"example-tag": pulumi.String("example-tag-value"),
},
TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"),
})
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.secretsynccontroller.AzureKeyVaultSecretProviderClass;
import com.pulumi.azurenative.secretsynccontroller.AzureKeyVaultSecretProviderClassArgs;
import com.pulumi.azurenative.secretsynccontroller.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;
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 azureKeyVaultSecretProviderClass = new AzureKeyVaultSecretProviderClass("azureKeyVaultSecretProviderClass", AzureKeyVaultSecretProviderClassArgs.builder()
.azureKeyVaultSecretProviderClassName("akvspc-ssc-example")
.clientId("00000000-0000-0000-0000-000000000000")
.extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-ssc-example/providers/Microsoft.ExtendedLocation/customLocations/example-custom-location")
.type("CustomLocation")
.build())
.keyvaultName("example-ssc-key-vault")
.location("eastus")
.objects("""
array: |
- |
objectName: my-secret-object
objectType: secret
objectVersionHistory: 1 """)
.resourceGroupName("rg-ssc-example")
.tags(Map.of("example-tag", "example-tag-value"))
.tenantId("00000000-0000-0000-0000-000000000000")
.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:secretsynccontroller:AzureKeyVaultSecretProviderClass akvspc-ssc-example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecretSyncController/azureKeyVaultSecretProviderClasses/{azureKeyVaultSecretProviderClassName}
Content copied to clipboard
Properties
Link copied to clipboard
The complex type of the extended location.
Link copied to clipboard
The name of the Azure Key Vault to sync secrets from.
Link copied to clipboard
Provisioning state of the AzureKeyVaultSecretProviderClass instance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.