Microsoft.NetApp netAppAccounts/capacityPools/volumes
The netAppAccounts/capacityPools/volumes resource type can be deployed to: Resource groups.
To learn about resource group deployments, see Bicep or ARM template.
Template format
To create a Microsoft.NetApp/netAppAccounts/capacityPools/volumes resource, add the following Bicep or JSON to your template.
resource symbolicname 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes@2021-10-01' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
parent: resourceSymbolicName
properties: {
avsDataStore: 'string'
backupId: 'string'
capacityPoolResourceId: 'string'
coolAccess: bool
coolnessPeriod: int
creationToken: 'string'
dataProtection: {
backup: {
backupEnabled: bool
backupPolicyId: 'string'
policyEnforced: bool
vaultId: 'string'
}
replication: {
endpointType: 'string'
remoteVolumeRegion: 'string'
remoteVolumeResourceId: 'string'
replicationId: 'string'
replicationSchedule: 'string'
}
snapshot: {
snapshotPolicyId: 'string'
}
}
defaultGroupQuotaInKiBs: int
defaultUserQuotaInKiBs: int
enableSubvolumes: 'string'
encryptionKeySource: 'string'
exportPolicy: {
rules: [
{
allowedClients: 'string'
chownMode: 'string'
cifs: bool
hasRootAccess: bool
kerberos5iReadWrite: bool
kerberos5pReadWrite: bool
kerberos5ReadWrite: bool
nfsv3: bool
nfsv41: bool
ruleIndex: int
unixReadWrite: bool
}
]
}
isDefaultQuotaEnabled: bool
isRestoring: bool
kerberosEnabled: bool
ldapEnabled: bool
networkFeatures: 'string'
placementRules: [
{
key: 'string'
value: 'string'
}
]
protocolTypes: [
'string'
]
proximityPlacementGroup: 'string'
securityStyle: 'string'
serviceLevel: 'string'
smbContinuouslyAvailable: bool
smbEncryption: bool
snapshotDirectoryVisible: bool
snapshotId: 'string'
subnetId: 'string'
throughputMibps: int
unixPermissions: 'string'
usageThreshold: int
volumeSpecName: 'string'
volumeType: 'string'
}
}
Property values
netAppAccounts/capacityPools/volumes
| Name | Description | Value |
|---|---|---|
| type | The resource type For Bicep, set this value in the resource declaration. |
'Microsoft.NetApp/netAppAccounts/capacityPools/volumes' |
| apiVersion | The resource api version For Bicep, set this value in the resource declaration. |
'2021-10-01' |
| name | The resource name See how to set names and types for child resources in Bicep or JSON ARM templates. |
string (required) |
| location | Resource location | string (required) |
| tags | Tags are a list of key-value pairs that describe the resource | Dictionary of tag names and values. See Tags in templates |
| parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: capacityPools |
| properties | Volume properties | VolumeProperties (required) |
VolumeProperties
| Name | Description | Value |
|---|---|---|
| avsDataStore | Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose | 'Disabled' 'Enabled' |
| backupId | UUID v4 or resource identifier used to identify the Backup. | string |
| capacityPoolResourceId | Pool Resource Id used in case of creating a volume through volume group | string |
| coolAccess | Specifies whether Cool Access(tiering) is enabled for the volume. | bool |
| coolnessPeriod | Specifies the number of days after which data that is not accessed by clients will be tiered. | int |
| creationToken | A unique file path for the volume. Used when creating mount targets | string (required) |
| dataProtection | DataProtection type volumes include an object containing details of the replication | VolumePropertiesDataProtection |
| defaultGroupQuotaInKiBs | Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. | int |
| defaultUserQuotaInKiBs | Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . | int |
| enableSubvolumes | Flag indicating whether subvolume operations are enabled on the volume | 'Disabled' 'Enabled' |
| encryptionKeySource | Encryption Key Source. Possible values are: 'Microsoft.NetApp' | string |
| exportPolicy | Set of export policy rules | VolumePropertiesExportPolicy |
| isDefaultQuotaEnabled | Specifies if default quota is enabled for the volume. | bool |
| isRestoring | Restoring | bool |
| kerberosEnabled | Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later | bool |
| ldapEnabled | Specifies whether LDAP is enabled or not for a given NFS volume. | bool |
| networkFeatures | Basic network, or Standard features available to the volume. | 'Basic' 'Standard' |
| placementRules | Application specific placement rules for the particular volume | PlacementKeyValuePairs[] |
| protocolTypes | Set of protocol types, default NFSv3, CIFS for SMB protocol | string[] |
| proximityPlacementGroup | Proximity placement group associated with the volume | string |
| securityStyle | The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol | 'ntfs' 'unix' |
| serviceLevel | The service level of the file system | 'Premium' 'Standard' 'StandardZRS' 'Ultra' |
| smbContinuouslyAvailable | Enables continuously available share property for smb volume. Only applicable for SMB volume | bool |
| smbEncryption | Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later | bool |
| snapshotDirectoryVisible | If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (default to true). | bool |
| snapshotId | UUID v4 or resource identifier used to identify the Snapshot. | string |
| subnetId | The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes | string (required) |
| throughputMibps | Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType volume | int |
| unixPermissions | UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. | string |
| usageThreshold | Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. | int (required) |
| volumeSpecName | Volume spec name is the application specific designation or identifier for the particular volume in a volume group for e.g. data, log | string |
| volumeType | What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection | string |
VolumePropertiesDataProtection
| Name | Description | Value |
|---|---|---|
| backup | Volume Backup Properties | VolumeBackupProperties |
| replication | Replication properties | ReplicationObject |
| snapshot | Volume Snapshot Properties | VolumeSnapshotProperties |
VolumeBackupProperties
| Name | Description | Value |
|---|---|---|
| backupEnabled | Backup Enabled | bool |
| backupPolicyId | Backup Policy Resource ID | string |
| policyEnforced | Policy Enforced | bool |
| vaultId | Vault Resource ID | string |
ReplicationObject
| Name | Description | Value |
|---|---|---|
| endpointType | Indicates whether the local volume is the source or destination for the Volume Replication | 'dst' 'src' |
| remoteVolumeRegion | The remote region for the other end of the Volume Replication. | string |
| remoteVolumeResourceId | The resource ID of the remote volume. | string (required) |
| replicationId | Id | string |
| replicationSchedule | Schedule | '_10minutely' 'daily' 'hourly' |
VolumeSnapshotProperties
| Name | Description | Value |
|---|---|---|
| snapshotPolicyId | Snapshot Policy ResourceId | string |
VolumePropertiesExportPolicy
| Name | Description | Value |
|---|---|---|
| rules | Export policy rule | ExportPolicyRule[] |
ExportPolicyRule
| Name | Description | Value |
|---|---|---|
| allowedClients | Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names | string |
| chownMode | This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. | 'Restricted' 'Unrestricted' |
| cifs | Allows CIFS protocol | bool |
| hasRootAccess | Has root access to volume | bool |
| kerberos5iReadWrite | Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later | bool |
| kerberos5pReadWrite | Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later | bool |
| kerberos5ReadWrite | Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later | bool |
| nfsv3 | Allows NFSv3 protocol. Enable only for NFSv3 type volumes | bool |
| nfsv41 | Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes | bool |
| ruleIndex | Order index | int |
| unixReadWrite | Read and write access | bool |
PlacementKeyValuePairs
| Name | Description | Value |
|---|---|---|
| key | Key for an application specific parameter for the placement of volumes in the volume group | string (required) |
| value | Value for an application specific parameter for the placement of volumes in the volume group | string (required) |
Quickstart templates
The following quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Create new ANF resource with NFSV3/NFSv4.1 volume |
This template allows you to create a new Azure NetApp Files resource with a single Capacity pool and single volume configured with NFSV3 or NFSv4.1 protocol. They are all deployed together with Azure Virtual Network and Delegated subnet that are required for any volume to be created |
| Create new ANF resource with SMB volume |
This template allows you to create a new Azure NetApp Files resource with a single Capacity pool and single volume configured with SMB protocol. |