Edit

New-AzNetAppFilesAccount

Creates a new Azure NetApp Files (ANF) account.

Syntax

Default (Default)

New-AzNetAppFilesAccount
    -ResourceGroupName <String>
    -Location <String>
    -Name <String>
    [-ActiveDirectory <PSNetAppFilesActiveDirectory[]>]
    [-Encryption <PSNetAppFilesAccountEncryption>]
    [-LdapConfiguration <PSNetAppFilesLdapConfiguration>]
    [-EncryptionKeySource <String>]
    [-KeyVaultKeyName <String>]
    [-KeyVaultResourceId <String>]
    [-KeyVaultUri <String>]
    [-IdentityType <String>]
    [-UserAssignedIdentity <String>]
    [-FederatedClientId <String>]
    [-NfsV4IdDomain <String>]
    [-Tag <Hashtable>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The New-AzNetAppFilesAccount cmdlet creates an ANF account.

Examples

Example 1: Create an ANF account

New-AzNetAppFilesAccount -ResourceGroupName "MyRG" -Name "MyAnfAccount" -Location "westus2"
Location          : westus2
Id                : /subscriptions/mySubs/resourceGroups/MyRG/providers/Microsoft.NetApp/netAppAccounts/MyAnfAccount
Name              : MyAnfAccount
Type              : Microsoft.NetApp/netAppAccounts
Tags              :
ProvisioningState : Succeeded

This command creates the new ANF account "MyAnfAccount".

Example 2: Create an account with LDAP configuration

$ldap = @{
    Domain = "example.com"
    LdapServers = @("10.0.0.4", "10.0.0.5")
    SecureLdapType = "None"
    BindAuthenticationLevel = "Anonymous"
    UserDN = "ou=users,dc=example,dc=com"
    GroupDN = "ou=groups,dc=example,dc=com"
}
New-AzNetAppFilesAccount -ResourceGroupName "MyRG" -Name "MyAnfAccount" -Location "westus2" -LdapConfiguration $ldap

Creates an account using the specified LDAP servers and search distinguished names. For encrypted transport, use LdapOverTLS and supply the certificate and DNS settings described below.

Parameters

-ActiveDirectory

A hashtable array which represents the active directories

Parameter properties

Type:

PSNetAppFilesActiveDirectory[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Encryption

A hashtable which represents the Encryption settings

Parameter properties

Type:PSNetAppFilesAccountEncryption
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EncryptionKeySource

The encryption keySource (provider). Possible values: Microsoft.NetApp, Microsoft.KeyVault

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FederatedClientId

ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IdentityType

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-KeyVaultKeyName

The name of KeyVault key

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-KeyVaultResourceId

The resource ID of KeyVault.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-KeyVaultUri

The Uri of KeyVault.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LdapConfiguration

LDAP server, search, transport security, and bind authentication settings for the account. Accepts a PSNetAppFilesLdapConfiguration object or a hashtable with these properties:

  • Domain, LdapServers: LDAP domain and server IPv4 addresses.
  • SecureLdapType: None or LdapOverTLS.
  • ServerCACertificate, CertificateCNHost, DnsServers: Base64-encoded LDAP server CA certificate, certificate common-name host, and DNS server IPv4 addresses for LDAP over TLS.
  • LdapPort: LDAP port; the service defaults to 389.
  • UserDN, GroupDN, NetGroupDN: Distinguished names that override the base search distinguished name.
  • BindAuthenticationLevel: Anonymous or Simple.
  • BindDN: Distinguished name used to bind to the LDAP server.
  • BindPasswordAkvConfig: Nested hashtable or PSNetAppFilesBindPasswordAkvConfig object with AzureKeyVaultUri, SecretName, and UserAssignedIdentity, identifying the Key Vault secret containing the bind password and the identity used to access it. Do not provide the password itself.

Parameter properties

Type:PSNetAppFilesLdapConfiguration
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Location

The location of the resource

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

The name of the ANF account

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AccountName

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NfsV4IdDomain

Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

The resource group of the ANF account

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Tag

A hashtable which represents resource tags

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Tags

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserAssignedIdentity

The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

PSNetAppFilesAccount