We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.netapp.getAccountEncryption
Start a Neo task
Explain and create an azure.netapp.getAccountEncryption resource
Use this data source to access information about an existing NetApp Account Encryption Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.netapp.getAccountEncryption({
netappAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.netapp.get_account_encryption(netapp_account_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1")
pulumi.export("id", example.id)
package main
import (
"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 := netapp.LookupAccountEncryption(ctx, &netapp.LookupAccountEncryptionArgs{
NetappAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.NetApp.GetAccountEncryption.Invoke(new()
{
NetappAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getAccountEncryptionResult => getAccountEncryptionResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.netapp.NetappFunctions;
import com.pulumi.azure.netapp.inputs.GetAccountEncryptionArgs;
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) {
final var example = NetappFunctions.getAccountEncryption(GetAccountEncryptionArgs.builder()
.netappAccountId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1")
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:netapp:getAccountEncryption
arguments:
netappAccountId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.NetApp- 2025-06-01
Using getAccountEncryption
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAccountEncryption(args: GetAccountEncryptionArgs, opts?: InvokeOptions): Promise<GetAccountEncryptionResult>
function getAccountEncryptionOutput(args: GetAccountEncryptionOutputArgs, opts?: InvokeOptions): Output<GetAccountEncryptionResult>def get_account_encryption(netapp_account_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountEncryptionResult
def get_account_encryption_output(netapp_account_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountEncryptionResult]func LookupAccountEncryption(ctx *Context, args *LookupAccountEncryptionArgs, opts ...InvokeOption) (*LookupAccountEncryptionResult, error)
func LookupAccountEncryptionOutput(ctx *Context, args *LookupAccountEncryptionOutputArgs, opts ...InvokeOption) LookupAccountEncryptionResultOutput> Note: This function is named LookupAccountEncryption in the Go SDK.
public static class GetAccountEncryption
{
public static Task<GetAccountEncryptionResult> InvokeAsync(GetAccountEncryptionArgs args, InvokeOptions? opts = null)
public static Output<GetAccountEncryptionResult> Invoke(GetAccountEncryptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccountEncryptionResult> getAccountEncryption(GetAccountEncryptionArgs args, InvokeOptions options)
public static Output<GetAccountEncryptionResult> getAccountEncryption(GetAccountEncryptionArgs args, InvokeOptions options)
fn::invoke:
function: azure:netapp/getAccountEncryption:getAccountEncryption
arguments:
# arguments dictionaryThe following arguments are supported:
- Netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- Netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp
Account StringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp
Account stringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp_
account_ strid - The ID of the NetApp account where customer managed keys-based encryption is enabled.
- netapp
Account StringId - The ID of the NetApp account where customer managed keys-based encryption is enabled.
getAccountEncryption Result
The following output properties are available:
- Cross
Tenant stringKey Vault Resource Id - Encryption
Key string - Federated
Client stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Netapp
Account stringId - System
Assigned stringIdentity Principal Id - User
Assigned stringIdentity Id
- Cross
Tenant stringKey Vault Resource Id - Encryption
Key string - Federated
Client stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Netapp
Account stringId - System
Assigned stringIdentity Principal Id - User
Assigned stringIdentity Id
- cross
Tenant StringKey Vault Resource Id - encryption
Key String - federated
Client StringId - id String
- The provider-assigned unique ID for this managed resource.
- netapp
Account StringId - system
Assigned StringIdentity Principal Id - user
Assigned StringIdentity Id
- cross
Tenant stringKey Vault Resource Id - encryption
Key string - federated
Client stringId - id string
- The provider-assigned unique ID for this managed resource.
- netapp
Account stringId - system
Assigned stringIdentity Principal Id - user
Assigned stringIdentity Id
- cross_
tenant_ strkey_ vault_ resource_ id - encryption_
key str - federated_
client_ strid - id str
- The provider-assigned unique ID for this managed resource.
- netapp_
account_ strid - system_
assigned_ stridentity_ principal_ id - user_
assigned_ stridentity_ id
- cross
Tenant StringKey Vault Resource Id - encryption
Key String - federated
Client StringId - id String
- The provider-assigned unique ID for this managed resource.
- netapp
Account StringId - system
Assigned StringIdentity Principal Id - user
Assigned StringIdentity Id
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
