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 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.
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
--location
--resource-group
[--subscription]
[--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.

--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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--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]
[--subscription]

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. If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az netappfiles account list

List ANF accounts.

az netappfiles account list --resource-group
[--subscription]

Examples

List ANF accounts within a resource group

az netappfiles account list -g mygroup

Required Parameters

--resource-group -g

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

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az netappfiles account show

Get the specified ANF account.

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

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. If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az netappfiles account update

Set/modify the tags for a specified ANF account.

az netappfiles account update [--account-name]
[--add]
[--force-string]
[--ids]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--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>.

--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. If provided, no other 'Resource Id' arguments should be specified.

--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=.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

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