We recommend using Azure Native.
published on Tuesday, Jul 14, 2026 by Pulumi
We recommend using Azure Native.
published on Tuesday, Jul 14, 2026 by Pulumi
Manages a NetApp Files Volume Bucket. Buckets expose the contents of an Azure NetApp Files volume (or a sub-path within it) as an S3-compatible object endpoint via the Azure NetApp Files Object REST API.
Use this resource to create subsequent buckets on a volume. This resource does not manage the bucket server (FQDN and certificate); it reuses the server configuration established by the first bucket on the volume.
Note: The first bucket on a volume must be created with the
azure.netapp.VolumeBucketWithServerresource, which sets up the shared bucket server (FQDN and certificate). Every additional bucket on the same volume is then created with this server-less resource. Declaring aserverblock on more than one bucket would overwrite the shared server configuration, which is why this resource intentionally does not expose one.
Note: The Object REST API feature is in preview and must be registered on the subscription via
Microsoft.NetApp / ANFEnableObjectRESTAPIbefore buckets can be created. See Configure access to the Azure NetApp Files Object REST API for the registration command and Key Vault prerequisites.
Note: Buckets are supported on cool-access and large NetApp volumes. Buckets are not supported on cache volumes. Deleting the parent volume cascade-deletes its buckets.
Example Usage
This example creates the first bucket on the volume with azure.netapp.VolumeBucketWithServer (which establishes the server) and then adds a second, server-less bucket with azure.netapp.VolumeBucket.
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as std from "@pulumi/std";
import * as tls from "@pulumi/tls";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
name: "example-vnet",
location: example.location,
resourceGroupName: example.name,
addressSpaces: ["10.0.0.0/16"],
});
const exampleSubnet = new azure.network.Subnet("example", {
name: "example-delegated",
resourceGroupName: example.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["10.0.2.0/24"],
delegations: [{
name: "netapp",
serviceDelegation: {
name: "Microsoft.Netapp/volumes",
actions: [
"Microsoft.Network/networkinterfaces/*",
"Microsoft.Network/virtualNetworks/subnets/join/action",
],
},
}],
});
const exampleAccount = new azure.netapp.Account("example", {
name: "example-anfaccount",
location: example.location,
resourceGroupName: example.name,
});
const examplePool = new azure.netapp.Pool("example", {
name: "example-anfpool",
location: example.location,
resourceGroupName: example.name,
accountName: exampleAccount.name,
serviceLevel: "Standard",
sizeInTb: 4,
});
const exampleVolume = new azure.netapp.Volume("example", {
name: "example-anfvolume",
location: example.location,
resourceGroupName: example.name,
accountName: exampleAccount.name,
poolName: examplePool.name,
volumePath: "example-vol",
serviceLevel: "Standard",
subnetId: exampleSubnet.id,
storageQuotaInGb: 100,
protocols: ["NFSv3"],
});
const bucket = new tls.index.PrivateKey("bucket", {
algorithm: "RSA",
rsaBits: 2048,
});
const bucketSelfSignedCert = new tls.index.SelfSignedCert("bucket", {
privateKeyPem: bucket.privateKeyPem,
subject: [{
commonName: "example-bucket.example.internal",
}],
dnsNames: ["example-bucket.example.internal"],
validityPeriodHours: 8760,
allowedUses: [
"key_encipherment",
"digital_signature",
"server_auth",
],
});
// First bucket - establishes the shared bucket server.
const first = new azure.netapp.VolumeBucketWithServer("first", {
name: "example-bucket-first",
volumeId: exampleVolume.id,
fileSystemNfsUser: {
groupId: 1000,
userId: 1000,
},
server: {
fqdn: "example-bucket.example.internal",
certificatePem: std.base64encode({
input: `${bucketSelfSignedCert.certPem}${bucket.privateKeyPem}`,
}).then(invoke => invoke.result),
},
});
// Subsequent bucket - reuses the server configured by the first bucket.
const exampleVolumeBucket = new azure.netapp.VolumeBucket("example", {
name: "example-bucket-second",
volumeId: exampleVolume.id,
fileSystemNfsUser: {
groupId: 2000,
userId: 2000,
},
}, {
dependsOn: [first],
});
import pulumi
import pulumi_azure as azure
import pulumi_std as std
import pulumi_tls as tls
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("example",
name="example-vnet",
location=example.location,
resource_group_name=example.name,
address_spaces=["10.0.0.0/16"])
example_subnet = azure.network.Subnet("example",
name="example-delegated",
resource_group_name=example.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10.0.2.0/24"],
delegations=[{
"name": "netapp",
"service_delegation": {
"name": "Microsoft.Netapp/volumes",
"actions": [
"Microsoft.Network/networkinterfaces/*",
"Microsoft.Network/virtualNetworks/subnets/join/action",
],
},
}])
example_account = azure.netapp.Account("example",
name="example-anfaccount",
location=example.location,
resource_group_name=example.name)
example_pool = azure.netapp.Pool("example",
name="example-anfpool",
location=example.location,
resource_group_name=example.name,
account_name=example_account.name,
service_level="Standard",
size_in_tb=4)
example_volume = azure.netapp.Volume("example",
name="example-anfvolume",
location=example.location,
resource_group_name=example.name,
account_name=example_account.name,
pool_name=example_pool.name,
volume_path="example-vol",
service_level="Standard",
subnet_id=example_subnet.id,
storage_quota_in_gb=100,
protocols=["NFSv3"])
bucket = tls.PrivateKey("bucket",
algorithm=RSA,
rsa_bits=2048)
bucket_self_signed_cert = tls.SelfSignedCert("bucket",
private_key_pem=bucket.private_key_pem,
subject=[{
commonName: example-bucket.example.internal,
}],
dns_names=[example-bucket.example.internal],
validity_period_hours=8760,
allowed_uses=[
key_encipherment,
digital_signature,
server_auth,
])
# First bucket - establishes the shared bucket server.
first = azure.netapp.VolumeBucketWithServer("first",
name="example-bucket-first",
volume_id=example_volume.id,
file_system_nfs_user={
"group_id": 1000,
"user_id": 1000,
},
server={
"fqdn": "example-bucket.example.internal",
"certificate_pem": std.base64encode(input=f"{bucket_self_signed_cert['certPem']}{bucket['privateKeyPem']}").result,
})
# Subsequent bucket - reuses the server configured by the first bucket.
example_volume_bucket = azure.netapp.VolumeBucket("example",
name="example-bucket-second",
volume_id=example_volume.id,
file_system_nfs_user={
"group_id": 2000,
"user_id": 2000,
},
opts = pulumi.ResourceOptions(depends_on=[first]))
package main
import (
"fmt"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi-tls/sdk/go/tls"
"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
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
Name: pulumi.String("example-vnet"),
Location: example.Location,
ResourceGroupName: example.Name,
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
Name: pulumi.String("example-delegated"),
ResourceGroupName: example.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.2.0/24"),
},
Delegations: network.SubnetDelegationArray{
&network.SubnetDelegationArgs{
Name: pulumi.String("netapp"),
ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
Name: pulumi.String("Microsoft.Netapp/volumes"),
Actions: pulumi.StringArray{
pulumi.String("Microsoft.Network/networkinterfaces/*"),
pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
},
},
},
},
})
if err != nil {
return err
}
exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{
Name: pulumi.String("example-anfaccount"),
Location: example.Location,
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
examplePool, err := netapp.NewPool(ctx, "example", &netapp.PoolArgs{
Name: pulumi.String("example-anfpool"),
Location: example.Location,
ResourceGroupName: example.Name,
AccountName: exampleAccount.Name,
ServiceLevel: pulumi.String("Standard"),
SizeInTb: pulumi.Int(4),
})
if err != nil {
return err
}
exampleVolume, err := netapp.NewVolume(ctx, "example", &netapp.VolumeArgs{
Name: pulumi.String("example-anfvolume"),
Location: example.Location,
ResourceGroupName: example.Name,
AccountName: exampleAccount.Name,
PoolName: examplePool.Name,
VolumePath: pulumi.String("example-vol"),
ServiceLevel: pulumi.String("Standard"),
SubnetId: exampleSubnet.ID(),
StorageQuotaInGb: pulumi.Int(100),
Protocols: pulumi.StringArray{
pulumi.String("NFSv3"),
},
})
if err != nil {
return err
}
bucket, err := tls.NewPrivateKey(ctx, "bucket", &tls.PrivateKeyArgs{
Algorithm: "RSA",
RsaBits: 2048,
})
if err != nil {
return err
}
bucketSelfSignedCert, err := tls.NewSelfSignedCert(ctx, "bucket", &tls.SelfSignedCertArgs{
PrivateKeyPem: bucket.PrivateKeyPem,
Subject: []map[string]interface{}{
map[string]interface{}{
"commonName": "example-bucket.example.internal",
},
},
DnsNames: []string{
"example-bucket.example.internal",
},
ValidityPeriodHours: 8760,
AllowedUses: []string{
"key_encipherment",
"digital_signature",
"server_auth",
},
})
if err != nil {
return err
}
invokeBase64encode, err := std.Base64encode(ctx, &std.Base64encodeArgs{
Input: fmt.Sprintf("%v%v", bucketSelfSignedCert.CertPem, bucket.PrivateKeyPem),
}, nil)
if err != nil {
return err
}
// First bucket - establishes the shared bucket server.
first, err := netapp.NewVolumeBucketWithServer(ctx, "first", &netapp.VolumeBucketWithServerArgs{
Name: pulumi.String("example-bucket-first"),
VolumeId: exampleVolume.ID(),
FileSystemNfsUser: &netapp.VolumeBucketWithServerFileSystemNfsUserArgs{
GroupId: pulumi.Int(1000),
UserId: pulumi.Int(1000),
},
Server: &netapp.VolumeBucketWithServerServerArgs{
Fqdn: pulumi.String("example-bucket.example.internal"),
CertificatePem: pulumi.String(invokeBase64encode.Result),
},
})
if err != nil {
return err
}
// Subsequent bucket - reuses the server configured by the first bucket.
_, err = netapp.NewVolumeBucket(ctx, "example", &netapp.VolumeBucketArgs{
Name: pulumi.String("example-bucket-second"),
VolumeId: exampleVolume.ID(),
FileSystemNfsUser: &netapp.VolumeBucketFileSystemNfsUserArgs{
GroupId: pulumi.Int(2000),
UserId: pulumi.Int(2000),
},
}, pulumi.DependsOn([]pulumi.Resource{
first,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Std = Pulumi.Std;
using Tls = Pulumi.Tls;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
{
Name = "example-vnet",
Location = example.Location,
ResourceGroupName = example.Name,
AddressSpaces = new[]
{
"10.0.0.0/16",
},
});
var exampleSubnet = new Azure.Network.Subnet("example", new()
{
Name = "example-delegated",
ResourceGroupName = example.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes = new[]
{
"10.0.2.0/24",
},
Delegations = new[]
{
new Azure.Network.Inputs.SubnetDelegationArgs
{
Name = "netapp",
ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
{
Name = "Microsoft.Netapp/volumes",
Actions = new[]
{
"Microsoft.Network/networkinterfaces/*",
"Microsoft.Network/virtualNetworks/subnets/join/action",
},
},
},
},
});
var exampleAccount = new Azure.NetApp.Account("example", new()
{
Name = "example-anfaccount",
Location = example.Location,
ResourceGroupName = example.Name,
});
var examplePool = new Azure.NetApp.Pool("example", new()
{
Name = "example-anfpool",
Location = example.Location,
ResourceGroupName = example.Name,
AccountName = exampleAccount.Name,
ServiceLevel = "Standard",
SizeInTb = 4,
});
var exampleVolume = new Azure.NetApp.Volume("example", new()
{
Name = "example-anfvolume",
Location = example.Location,
ResourceGroupName = example.Name,
AccountName = exampleAccount.Name,
PoolName = examplePool.Name,
VolumePath = "example-vol",
ServiceLevel = "Standard",
SubnetId = exampleSubnet.Id,
StorageQuotaInGb = 100,
Protocols = new[]
{
"NFSv3",
},
});
var bucket = new Tls.PrivateKey("bucket", new()
{
Algorithm = "RSA",
RsaBits = 2048,
});
var bucketSelfSignedCert = new Tls.SelfSignedCert("bucket", new()
{
PrivateKeyPem = bucket.PrivateKeyPem,
Subject = new[]
{
{
{ "commonName", "example-bucket.example.internal" },
},
},
DnsNames = new[]
{
"example-bucket.example.internal",
},
ValidityPeriodHours = 8760,
AllowedUses = new[]
{
"key_encipherment",
"digital_signature",
"server_auth",
},
});
// First bucket - establishes the shared bucket server.
var first = new Azure.NetApp.VolumeBucketWithServer("first", new()
{
Name = "example-bucket-first",
VolumeId = exampleVolume.Id,
FileSystemNfsUser = new Azure.NetApp.Inputs.VolumeBucketWithServerFileSystemNfsUserArgs
{
GroupId = 1000,
UserId = 1000,
},
Server = new Azure.NetApp.Inputs.VolumeBucketWithServerServerArgs
{
Fqdn = "example-bucket.example.internal",
CertificatePem = Std.Base64encode.Invoke(new()
{
Input = $"{bucketSelfSignedCert.CertPem}{bucket.PrivateKeyPem}",
}).Apply(invoke => invoke.Result),
},
});
// Subsequent bucket - reuses the server configured by the first bucket.
var exampleVolumeBucket = new Azure.NetApp.VolumeBucket("example", new()
{
Name = "example-bucket-second",
VolumeId = exampleVolume.Id,
FileSystemNfsUser = new Azure.NetApp.Inputs.VolumeBucketFileSystemNfsUserArgs
{
GroupId = 2000,
UserId = 2000,
},
}, new CustomResourceOptions
{
DependsOn =
{
first,
},
});
});
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.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
import com.pulumi.azure.netapp.Account;
import com.pulumi.azure.netapp.AccountArgs;
import com.pulumi.azure.netapp.Pool;
import com.pulumi.azure.netapp.PoolArgs;
import com.pulumi.azure.netapp.Volume;
import com.pulumi.azure.netapp.VolumeArgs;
import com.pulumi.tls.PrivateKey;
import com.pulumi.tls.PrivateKeyArgs;
import com.pulumi.tls.SelfSignedCert;
import com.pulumi.tls.SelfSignedCertArgs;
import com.pulumi.azure.netapp.VolumeBucketWithServer;
import com.pulumi.azure.netapp.VolumeBucketWithServerArgs;
import com.pulumi.azure.netapp.inputs.VolumeBucketWithServerFileSystemNfsUserArgs;
import com.pulumi.azure.netapp.inputs.VolumeBucketWithServerServerArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.Base64encodeArgs;
import com.pulumi.azure.netapp.VolumeBucket;
import com.pulumi.azure.netapp.VolumeBucketArgs;
import com.pulumi.azure.netapp.inputs.VolumeBucketFileSystemNfsUserArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.ArrayList;
import java.util.Arrays;
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());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("example-vnet")
.location(example.location())
.resourceGroupName(example.name())
.addressSpaces("10.0.0.0/16")
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.name("example-delegated")
.resourceGroupName(example.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.2.0/24")
.delegations(SubnetDelegationArgs.builder()
.name("netapp")
.serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
.name("Microsoft.Netapp/volumes")
.actions(
"Microsoft.Network/networkinterfaces/*",
"Microsoft.Network/virtualNetworks/subnets/join/action")
.build())
.build())
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("example-anfaccount")
.location(example.location())
.resourceGroupName(example.name())
.build());
var examplePool = new Pool("examplePool", PoolArgs.builder()
.name("example-anfpool")
.location(example.location())
.resourceGroupName(example.name())
.accountName(exampleAccount.name())
.serviceLevel("Standard")
.sizeInTb(4)
.build());
var exampleVolume = new Volume("exampleVolume", VolumeArgs.builder()
.name("example-anfvolume")
.location(example.location())
.resourceGroupName(example.name())
.accountName(exampleAccount.name())
.poolName(examplePool.name())
.volumePath("example-vol")
.serviceLevel("Standard")
.subnetId(exampleSubnet.id())
.storageQuotaInGb(100)
.protocols("NFSv3")
.build());
var bucket = new PrivateKey("bucket", PrivateKeyArgs.builder()
.algorithm("RSA")
.rsaBits(2048)
.build());
var bucketSelfSignedCert = new SelfSignedCert("bucketSelfSignedCert", SelfSignedCertArgs.builder()
.privateKeyPem(bucket.privateKeyPem())
.subject(Arrays.asList(Map.of("commonName", "example-bucket.example.internal")))
.dnsNames(Arrays.asList("example-bucket.example.internal"))
.validityPeriodHours(8760)
.allowedUses(Arrays.asList(
"key_encipherment",
"digital_signature",
"server_auth"))
.build());
// First bucket - establishes the shared bucket server.
var first = new VolumeBucketWithServer("first", VolumeBucketWithServerArgs.builder()
.name("example-bucket-first")
.volumeId(exampleVolume.id())
.fileSystemNfsUser(VolumeBucketWithServerFileSystemNfsUserArgs.builder()
.groupId(1000)
.userId(1000)
.build())
.server(VolumeBucketWithServerServerArgs.builder()
.fqdn("example-bucket.example.internal")
.certificatePem(StdFunctions.base64encode(Base64encodeArgs.builder()
.input(String.format("%s%s", bucketSelfSignedCert.certPem(),bucket.privateKeyPem()))
.build()).result())
.build())
.build());
// Subsequent bucket - reuses the server configured by the first bucket.
var exampleVolumeBucket = new VolumeBucket("exampleVolumeBucket", VolumeBucketArgs.builder()
.name("example-bucket-second")
.volumeId(exampleVolume.id())
.fileSystemNfsUser(VolumeBucketFileSystemNfsUserArgs.builder()
.groupId(2000)
.userId(2000)
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(first)
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-vnet
location: ${example.location}
resourceGroupName: ${example.name}
addressSpaces:
- 10.0.0.0/16
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: example-delegated
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.0.2.0/24
delegations:
- name: netapp
serviceDelegation:
name: Microsoft.Netapp/volumes
actions:
- Microsoft.Network/networkinterfaces/*
- Microsoft.Network/virtualNetworks/subnets/join/action
exampleAccount:
type: azure:netapp:Account
name: example
properties:
name: example-anfaccount
location: ${example.location}
resourceGroupName: ${example.name}
examplePool:
type: azure:netapp:Pool
name: example
properties:
name: example-anfpool
location: ${example.location}
resourceGroupName: ${example.name}
accountName: ${exampleAccount.name}
serviceLevel: Standard
sizeInTb: 4
exampleVolume:
type: azure:netapp:Volume
name: example
properties:
name: example-anfvolume
location: ${example.location}
resourceGroupName: ${example.name}
accountName: ${exampleAccount.name}
poolName: ${examplePool.name}
volumePath: example-vol
serviceLevel: Standard
subnetId: ${exampleSubnet.id}
storageQuotaInGb: 100
protocols:
- NFSv3
bucket:
type: tls:PrivateKey
properties:
algorithm: RSA
rsaBits: 2048
bucketSelfSignedCert:
type: tls:SelfSignedCert
name: bucket
properties:
privateKeyPem: ${bucket.privateKeyPem}
subject:
- commonName: example-bucket.example.internal
dnsNames:
- example-bucket.example.internal
validityPeriodHours: 8760
allowedUses:
- key_encipherment
- digital_signature
- server_auth
# First bucket - establishes the shared bucket server.
first:
type: azure:netapp:VolumeBucketWithServer
properties:
name: example-bucket-first
volumeId: ${exampleVolume.id}
fileSystemNfsUser:
groupId: 1000
userId: 1000
server:
fqdn: example-bucket.example.internal
certificatePem:
fn::invoke:
function: std:base64encode
arguments:
input: ${bucketSelfSignedCert.certPem}${bucket.privateKeyPem}
return: result
# Subsequent bucket - reuses the server configured by the first bucket.
exampleVolumeBucket:
type: azure:netapp:VolumeBucket
name: example
properties:
name: example-bucket-second
volumeId: ${exampleVolume.id}
fileSystemNfsUser:
groupId: 2000
userId: 2000
options:
dependsOn:
- ${first}
pulumi {
required_providers {
azure = {
source = "pulumi/azure"
}
std = {
source = "pulumi/std"
}
}
}
resource "azure_core_resourcegroup" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azure_network_virtualnetwork" "example" {
name = "example-vnet"
location = azure_core_resourcegroup.example.location
resource_group_name = azure_core_resourcegroup.example.name
address_spaces = ["10.0.0.0/16"]
}
resource "azure_network_subnet" "example" {
name = "example-delegated"
resource_group_name = azure_core_resourcegroup.example.name
virtual_network_name = azure_network_virtualnetwork.example.name
address_prefixes = ["10.0.2.0/24"]
delegations {
name = "netapp"
service_delegation = {
name = "Microsoft.Netapp/volumes"
actions = ["Microsoft.Network/networkinterfaces/*", "Microsoft.Network/virtualNetworks/subnets/join/action"]
}
}
}
resource "azure_netapp_account" "example" {
name = "example-anfaccount"
location = azure_core_resourcegroup.example.location
resource_group_name = azure_core_resourcegroup.example.name
}
resource "azure_netapp_pool" "example" {
name = "example-anfpool"
location = azure_core_resourcegroup.example.location
resource_group_name = azure_core_resourcegroup.example.name
account_name = azure_netapp_account.example.name
service_level = "Standard"
size_in_tb = 4
}
resource "azure_netapp_volume" "example" {
name = "example-anfvolume"
location = azure_core_resourcegroup.example.location
resource_group_name = azure_core_resourcegroup.example.name
account_name = azure_netapp_account.example.name
pool_name = azure_netapp_pool.example.name
volume_path = "example-vol"
service_level = "Standard"
subnet_id = azure_network_subnet.example.id
storage_quota_in_gb = 100
protocols = ["NFSv3"]
}
resource "tls_privatekey" "bucket" {
algorithm = "RSA"
rsa_bits = 2048
}
resource "tls_selfsignedcert" "bucket" {
private_key_pem = tls_privatekey.bucket.privateKeyPem
subject = [{
"commonName" = "example-bucket.example.internal"
}]
dns_names = ["example-bucket.example.internal"]
validity_period_hours = 8760
allowed_uses = ["key_encipherment", "digital_signature", "server_auth"]
}
# First bucket - establishes the shared bucket server.
resource "azure_netapp_volumebucketwithserver" "first" {
name = "example-bucket-first"
volume_id = azure_netapp_volume.example.id
file_system_nfs_user = {
group_id = 1000
user_id = 1000
}
server = {
fqdn = "example-bucket.example.internal"
certificate_pem = base64encode("${tls_selfsignedcert.bucket.certPem}${tls_privatekey.bucket.privateKeyPem}")
}
}
# Subsequent bucket - reuses the server configured by the first bucket.
resource "azure_netapp_volumebucket" "example" {
depends_on = [azure_netapp_volumebucketwithserver.first]
name = "example-bucket-second"
volume_id = azure_netapp_volume.example.id
file_system_nfs_user = {
group_id = 2000
user_id = 2000
}
}
API Providers
This resource uses the following Azure API Providers:
Microsoft.NetApp- 2026-01-01
Create VolumeBucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VolumeBucket(name: string, args: VolumeBucketArgs, opts?: CustomResourceOptions);@overload
def VolumeBucket(resource_name: str,
args: VolumeBucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VolumeBucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
volume_id: Optional[str] = None,
file_system_cifs_username: Optional[str] = None,
file_system_nfs_user: Optional[VolumeBucketFileSystemNfsUserArgs] = None,
key_vault: Optional[VolumeBucketKeyVaultArgs] = None,
name: Optional[str] = None,
path: Optional[str] = None,
permissions: Optional[str] = None)func NewVolumeBucket(ctx *Context, name string, args VolumeBucketArgs, opts ...ResourceOption) (*VolumeBucket, error)public VolumeBucket(string name, VolumeBucketArgs args, CustomResourceOptions? opts = null)
public VolumeBucket(String name, VolumeBucketArgs args)
public VolumeBucket(String name, VolumeBucketArgs args, CustomResourceOptions options)
type: azure:netapp:VolumeBucket
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure_netapp_volume_bucket" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VolumeBucketArgs
- 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 VolumeBucketArgs
- 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 VolumeBucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VolumeBucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VolumeBucketArgs
- 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 volumeBucketResource = new Azure.NetApp.VolumeBucket("volumeBucketResource", new()
{
VolumeId = "string",
FileSystemCifsUsername = "string",
FileSystemNfsUser = new Azure.NetApp.Inputs.VolumeBucketFileSystemNfsUserArgs
{
GroupId = 0,
UserId = 0,
},
KeyVault = new Azure.NetApp.Inputs.VolumeBucketKeyVaultArgs
{
CertificateKeyVaultUri = "string",
CertificateName = "string",
CredentialsKeyVaultUri = "string",
CredentialsSecretName = "string",
},
Name = "string",
Path = "string",
Permissions = "string",
});
example, err := netapp.NewVolumeBucket(ctx, "volumeBucketResource", &netapp.VolumeBucketArgs{
VolumeId: pulumi.String("string"),
FileSystemCifsUsername: pulumi.String("string"),
FileSystemNfsUser: &netapp.VolumeBucketFileSystemNfsUserArgs{
GroupId: pulumi.Int(0),
UserId: pulumi.Int(0),
},
KeyVault: &netapp.VolumeBucketKeyVaultArgs{
CertificateKeyVaultUri: pulumi.String("string"),
CertificateName: pulumi.String("string"),
CredentialsKeyVaultUri: pulumi.String("string"),
CredentialsSecretName: pulumi.String("string"),
},
Name: pulumi.String("string"),
Path: pulumi.String("string"),
Permissions: pulumi.String("string"),
})
resource "azure_netapp_volume_bucket" "volumeBucketResource" {
lifecycle {
create_before_destroy = true
}
volume_id = "string"
file_system_cifs_username = "string"
file_system_nfs_user = {
group_id = 0
user_id = 0
}
key_vault = {
certificate_key_vault_uri = "string"
certificate_name = "string"
credentials_key_vault_uri = "string"
credentials_secret_name = "string"
}
name = "string"
path = "string"
permissions = "string"
}
var volumeBucketResource = new VolumeBucket("volumeBucketResource", VolumeBucketArgs.builder()
.volumeId("string")
.fileSystemCifsUsername("string")
.fileSystemNfsUser(VolumeBucketFileSystemNfsUserArgs.builder()
.groupId(0)
.userId(0)
.build())
.keyVault(VolumeBucketKeyVaultArgs.builder()
.certificateKeyVaultUri("string")
.certificateName("string")
.credentialsKeyVaultUri("string")
.credentialsSecretName("string")
.build())
.name("string")
.path("string")
.permissions("string")
.build());
volume_bucket_resource = azure.netapp.VolumeBucket("volumeBucketResource",
volume_id="string",
file_system_cifs_username="string",
file_system_nfs_user={
"group_id": 0,
"user_id": 0,
},
key_vault={
"certificate_key_vault_uri": "string",
"certificate_name": "string",
"credentials_key_vault_uri": "string",
"credentials_secret_name": "string",
},
name="string",
path="string",
permissions="string")
const volumeBucketResource = new azure.netapp.VolumeBucket("volumeBucketResource", {
volumeId: "string",
fileSystemCifsUsername: "string",
fileSystemNfsUser: {
groupId: 0,
userId: 0,
},
keyVault: {
certificateKeyVaultUri: "string",
certificateName: "string",
credentialsKeyVaultUri: "string",
credentialsSecretName: "string",
},
name: "string",
path: "string",
permissions: "string",
});
type: azure:netapp:VolumeBucket
properties:
fileSystemCifsUsername: string
fileSystemNfsUser:
groupId: 0
userId: 0
keyVault:
certificateKeyVaultUri: string
certificateName: string
credentialsKeyVaultUri: string
credentialsSecretName: string
name: string
path: string
permissions: string
volumeId: string
VolumeBucket 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 VolumeBucket resource accepts the following input properties:
- Volume
Id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- File
System stringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - File
System VolumeNfs User Bucket File System Nfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - Key
Vault VolumeBucket Key Vault - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - Name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- Path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - Permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly.
- Volume
Id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- File
System stringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - File
System VolumeNfs User Bucket File System Nfs User Args - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - Key
Vault VolumeBucket Key Vault Args - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - Name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- Path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - Permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly.
- volume_
id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file_
system_ stringcifs_ username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file_
system_ objectnfs_ user - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key_
vault object - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly.
- volume
Id String - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file
System StringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file
System VolumeNfs User Bucket File System Nfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key
Vault VolumeBucket Key Vault - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name String
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path String
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions String
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly.
- volume
Id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file
System stringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file
System VolumeNfs User Bucket File System Nfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key
Vault VolumeBucket Key Vault - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly.
- volume_
id str - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file_
system_ strcifs_ username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file_
system_ Volumenfs_ user Bucket File System Nfs User Args - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key_
vault VolumeBucket Key Vault Args - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name str
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path str
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions str
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly.
- volume
Id String - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file
System StringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file
System Property MapNfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key
Vault Property Map - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name String
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path String
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions String
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly.
Outputs
All input properties are implicitly available as output properties. Additionally, the VolumeBucket resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- Server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- Server
Ip stringAddress - The IP address that backs the bucket endpoint.
- Status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- Id string
- The provider-assigned unique ID for this managed resource.
- Server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- Server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- Server
Ip stringAddress - The IP address that backs the bucket endpoint.
- Status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- id string
- The provider-assigned unique ID for this managed resource.
- server_
certificate_ stringcommon_ name - The Common Name (CN) of the bucket server certificate.
- server_
certificate_ stringexpiry_ date - The expiry date of the bucket server certificate, in RFC3339 format.
- server_
ip_ stringaddress - The IP address that backs the bucket endpoint.
- status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- id String
- The provider-assigned unique ID for this managed resource.
- server
Certificate StringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate StringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip StringAddress - The IP address that backs the bucket endpoint.
- status String
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- id string
- The provider-assigned unique ID for this managed resource.
- server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip stringAddress - The IP address that backs the bucket endpoint.
- status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- id str
- The provider-assigned unique ID for this managed resource.
- server_
certificate_ strcommon_ name - The Common Name (CN) of the bucket server certificate.
- server_
certificate_ strexpiry_ date - The expiry date of the bucket server certificate, in RFC3339 format.
- server_
ip_ straddress - The IP address that backs the bucket endpoint.
- status str
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
- id String
- The provider-assigned unique ID for this managed resource.
- server
Certificate StringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate StringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip StringAddress - The IP address that backs the bucket endpoint.
- status String
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive.
Look up Existing VolumeBucket Resource
Get an existing VolumeBucket 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?: VolumeBucketState, opts?: CustomResourceOptions): VolumeBucket@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
file_system_cifs_username: Optional[str] = None,
file_system_nfs_user: Optional[VolumeBucketFileSystemNfsUserArgs] = None,
key_vault: Optional[VolumeBucketKeyVaultArgs] = None,
name: Optional[str] = None,
path: Optional[str] = None,
permissions: Optional[str] = None,
server_certificate_common_name: Optional[str] = None,
server_certificate_expiry_date: Optional[str] = None,
server_ip_address: Optional[str] = None,
status: Optional[str] = None,
volume_id: Optional[str] = None) -> VolumeBucketfunc GetVolumeBucket(ctx *Context, name string, id IDInput, state *VolumeBucketState, opts ...ResourceOption) (*VolumeBucket, error)public static VolumeBucket Get(string name, Input<string> id, VolumeBucketState? state, CustomResourceOptions? opts = null)public static VolumeBucket get(String name, Output<String> id, VolumeBucketState state, CustomResourceOptions options)resources: _: type: azure:netapp:VolumeBucket get: id: ${id}import {
to = azure_netapp_volume_bucket.example
id = "${id}"
}
- 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.
- File
System stringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - File
System VolumeNfs User Bucket File System Nfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - Key
Vault VolumeBucket Key Vault - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - Name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- Path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - Permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly. - Server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- Server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- Server
Ip stringAddress - The IP address that backs the bucket endpoint.
- Status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive. - Volume
Id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- File
System stringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - File
System VolumeNfs User Bucket File System Nfs User Args - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - Key
Vault VolumeBucket Key Vault Args - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - Name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- Path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - Permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly. - Server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- Server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- Server
Ip stringAddress - The IP address that backs the bucket endpoint.
- Status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive. - Volume
Id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file_
system_ stringcifs_ username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file_
system_ objectnfs_ user - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key_
vault object - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly. - server_
certificate_ stringcommon_ name - The Common Name (CN) of the bucket server certificate.
- server_
certificate_ stringexpiry_ date - The expiry date of the bucket server certificate, in RFC3339 format.
- server_
ip_ stringaddress - The IP address that backs the bucket endpoint.
- status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive. - volume_
id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file
System StringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file
System VolumeNfs User Bucket File System Nfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key
Vault VolumeBucket Key Vault - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name String
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path String
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions String
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly. - server
Certificate StringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate StringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip StringAddress - The IP address that backs the bucket endpoint.
- status String
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive. - volume
Id String - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file
System stringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file
System VolumeNfs User Bucket File System Nfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key
Vault VolumeBucket Key Vault - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name string
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path string
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions string
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly. - server
Certificate stringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate stringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip stringAddress - The IP address that backs the bucket endpoint.
- status string
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive. - volume
Id string - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file_
system_ strcifs_ username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file_
system_ Volumenfs_ user Bucket File System Nfs User Args - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key_
vault VolumeBucket Key Vault Args - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name str
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path str
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions str
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly. - server_
certificate_ strcommon_ name - The Common Name (CN) of the bucket server certificate.
- server_
certificate_ strexpiry_ date - The expiry date of the bucket server certificate, in RFC3339 format.
- server_
ip_ straddress - The IP address that backs the bucket endpoint.
- status str
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive. - volume_
id str - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
- file
System StringCifs Username - The CIFS username used by the bucket when accessing volume data over SMB. Exactly one of
fileSystemNfsUserorfileSystemCifsUsernamemust be specified. - file
System Property MapNfs User - A
fileSystemNfsUserblock as defined below. Exactly one offileSystemNfsUserorfileSystemCifsUsernamemust be specified. - key
Vault Property Map - A
keyVaultblock as defined below. Used to store the generated bucket credentials in Azure Key Vault. - name String
- The S3-compatible name of the bucket. Must be 3-63 characters long, DNS-compliant (lowercase letters, digits, hyphens or periods), must start and end with a letter or number and must not look like an IPv4 address. Changing this forces a new resource to be created.
- path String
- The volume sub-path mounted inside the bucket. Defaults to
/. Changing this forces a new resource to be created. - permissions String
- The bucket permission level. Possible values are
ReadOnlyandReadWrite. Defaults toReadOnly. - server
Certificate StringCommon Name - The Common Name (CN) of the bucket server certificate.
- server
Certificate StringExpiry Date - The expiry date of the bucket server certificate, in RFC3339 format.
- server
Ip StringAddress - The IP address that backs the bucket endpoint.
- status String
- The credentials status of the bucket. Possible values are
NoCredentialsSet,CredentialsExpiredandActive. - volume
Id String - The ARM ID of the parent NetApp Volume the bucket attaches to. Changing this forces a new resource to be created.
Supporting Types
VolumeBucketFileSystemNfsUser, VolumeBucketFileSystemNfsUserArgs
VolumeBucketKeyVault, VolumeBucketKeyVaultArgs
- Certificate
Key stringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- Certificate
Name string - The name of the certificate object inside the Key Vault.
- Credentials
Key stringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys. May be the same vault as
certificateKeyVaultUribut the documentation recommends using two separate vaults. - Credentials
Secret stringName The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials. The Key Vault secret value is a JSON document withaccessKeyIdandsecretAccessKeyproperties.Note: When
keyVaultis used, the parent NetApp account must have a system-assigned managed identity (identity { type = "SystemAssigned" }onazure.netapp.Account). That identity is the principal that needs Key Vault access. Grant itGet, List, Update, Create, Import, ManageContacts, GetIssuers, ListIssuers, SetIssuers, DeleteIssuerscertificate permissions oncertificateKeyVaultUriandGet, List, Set, Deletesecret permissions oncredentialsKeyVaultUri.
- Certificate
Key stringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- Certificate
Name string - The name of the certificate object inside the Key Vault.
- Credentials
Key stringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys. May be the same vault as
certificateKeyVaultUribut the documentation recommends using two separate vaults. - Credentials
Secret stringName The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials. The Key Vault secret value is a JSON document withaccessKeyIdandsecretAccessKeyproperties.Note: When
keyVaultis used, the parent NetApp account must have a system-assigned managed identity (identity { type = "SystemAssigned" }onazure.netapp.Account). That identity is the principal that needs Key Vault access. Grant itGet, List, Update, Create, Import, ManageContacts, GetIssuers, ListIssuers, SetIssuers, DeleteIssuerscertificate permissions oncertificateKeyVaultUriandGet, List, Set, Deletesecret permissions oncredentialsKeyVaultUri.
- certificate_
key_ stringvault_ uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate_
name string - The name of the certificate object inside the Key Vault.
- credentials_
key_ stringvault_ uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys. May be the same vault as
certificateKeyVaultUribut the documentation recommends using two separate vaults. - credentials_
secret_ stringname The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials. The Key Vault secret value is a JSON document withaccessKeyIdandsecretAccessKeyproperties.Note: When
keyVaultis used, the parent NetApp account must have a system-assigned managed identity (identity { type = "SystemAssigned" }onazure.netapp.Account). That identity is the principal that needs Key Vault access. Grant itGet, List, Update, Create, Import, ManageContacts, GetIssuers, ListIssuers, SetIssuers, DeleteIssuerscertificate permissions oncertificateKeyVaultUriandGet, List, Set, Deletesecret permissions oncredentialsKeyVaultUri.
- certificate
Key StringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate
Name String - The name of the certificate object inside the Key Vault.
- credentials
Key StringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys. May be the same vault as
certificateKeyVaultUribut the documentation recommends using two separate vaults. - credentials
Secret StringName The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials. The Key Vault secret value is a JSON document withaccessKeyIdandsecretAccessKeyproperties.Note: When
keyVaultis used, the parent NetApp account must have a system-assigned managed identity (identity { type = "SystemAssigned" }onazure.netapp.Account). That identity is the principal that needs Key Vault access. Grant itGet, List, Update, Create, Import, ManageContacts, GetIssuers, ListIssuers, SetIssuers, DeleteIssuerscertificate permissions oncertificateKeyVaultUriandGet, List, Set, Deletesecret permissions oncredentialsKeyVaultUri.
- certificate
Key stringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate
Name string - The name of the certificate object inside the Key Vault.
- credentials
Key stringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys. May be the same vault as
certificateKeyVaultUribut the documentation recommends using two separate vaults. - credentials
Secret stringName The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials. The Key Vault secret value is a JSON document withaccessKeyIdandsecretAccessKeyproperties.Note: When
keyVaultis used, the parent NetApp account must have a system-assigned managed identity (identity { type = "SystemAssigned" }onazure.netapp.Account). That identity is the principal that needs Key Vault access. Grant itGet, List, Update, Create, Import, ManageContacts, GetIssuers, ListIssuers, SetIssuers, DeleteIssuerscertificate permissions oncertificateKeyVaultUriandGet, List, Set, Deletesecret permissions oncredentialsKeyVaultUri.
- certificate_
key_ strvault_ uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate_
name str - The name of the certificate object inside the Key Vault.
- credentials_
key_ strvault_ uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys. May be the same vault as
certificateKeyVaultUribut the documentation recommends using two separate vaults. - credentials_
secret_ strname The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials. The Key Vault secret value is a JSON document withaccessKeyIdandsecretAccessKeyproperties.Note: When
keyVaultis used, the parent NetApp account must have a system-assigned managed identity (identity { type = "SystemAssigned" }onazure.netapp.Account). That identity is the principal that needs Key Vault access. Grant itGet, List, Update, Create, Import, ManageContacts, GetIssuers, ListIssuers, SetIssuers, DeleteIssuerscertificate permissions oncertificateKeyVaultUriandGet, List, Set, Deletesecret permissions oncredentialsKeyVaultUri.
- certificate
Key StringVault Uri - The URI of the Azure Key Vault that stores the bucket server certificate.
- certificate
Name String - The name of the certificate object inside the Key Vault.
- credentials
Key StringVault Uri - The URI of the Azure Key Vault used to store the generated bucket access and secret keys. May be the same vault as
certificateKeyVaultUribut the documentation recommends using two separate vaults. - credentials
Secret StringName The name of the secret in
credentialsKeyVaultUrithat stores the generated bucket credentials. The Key Vault secret value is a JSON document withaccessKeyIdandsecretAccessKeyproperties.Note: When
keyVaultis used, the parent NetApp account must have a system-assigned managed identity (identity { type = "SystemAssigned" }onazure.netapp.Account). That identity is the principal that needs Key Vault access. Grant itGet, List, Update, Create, Import, ManageContacts, GetIssuers, ListIssuers, SetIssuers, DeleteIssuerscertificate permissions oncertificateKeyVaultUriandGet, List, Set, Deletesecret permissions oncredentialsKeyVaultUri.
Import
NetApp Volume Buckets can be imported using the resource id, e.g.
$ pulumi import azure:netapp/volumeBucket:VolumeBucket example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/vol1/buckets/bucket1
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
azurermTerraform Provider.
We recommend using Azure Native.
published on Tuesday, Jul 14, 2026 by Pulumi