1. Packages
  2. Azure Classic
  3. API Docs
  4. netapp
  5. AccountEncryption

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.netapp.AccountEncryption

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a NetApp Account Encryption Resource.

    For more information about Azure NetApp Files Customer-Managed Keys feature, please refer to Configure customer-managed keys for Azure NetApp Files volume encryption

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const current = azure.core.getClientConfig({});
    const exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("example", {
        name: "anf-user-assigned-identity",
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleKeyVault = new azure.keyvault.KeyVault("example", {
        name: "anfcmkakv",
        location: example.location,
        resourceGroupName: example.name,
        enabledForDiskEncryption: true,
        enabledForDeployment: true,
        enabledForTemplateDeployment: true,
        purgeProtectionEnabled: true,
        tenantId: "00000000-0000-0000-0000-000000000000",
        skuName: "standard",
        accessPolicies: [
            {
                tenantId: "00000000-0000-0000-0000-000000000000",
                objectId: current.then(current => current.objectId),
                keyPermissions: [
                    "Get",
                    "Create",
                    "Delete",
                    "WrapKey",
                    "UnwrapKey",
                    "GetRotationPolicy",
                    "SetRotationPolicy",
                ],
            },
            {
                tenantId: "00000000-0000-0000-0000-000000000000",
                objectId: exampleUserAssignedIdentity.principalId,
                keyPermissions: [
                    "Get",
                    "Encrypt",
                    "Decrypt",
                ],
            },
        ],
    });
    const exampleKey = new azure.keyvault.Key("example", {
        name: "anfencryptionkey",
        keyVaultId: exampleKeyVault.id,
        keyType: "RSA",
        keySize: 2048,
        keyOpts: [
            "decrypt",
            "encrypt",
            "sign",
            "unwrapKey",
            "verify",
            "wrapKey",
        ],
    });
    const exampleAccount = new azure.netapp.Account("example", {
        name: "netappaccount",
        location: example.location,
        resourceGroupName: example.name,
        identity: {
            type: "UserAssigned",
            identityIds: [exampleUserAssignedIdentity.id],
        },
    });
    const exampleAccountEncryption = new azure.netapp.AccountEncryption("example", {
        netappAccountId: exampleAccount.id,
        userAssignedIdentityId: exampleUserAssignedIdentity.id,
        encryptionKey: exampleKey.versionlessId,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    current = azure.core.get_client_config()
    example_user_assigned_identity = azure.authorization.UserAssignedIdentity("example",
        name="anf-user-assigned-identity",
        location=example.location,
        resource_group_name=example.name)
    example_key_vault = azure.keyvault.KeyVault("example",
        name="anfcmkakv",
        location=example.location,
        resource_group_name=example.name,
        enabled_for_disk_encryption=True,
        enabled_for_deployment=True,
        enabled_for_template_deployment=True,
        purge_protection_enabled=True,
        tenant_id="00000000-0000-0000-0000-000000000000",
        sku_name="standard",
        access_policies=[
            {
                "tenant_id": "00000000-0000-0000-0000-000000000000",
                "object_id": current.object_id,
                "key_permissions": [
                    "Get",
                    "Create",
                    "Delete",
                    "WrapKey",
                    "UnwrapKey",
                    "GetRotationPolicy",
                    "SetRotationPolicy",
                ],
            },
            {
                "tenant_id": "00000000-0000-0000-0000-000000000000",
                "object_id": example_user_assigned_identity.principal_id,
                "key_permissions": [
                    "Get",
                    "Encrypt",
                    "Decrypt",
                ],
            },
        ])
    example_key = azure.keyvault.Key("example",
        name="anfencryptionkey",
        key_vault_id=example_key_vault.id,
        key_type="RSA",
        key_size=2048,
        key_opts=[
            "decrypt",
            "encrypt",
            "sign",
            "unwrapKey",
            "verify",
            "wrapKey",
        ])
    example_account = azure.netapp.Account("example",
        name="netappaccount",
        location=example.location,
        resource_group_name=example.name,
        identity={
            "type": "UserAssigned",
            "identity_ids": [example_user_assigned_identity.id],
        })
    example_account_encryption = azure.netapp.AccountEncryption("example",
        netapp_account_id=example_account.id,
        user_assigned_identity_id=example_user_assigned_identity.id,
        encryption_key=example_key.versionless_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
    			Name:              pulumi.String("anf-user-assigned-identity"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
    			Name:                         pulumi.String("anfcmkakv"),
    			Location:                     example.Location,
    			ResourceGroupName:            example.Name,
    			EnabledForDiskEncryption:     pulumi.Bool(true),
    			EnabledForDeployment:         pulumi.Bool(true),
    			EnabledForTemplateDeployment: pulumi.Bool(true),
    			PurgeProtectionEnabled:       pulumi.Bool(true),
    			TenantId:                     pulumi.String("00000000-0000-0000-0000-000000000000"),
    			SkuName:                      pulumi.String("standard"),
    			AccessPolicies: keyvault.KeyVaultAccessPolicyArray{
    				&keyvault.KeyVaultAccessPolicyArgs{
    					TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"),
    					ObjectId: pulumi.String(current.ObjectId),
    					KeyPermissions: pulumi.StringArray{
    						pulumi.String("Get"),
    						pulumi.String("Create"),
    						pulumi.String("Delete"),
    						pulumi.String("WrapKey"),
    						pulumi.String("UnwrapKey"),
    						pulumi.String("GetRotationPolicy"),
    						pulumi.String("SetRotationPolicy"),
    					},
    				},
    				&keyvault.KeyVaultAccessPolicyArgs{
    					TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"),
    					ObjectId: exampleUserAssignedIdentity.PrincipalId,
    					KeyPermissions: pulumi.StringArray{
    						pulumi.String("Get"),
    						pulumi.String("Encrypt"),
    						pulumi.String("Decrypt"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleKey, err := keyvault.NewKey(ctx, "example", &keyvault.KeyArgs{
    			Name:       pulumi.String("anfencryptionkey"),
    			KeyVaultId: exampleKeyVault.ID(),
    			KeyType:    pulumi.String("RSA"),
    			KeySize:    pulumi.Int(2048),
    			KeyOpts: pulumi.StringArray{
    				pulumi.String("decrypt"),
    				pulumi.String("encrypt"),
    				pulumi.String("sign"),
    				pulumi.String("unwrapKey"),
    				pulumi.String("verify"),
    				pulumi.String("wrapKey"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{
    			Name:              pulumi.String("netappaccount"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			Identity: &netapp.AccountIdentityArgs{
    				Type: pulumi.String("UserAssigned"),
    				IdentityIds: pulumi.StringArray{
    					exampleUserAssignedIdentity.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netapp.NewAccountEncryption(ctx, "example", &netapp.AccountEncryptionArgs{
    			NetappAccountId:        exampleAccount.ID(),
    			UserAssignedIdentityId: exampleUserAssignedIdentity.ID(),
    			EncryptionKey:          exampleKey.VersionlessId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var current = Azure.Core.GetClientConfig.Invoke();
    
        var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity("example", new()
        {
            Name = "anf-user-assigned-identity",
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
        {
            Name = "anfcmkakv",
            Location = example.Location,
            ResourceGroupName = example.Name,
            EnabledForDiskEncryption = true,
            EnabledForDeployment = true,
            EnabledForTemplateDeployment = true,
            PurgeProtectionEnabled = true,
            TenantId = "00000000-0000-0000-0000-000000000000",
            SkuName = "standard",
            AccessPolicies = new[]
            {
                new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
                {
                    TenantId = "00000000-0000-0000-0000-000000000000",
                    ObjectId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
                    KeyPermissions = new[]
                    {
                        "Get",
                        "Create",
                        "Delete",
                        "WrapKey",
                        "UnwrapKey",
                        "GetRotationPolicy",
                        "SetRotationPolicy",
                    },
                },
                new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
                {
                    TenantId = "00000000-0000-0000-0000-000000000000",
                    ObjectId = exampleUserAssignedIdentity.PrincipalId,
                    KeyPermissions = new[]
                    {
                        "Get",
                        "Encrypt",
                        "Decrypt",
                    },
                },
            },
        });
    
        var exampleKey = new Azure.KeyVault.Key("example", new()
        {
            Name = "anfencryptionkey",
            KeyVaultId = exampleKeyVault.Id,
            KeyType = "RSA",
            KeySize = 2048,
            KeyOpts = new[]
            {
                "decrypt",
                "encrypt",
                "sign",
                "unwrapKey",
                "verify",
                "wrapKey",
            },
        });
    
        var exampleAccount = new Azure.NetApp.Account("example", new()
        {
            Name = "netappaccount",
            Location = example.Location,
            ResourceGroupName = example.Name,
            Identity = new Azure.NetApp.Inputs.AccountIdentityArgs
            {
                Type = "UserAssigned",
                IdentityIds = new[]
                {
                    exampleUserAssignedIdentity.Id,
                },
            },
        });
    
        var exampleAccountEncryption = new Azure.NetApp.AccountEncryption("example", new()
        {
            NetappAccountId = exampleAccount.Id,
            UserAssignedIdentityId = exampleUserAssignedIdentity.Id,
            EncryptionKey = exampleKey.VersionlessId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.core.CoreFunctions;
    import com.pulumi.azure.authorization.UserAssignedIdentity;
    import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
    import com.pulumi.azure.keyvault.KeyVault;
    import com.pulumi.azure.keyvault.KeyVaultArgs;
    import com.pulumi.azure.keyvault.inputs.KeyVaultAccessPolicyArgs;
    import com.pulumi.azure.keyvault.Key;
    import com.pulumi.azure.keyvault.KeyArgs;
    import com.pulumi.azure.netapp.Account;
    import com.pulumi.azure.netapp.AccountArgs;
    import com.pulumi.azure.netapp.inputs.AccountIdentityArgs;
    import com.pulumi.azure.netapp.AccountEncryption;
    import com.pulumi.azure.netapp.AccountEncryptionArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            final var current = CoreFunctions.getClientConfig();
    
            var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()
                .name("anf-user-assigned-identity")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
                .name("anfcmkakv")
                .location(example.location())
                .resourceGroupName(example.name())
                .enabledForDiskEncryption(true)
                .enabledForDeployment(true)
                .enabledForTemplateDeployment(true)
                .purgeProtectionEnabled(true)
                .tenantId("00000000-0000-0000-0000-000000000000")
                .skuName("standard")
                .accessPolicies(            
                    KeyVaultAccessPolicyArgs.builder()
                        .tenantId("00000000-0000-0000-0000-000000000000")
                        .objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
                        .keyPermissions(                    
                            "Get",
                            "Create",
                            "Delete",
                            "WrapKey",
                            "UnwrapKey",
                            "GetRotationPolicy",
                            "SetRotationPolicy")
                        .build(),
                    KeyVaultAccessPolicyArgs.builder()
                        .tenantId("00000000-0000-0000-0000-000000000000")
                        .objectId(exampleUserAssignedIdentity.principalId())
                        .keyPermissions(                    
                            "Get",
                            "Encrypt",
                            "Decrypt")
                        .build())
                .build());
    
            var exampleKey = new Key("exampleKey", KeyArgs.builder()
                .name("anfencryptionkey")
                .keyVaultId(exampleKeyVault.id())
                .keyType("RSA")
                .keySize(2048)
                .keyOpts(            
                    "decrypt",
                    "encrypt",
                    "sign",
                    "unwrapKey",
                    "verify",
                    "wrapKey")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("netappaccount")
                .location(example.location())
                .resourceGroupName(example.name())
                .identity(AccountIdentityArgs.builder()
                    .type("UserAssigned")
                    .identityIds(exampleUserAssignedIdentity.id())
                    .build())
                .build());
    
            var exampleAccountEncryption = new AccountEncryption("exampleAccountEncryption", AccountEncryptionArgs.builder()
                .netappAccountId(exampleAccount.id())
                .userAssignedIdentityId(exampleUserAssignedIdentity.id())
                .encryptionKey(exampleKey.versionlessId())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleUserAssignedIdentity:
        type: azure:authorization:UserAssignedIdentity
        name: example
        properties:
          name: anf-user-assigned-identity
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleKeyVault:
        type: azure:keyvault:KeyVault
        name: example
        properties:
          name: anfcmkakv
          location: ${example.location}
          resourceGroupName: ${example.name}
          enabledForDiskEncryption: true
          enabledForDeployment: true
          enabledForTemplateDeployment: true
          purgeProtectionEnabled: true
          tenantId: 00000000-0000-0000-0000-000000000000
          skuName: standard
          accessPolicies:
            - tenantId: 00000000-0000-0000-0000-000000000000
              objectId: ${current.objectId}
              keyPermissions:
                - Get
                - Create
                - Delete
                - WrapKey
                - UnwrapKey
                - GetRotationPolicy
                - SetRotationPolicy
            - tenantId: 00000000-0000-0000-0000-000000000000
              objectId: ${exampleUserAssignedIdentity.principalId}
              keyPermissions:
                - Get
                - Encrypt
                - Decrypt
      exampleKey:
        type: azure:keyvault:Key
        name: example
        properties:
          name: anfencryptionkey
          keyVaultId: ${exampleKeyVault.id}
          keyType: RSA
          keySize: 2048
          keyOpts:
            - decrypt
            - encrypt
            - sign
            - unwrapKey
            - verify
            - wrapKey
      exampleAccount:
        type: azure:netapp:Account
        name: example
        properties:
          name: netappaccount
          location: ${example.location}
          resourceGroupName: ${example.name}
          identity:
            type: UserAssigned
            identityIds:
              - ${exampleUserAssignedIdentity.id}
      exampleAccountEncryption:
        type: azure:netapp:AccountEncryption
        name: example
        properties:
          netappAccountId: ${exampleAccount.id}
          userAssignedIdentityId: ${exampleUserAssignedIdentity.id}
          encryptionKey: ${exampleKey.versionlessId}
    variables:
      current:
        fn::invoke:
          Function: azure:core:getClientConfig
          Arguments: {}
    

    Create AccountEncryption Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountEncryption(name: string, args: AccountEncryptionArgs, opts?: CustomResourceOptions);
    @overload
    def AccountEncryption(resource_name: str,
                          args: AccountEncryptionArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountEncryption(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          encryption_key: Optional[str] = None,
                          netapp_account_id: Optional[str] = None,
                          system_assigned_identity_principal_id: Optional[str] = None,
                          user_assigned_identity_id: Optional[str] = None)
    func NewAccountEncryption(ctx *Context, name string, args AccountEncryptionArgs, opts ...ResourceOption) (*AccountEncryption, error)
    public AccountEncryption(string name, AccountEncryptionArgs args, CustomResourceOptions? opts = null)
    public AccountEncryption(String name, AccountEncryptionArgs args)
    public AccountEncryption(String name, AccountEncryptionArgs args, CustomResourceOptions options)
    
    type: azure:netapp:AccountEncryption
    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 AccountEncryptionArgs
    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 AccountEncryptionArgs
    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 AccountEncryptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountEncryptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountEncryptionArgs
    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 accountEncryptionResource = new Azure.NetApp.AccountEncryption("accountEncryptionResource", new()
    {
        EncryptionKey = "string",
        NetappAccountId = "string",
        SystemAssignedIdentityPrincipalId = "string",
        UserAssignedIdentityId = "string",
    });
    
    example, err := netapp.NewAccountEncryption(ctx, "accountEncryptionResource", &netapp.AccountEncryptionArgs{
    	EncryptionKey:                     pulumi.String("string"),
    	NetappAccountId:                   pulumi.String("string"),
    	SystemAssignedIdentityPrincipalId: pulumi.String("string"),
    	UserAssignedIdentityId:            pulumi.String("string"),
    })
    
    var accountEncryptionResource = new AccountEncryption("accountEncryptionResource", AccountEncryptionArgs.builder()
        .encryptionKey("string")
        .netappAccountId("string")
        .systemAssignedIdentityPrincipalId("string")
        .userAssignedIdentityId("string")
        .build());
    
    account_encryption_resource = azure.netapp.AccountEncryption("accountEncryptionResource",
        encryption_key="string",
        netapp_account_id="string",
        system_assigned_identity_principal_id="string",
        user_assigned_identity_id="string")
    
    const accountEncryptionResource = new azure.netapp.AccountEncryption("accountEncryptionResource", {
        encryptionKey: "string",
        netappAccountId: "string",
        systemAssignedIdentityPrincipalId: "string",
        userAssignedIdentityId: "string",
    });
    
    type: azure:netapp:AccountEncryption
    properties:
        encryptionKey: string
        netappAccountId: string
        systemAssignedIdentityPrincipalId: string
        userAssignedIdentityId: string
    

    AccountEncryption Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AccountEncryption resource accepts the following input properties:

    EncryptionKey string
    Specify the versionless ID of the encryption key.
    NetappAccountId string
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    SystemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    UserAssignedIdentityId string
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    EncryptionKey string
    Specify the versionless ID of the encryption key.
    NetappAccountId string
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    SystemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    UserAssignedIdentityId string
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryptionKey String
    Specify the versionless ID of the encryption key.
    netappAccountId String
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    systemAssignedIdentityPrincipalId String
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    userAssignedIdentityId String
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryptionKey string
    Specify the versionless ID of the encryption key.
    netappAccountId string
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    systemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    userAssignedIdentityId string
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryption_key str
    Specify the versionless ID of the encryption key.
    netapp_account_id str
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    system_assigned_identity_principal_id str
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    user_assigned_identity_id str
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryptionKey String
    Specify the versionless ID of the encryption key.
    netappAccountId String
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    systemAssignedIdentityPrincipalId String
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    userAssignedIdentityId String
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountEncryption resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AccountEncryption Resource

    Get an existing AccountEncryption resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccountEncryptionState, opts?: CustomResourceOptions): AccountEncryption
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            encryption_key: Optional[str] = None,
            netapp_account_id: Optional[str] = None,
            system_assigned_identity_principal_id: Optional[str] = None,
            user_assigned_identity_id: Optional[str] = None) -> AccountEncryption
    func GetAccountEncryption(ctx *Context, name string, id IDInput, state *AccountEncryptionState, opts ...ResourceOption) (*AccountEncryption, error)
    public static AccountEncryption Get(string name, Input<string> id, AccountEncryptionState? state, CustomResourceOptions? opts = null)
    public static AccountEncryption get(String name, Output<String> id, AccountEncryptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    EncryptionKey string
    Specify the versionless ID of the encryption key.
    NetappAccountId string
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    SystemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    UserAssignedIdentityId string
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    EncryptionKey string
    Specify the versionless ID of the encryption key.
    NetappAccountId string
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    SystemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    UserAssignedIdentityId string
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryptionKey String
    Specify the versionless ID of the encryption key.
    netappAccountId String
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    systemAssignedIdentityPrincipalId String
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    userAssignedIdentityId String
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryptionKey string
    Specify the versionless ID of the encryption key.
    netappAccountId string
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    systemAssignedIdentityPrincipalId string
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    userAssignedIdentityId string
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryption_key str
    Specify the versionless ID of the encryption key.
    netapp_account_id str
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    system_assigned_identity_principal_id str
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    user_assigned_identity_id str
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.
    encryptionKey String
    Specify the versionless ID of the encryption key.
    netappAccountId String
    The ID of the NetApp account where volume under it will have customer managed keys-based encryption enabled.
    systemAssignedIdentityPrincipalId String
    The ID of the System Assigned Manged Identity. Conflicts with user_assigned_identity_id.
    userAssignedIdentityId String
    The ID of the User Assigned Managed Identity. Conflicts with system_assigned_identity_principal_id.

    Import

    Account Encryption Resources can be imported using the resource id, e.g.

    $ pulumi import azure:netapp/accountEncryption:AccountEncryption example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi