az netappfiles account

Manage Azure NetApp Files (ANF) Account Resources.

Commands

az netappfiles account ad

Manage Azure NetApp Files (ANF) Account active directories.

az netappfiles account ad add

Add an active directory to the account.

az netappfiles account ad list

List the active directories of an account.

az netappfiles account ad remove

Remove an active directory from the account.

az netappfiles account ad update

Updates an active directory to the account.

az netappfiles account backup

Manage Azure NetApp Files (ANF) Account Backup Resources.

az netappfiles account backup delete

Delete Backup for a Netapp Files (ANF) Account.

az netappfiles account backup list

Get list of all Azure NetApp Files (ANF) Account Backups.

az netappfiles account backup show

Get Backup for a Netapp Files (ANF) Account.

az netappfiles account backup-policy

Manage Azure NetApp Files (ANF) Backup Policy Resources.

az netappfiles account backup-policy create

Create a new Azure NetApp Files (ANF) backup policy.

az netappfiles account backup-policy delete

Delete the specified ANF backup policy.

az netappfiles account backup-policy list

List the ANF backup policy for the specified account.

az netappfiles account backup-policy show

Get the specified ANF backup policy.

az netappfiles account backup-policy update

Update the specified ANF backup policy.

az netappfiles account create

Create a new Azure NetApp Files (ANF) account. Note that active directories are added using the subgroup commands.

az netappfiles account delete

Delete the specified ANF account.

az netappfiles account list

List ANF accounts by subscription or by resource group name.

az netappfiles account set

Sets the tags or the active directory details for a specified ANF account. Sets the active directory property to exactly what is provided. If none is provided then the active directory is removed, i.e. provide empty [].

az netappfiles account show

Get the specified ANF account.

az netappfiles account update

Set/modify the tags for a specified ANF account.

az netappfiles account create

Create a new Azure NetApp Files (ANF) account. Note that active directories are added using the subgroup commands.

az netappfiles account create --account-name
                              --resource-group
                              [--encryption]
                              [--location]
                              [--tags]

Examples

Create an ANF account

az netappfiles account create -g mygroup --name myname -l location --tags testtag1=mytag1 testtag3=mytagg

Required Parameters

--account-name --name -a -n

The name of the ANF account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--encryption

Encryption settings.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--tags

Space-separated tags in key[=value] format.

az netappfiles account delete

Delete the specified ANF account.

az netappfiles account delete [--account-name]
                              [--ids]
                              [--resource-group]

Examples

Delete an ANF account

az netappfiles account delete -g mygroup --name myname

Optional Parameters

--account-name --name -a -n

The name of the ANF account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az netappfiles account list

List ANF accounts by subscription or by resource group name.

az netappfiles account list [--resource-group]

Examples

List ANF accounts within a resource group

az netappfiles account list -g mygroup

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az netappfiles account set

Sets the tags or the active directory details for a specified ANF account. Sets the active directory property to exactly what is provided. If none is provided then the active directory is removed, i.e. provide empty [].

az netappfiles account set --account-name
                           --location
                           --resource-group
                           [--active-directories]
                           [--tags]

Examples

Update the tags and active directory of an ANF account

az netappfiles account set -g group --account-name name --tags 'key[=value] key[=value]' --active-directories '[{"username": "aduser", "password": "aduser", "smbservername": "SMBSERVER", "dns": "1.2.3.4", "domain": "westcentralus"}]' -l westus2

Remove the active directory from the ANF account

az netappfiles account set -g group --account-name name --active-directories '[]' -l westus2

Required Parameters

--account-name -a -n

The name of the ANF account.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--active-directories

An array of active directory (AD) settings in json format. Limitation one AD/subscription. Consists of the fields username (Username of Active Directory domain administrator), password (Plain text password of Active Directory domain administrator), domain (Name of the Active Directory domain), dns (Comma separated list of DNS server IP addresses for the Active Directory domain), smb_server_name (NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes. Must be 10 characters or less), organizational_unit (The Organizational Unit (OU) within the Windows Active Directory).

--tags

A list of space separated tags to apply to the account.

az netappfiles account show

Get the specified ANF account.

az netappfiles account show [--account-name]
                            [--ids]
                            [--resource-group]

Examples

Get an ANF account

az netappfiles account show -g mygroup --name myname

Optional Parameters

--account-name --name -a -n

The name of the ANF account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az netappfiles account update

Set/modify the tags for a specified ANF account.

az netappfiles account update [--account-name]
                              [--add]
                              [--encryption]
                              [--force-string]
                              [--ids]
                              [--remove]
                              [--resource-group]
                              [--set]
                              [--tags]

Examples

Update the tags of an ANF account

az netappfiles account update -g mygroup --name myname --tags testtag2=mytagb

Optional Parameters

--account-name --name -a -n

The name of the ANF account.

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--encryption

Encryption settings.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--tags

Space-separated tags in key[=value] format.