diff --git a/src/NetAppFiles/NetAppFiles/Account/NewNetAppFilesAccount.cs b/src/NetAppFiles/NetAppFiles/Account/NewNetAppFilesAccount.cs index 4ea5e4ebba2e..beb70916e71d 100644 --- a/src/NetAppFiles/NetAppFiles/Account/NewNetAppFilesAccount.cs +++ b/src/NetAppFiles/NetAppFiles/Account/NewNetAppFilesAccount.cs @@ -121,6 +121,13 @@ public class NewAzureRmNetAppFilesAccount : AzureNetAppFilesCmdletBase [ValidateNotNullOrEmpty] public string FederatedClientId { get; set; } + [Parameter( + ParameterSetName = FieldsParameterSet, + Mandatory = false, + HelpMessage = "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.")] + [ValidateNotNullOrEmpty] + public string NfsV4IdDomain { get; set; } + [Parameter( Mandatory = false, HelpMessage = "A hashtable which represents resource tags")] @@ -172,7 +179,8 @@ public override void ExecuteCmdlet() Location = Location, ActiveDirectories = ActiveDirectory?.ConvertFromPs(), Tags = tagPairs, - Encryption = Encryption?.ConvertFromPs() + Encryption = Encryption?.ConvertFromPs(), + NfsV4IdDomain = NfsV4IdDomain }; if (IdentityType != null && IdentityType.Contains("UserAssigned")) { diff --git a/src/NetAppFiles/NetAppFiles/Account/SetNetAppFilesAccount.cs b/src/NetAppFiles/NetAppFiles/Account/SetNetAppFilesAccount.cs index 2388ed72dedb..dc7f711ad1cd 100644 --- a/src/NetAppFiles/NetAppFiles/Account/SetNetAppFilesAccount.cs +++ b/src/NetAppFiles/NetAppFiles/Account/SetNetAppFilesAccount.cs @@ -68,6 +68,13 @@ public class SetAzureRmNetAppFilesAccount : AzureNetAppFilesCmdletBase [ValidateNotNullOrEmpty] public PSNetAppFilesActiveDirectory[] ActiveDirectory { get; set; } + [Parameter( + ParameterSetName = FieldsParameterSet, + Mandatory = false, + HelpMessage = "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.")] + [ValidateNotNullOrEmpty] + public string NfsV4IdDomain { get; set; } + [Parameter( Mandatory = false, HelpMessage = "A hashtable which represents resource tags")] @@ -107,7 +114,8 @@ public override void ExecuteCmdlet() { Location = Location, ActiveDirectories = (ActiveDirectory != null) ? ActiveDirectory.ConvertFromPs() : new List(), - Tags = tagPairs + Tags = tagPairs, + NfsV4IdDomain = NfsV4IdDomain }; if (ShouldProcess(Name, string.Format(PowerShell.Cmdlets.NetAppFiles.Properties.Resources.CreateResourceMessage, ResourceGroupName))) diff --git a/src/NetAppFiles/NetAppFiles/Account/UpdateNetAppFilesAccount.cs b/src/NetAppFiles/NetAppFiles/Account/UpdateNetAppFilesAccount.cs index ddb60635ecbd..c6259a49f1ba 100644 --- a/src/NetAppFiles/NetAppFiles/Account/UpdateNetAppFilesAccount.cs +++ b/src/NetAppFiles/NetAppFiles/Account/UpdateNetAppFilesAccount.cs @@ -130,6 +130,13 @@ public class UpdateAzureRmNetAppFilesAccount : AzureNetAppFilesCmdletBase [ValidateNotNullOrEmpty] public string FederatedClientId { get; set; } + [Parameter( + ParameterSetName = FieldsParameterSet, + Mandatory = false, + HelpMessage = "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.")] + [ValidateNotNullOrEmpty] + public string NfsV4IdDomain { get; set; } + [Parameter( ParameterSetName = ObjectParameterSet, Mandatory = true, @@ -189,7 +196,8 @@ public override void ExecuteCmdlet() Location = Location, ActiveDirectories = (ActiveDirectory != null) ? ActiveDirectory.ConvertFromPs() : null, Tags = tagPairs, - Encryption = Encryption?.ConvertFromPs() + Encryption = Encryption?.ConvertFromPs(), + NfsV4IdDomain = NfsV4IdDomain }; if (IdentityType != null && IdentityType.Contains("UserAssigned")) { diff --git a/src/NetAppFiles/NetAppFiles/ChangeLog.md b/src/NetAppFiles/NetAppFiles/ChangeLog.md index e9d1edd0d5ed..cd6f9a7a6f99 100644 --- a/src/NetAppFiles/NetAppFiles/ChangeLog.md +++ b/src/NetAppFiles/NetAppFiles/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Added `NfsV4IdDomain` to `New-AzNetAppFilesAccount` and `Update-AzNetAppFilesAccount` ## Version 0.22.0 * Added `FederatedClientId` to `New-AzNetAppFilesAccount` and `Update-AzNetAppFilesAccount` diff --git a/src/NetAppFiles/NetAppFiles/Helpers/BackupExtensions.cs b/src/NetAppFiles/NetAppFiles/Helpers/BackupExtensions.cs index 01b0603bfa1f..ff1f511b203e 100644 --- a/src/NetAppFiles/NetAppFiles/Helpers/BackupExtensions.cs +++ b/src/NetAppFiles/NetAppFiles/Helpers/BackupExtensions.cs @@ -37,7 +37,8 @@ public static PSNetAppFilesBackup ConvertToPs(this Management.NetApp.Models.Back VolumeResourceId = backup.VolumeResourceId, UseExistingSnapshot = backup.UseExistingSnapshot, SnapshotName = backup.SnapshotName, - CreationDate = backup.CreationDate + CreationDate = backup.CreationDate, + IsLargeVolume = backup.IsLargeVolume, }; return psBackup; } diff --git a/src/NetAppFiles/NetAppFiles/Helpers/ModelExtensions.cs b/src/NetAppFiles/NetAppFiles/Helpers/ModelExtensions.cs index c668a3cc73bb..8e2301cb2932 100644 --- a/src/NetAppFiles/NetAppFiles/Helpers/ModelExtensions.cs +++ b/src/NetAppFiles/NetAppFiles/Helpers/ModelExtensions.cs @@ -46,7 +46,7 @@ public static class ModelExtensions Administrators = psActiveDirectory.Administrators, EncryptDcConnections = psActiveDirectory.EncryptDCConnections, PreferredServersForLdapClient = psActiveDirectory.PreferredServersForLdapClient is null ? null: string.Join(",", psActiveDirectory.PreferredServersForLdapClient), - LdapSearchScope = psActiveDirectory.LdapSearchScope?.ConvertFromPs() + LdapSearchScope = psActiveDirectory.LdapSearchScope?.ConvertFromPs() }).ToList(); } @@ -103,7 +103,9 @@ public static PSNetAppFilesAccount ToPsNetAppFilesAccount(this NetAppAccount net ActiveDirectories = (netAppAccount.ActiveDirectories != null) ? netAppAccount.ActiveDirectories.ConvertToPs(resourceGroupName, netAppAccount.Name) : null, ProvisioningState = netAppAccount.ProvisioningState, Identity = netAppAccount.Identity.ConvertToPs(), - SystemData = netAppAccount.SystemData?.ToPsSystemData() + SystemData = netAppAccount.SystemData?.ToPsSystemData(), + MultiAdStatus = netAppAccount.MultiAdStatus, + NfsV4IdDomain= netAppAccount.NfsV4IdDomain }; } @@ -233,6 +235,7 @@ public static PSNetAppFilesVolumeDataProtection ConvertDataProtectionToPs(Volume replication.RemoteVolumeResourceId = DataProtection.Replication.RemoteVolumeResourceId; replication.RemoteVolumeRegion = DataProtection.Replication.RemoteVolumeRegion; replication.RemotePath = DataProtection.Replication?.RemotePath?.ConvertToPs(); + replication.DestinationReplications = DataProtection.Replication?.DestinationReplications?.ConvertToPs(); psDataProtection.Replication = replication; } if (DataProtection.Snapshot != null) @@ -294,7 +297,7 @@ public static VolumePropertiesDataProtection ConvertDataProtectionFromPs(PSNetAp replication.ReplicationSchedule = psDataProtection.Replication.ReplicationSchedule; replication.RemoteVolumeResourceId = psDataProtection.Replication.RemoteVolumeResourceId; replication.RemoteVolumeRegion = psDataProtection.Replication.RemoteVolumeRegion; - replication.RemotePath = psDataProtection.Replication.RemotePath?.ConvertFromPs(); + replication.RemotePath = psDataProtection.Replication.RemotePath?.ConvertFromPs(); dataProtection.Replication = replication; } diff --git a/src/NetAppFiles/NetAppFiles/Helpers/NetAppAccountExtensions.cs b/src/NetAppFiles/NetAppFiles/Helpers/NetAppAccountExtensions.cs index 1f8fb903f0cb..d76672c5a3e6 100644 --- a/src/NetAppFiles/NetAppFiles/Helpers/NetAppAccountExtensions.cs +++ b/src/NetAppFiles/NetAppFiles/Helpers/NetAppAccountExtensions.cs @@ -41,7 +41,8 @@ public static PSNetAppFilesAccount ConvertToPs(this NetAppAccount netAppAccount) Identity = netAppAccount.Identity?.ConvertToPs(), DisableShowmount = netAppAccount.DisableShowmount, Encryption = netAppAccount.Encryption?.ConvertToPs(), - SystemData = netAppAccount.SystemData?.ToPsSystemData() + SystemData = netAppAccount.SystemData?.ToPsSystemData(), + MultiAdStatus = netAppAccount.MultiAdStatus }; } diff --git a/src/NetAppFiles/NetAppFiles/Helpers/ReplicationExtensions.cs b/src/NetAppFiles/NetAppFiles/Helpers/ReplicationExtensions.cs index b94a0b4dd694..42699d647a34 100644 --- a/src/NetAppFiles/NetAppFiles/Helpers/ReplicationExtensions.cs +++ b/src/NetAppFiles/NetAppFiles/Helpers/ReplicationExtensions.cs @@ -17,6 +17,7 @@ using Microsoft.Azure.Commands.NetAppFiles.Models; using System.Collections.Generic; using System.Linq; +using Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.Models; namespace Microsoft.Azure.Commands.NetAppFiles.Helpers { @@ -29,7 +30,7 @@ public static PSNetAppFilesReplication ConvertToPs(this Management.NetApp.Models ReplicationId = replication.ReplicationId, EndpointType = replication.EndpointType, RemoteVolumeRegion = replication.RemoteVolumeRegion, - RemoteVolumeResourceId = replication.RemoteVolumeResourceId, + RemoteVolumeResourceId = replication.RemoteVolumeResourceId }; return psReplicaitonObject; } @@ -49,5 +50,21 @@ public static PSSvmPeerCommandResponse ConvertToPs(this Management.NetApp.Models return psSvmPeerCommandResponse; } + public static PSNetAppFilesDestinationReplication ConvertToPs(this Management.NetApp.Models.DestinationReplication destinationReplication) + { + PSNetAppFilesDestinationReplication pSNetAppFilesDestinationReplication = new PSNetAppFilesDestinationReplication + { + Region = destinationReplication.Region, + ReplicationType = destinationReplication.ReplicationType, + ResourceId = destinationReplication.ResourceId, + Zone = destinationReplication.Zone + }; + return pSNetAppFilesDestinationReplication; + } + + public static List ConvertToPs(this IEnumerable destinationReplications) + { + return destinationReplications.Select(e => e.ConvertToPs()).ToList(); + } } } diff --git a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesAccount.cs b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesAccount.cs index c1252f36428a..f86f8b6ccdc6 100644 --- a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesAccount.cs +++ b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesAccount.cs @@ -87,5 +87,17 @@ public class PSNetAppFilesAccount /// for all volumes under the subscription, null equals false /// public bool? DisableShowmount {get; set;} + + /// + /// Gets or sets NfsV4IdDomain + /// Shows the status of NfsV4IdDomain + /// + public string NfsV4IdDomain { get; set; } + + /// + /// Gets or sets MultiAdStatus + /// Shows the status of MultiAdStatus + /// + public string MultiAdStatus { get; set; } } } \ No newline at end of file diff --git a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesBackup.cs b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesBackup.cs index bdcefef91a98..38493bd312bf 100644 --- a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesBackup.cs +++ b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesBackup.cs @@ -30,7 +30,7 @@ public class PSNetAppFilesBackup /// Gets or sets Resource location /// public string Location { get; set; } - + /// /// Gets resource Id /// @@ -113,5 +113,13 @@ public class PSNetAppFilesBackup /// The name of the snapshot /// public string SnapshotName { get; set; } + + /// + /// Gets IsLargeVolume + /// + /// + /// Specifies if the backup is for a large volume + /// + public bool? IsLargeVolume { get; set; } } } \ No newline at end of file diff --git a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesDestinationReplication.cs b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesDestinationReplication.cs new file mode 100644 index 000000000000..3f370e698d5c --- /dev/null +++ b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesDestinationReplication.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.Models +{ + public class PSNetAppFilesDestinationReplication + { + /// + /// Gets or sets the resource ID of the remote volume + /// + public string ResourceId { get; set; } + + /// + /// Gets or sets indicates whether the replication is cross zone or cross + /// region. Possible values include: 'CrossRegionReplication', 'CrossZoneReplication' + /// + public string ReplicationType { get; set; } + + /// + /// Gets or sets the remote region for the destination volume. + /// + public string Region { get; set; } + + /// + /// Gets or sets the remote zone for the destination volume. + /// + public string Zone { get; set; } + } +} diff --git a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesReplicationObject.cs b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesReplicationObject.cs index da7ad7ec8c1b..2f32cbe7f24f 100644 --- a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesReplicationObject.cs +++ b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesReplicationObject.cs @@ -13,6 +13,8 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Management.NetApp.Models; +using Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.Models; +using System.Collections.Generic; namespace Microsoft.Azure.Commands.NetAppFiles.Models { @@ -49,5 +51,10 @@ public class PSNetAppFilesReplicationObject /// Gets or sets the full path to a volume that is to be migrated into ANF. /// public PSRemotePath RemotePath { get; set; } + + /// + /// Gets a list of destination replications + /// + public IList DestinationReplications { get; set; } } } \ No newline at end of file diff --git a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesVolumeDataProtection.cs b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesVolumeDataProtection.cs index 4d3d0ab1b00b..5f76d672b560 100644 --- a/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesVolumeDataProtection.cs +++ b/src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesVolumeDataProtection.cs @@ -12,6 +12,10 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using Microsoft.Azure.Management.NetApp.Models; +using Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.Models; +using System.Collections.Generic; + namespace Microsoft.Azure.Commands.NetAppFiles.Models { public class PSNetAppFilesVolumeDataProtection @@ -48,5 +52,10 @@ public class PSNetAppFilesVolumeDataProtection /// Volume Backup properties /// public PSNetAppFilesVolumeRelocationProperties VolumeRelocation { get; set; } + + /// + /// Gets a list of destination replications + /// + public IList DestinationReplications { get; set; } } } diff --git a/src/NetAppFiles/NetAppFiles/VolumeGroup/NewNetAppFilesVolumeGroup.cs b/src/NetAppFiles/NetAppFiles/VolumeGroup/NewNetAppFilesVolumeGroup.cs index 4f3a8fdf4586..769b51fb4b87 100644 --- a/src/NetAppFiles/NetAppFiles/VolumeGroup/NewNetAppFilesVolumeGroup.cs +++ b/src/NetAppFiles/NetAppFiles/VolumeGroup/NewNetAppFilesVolumeGroup.cs @@ -112,7 +112,7 @@ public class NewAzureRmNetAppFilesVolumeGroup : AzureNetAppFilesCmdletBase Mandatory = false, HelpMessage = "Application Type, default "+ DefaultApplicationType)] [ValidateNotNullOrEmpty] - [PSArgumentCompleter("SAP-HANA")] + [PSArgumentCompleter("SAP-HANA", "ORACLE")] [PSDefaultValue(Help = "Default \"SAP-HANA\"", Value = DefaultApplicationType)] public string ApplicationType { get; set; } = DefaultApplicationType; @@ -271,6 +271,12 @@ public class NewAzureRmNetAppFilesVolumeGroup : AzureNetAppFilesCmdletBase [PSArgumentCompleter("Microsoft.NetApp", "Microsoft.KeyVault")] public string EncryptionKeySource { get; set; } + [Parameter( + Mandatory = false, + HelpMessage = "Basic network, or Standard features available to the volume (Basic, Standard).")] + [PSArgumentCompleter("Basic", "Standard")] + public string NetworkFeature { get; set; } + [Parameter( Mandatory = false, HelpMessage = "The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'")] @@ -450,7 +456,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string ExportPolicy = volumeExportPolicy, Zones = zoneList, KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId, - EncryptionKeySource = this.EncryptionKeySource + EncryptionKeySource = this.EncryptionKeySource, + NetworkFeatures = this.NetworkFeature }; volumesInGroup.Add(dataVolume); @@ -468,7 +475,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string ExportPolicy = volumeExportPolicy, Zones = zoneList, KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId, - EncryptionKeySource = this.EncryptionKeySource + EncryptionKeySource = this.EncryptionKeySource, + NetworkFeatures = this.NetworkFeature }; volumesInGroup.Add(logVolume); //Shared, Log backup and Data backup only created for HostID==1. @@ -489,7 +497,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string ExportPolicy = volumeExportPolicy, Zones = zoneList, KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId, - EncryptionKeySource = this.EncryptionKeySource + EncryptionKeySource = this.EncryptionKeySource, + NetworkFeatures = this.NetworkFeature }; if (this.Zone != null) { @@ -511,7 +520,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string ExportPolicy = volumeExportPolicy, Zones = zoneList, KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId, - EncryptionKeySource = this.EncryptionKeySource + EncryptionKeySource = this.EncryptionKeySource, + NetworkFeatures = this.NetworkFeature }; if (this.Zone != null) { @@ -533,7 +543,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string ExportPolicy = volumeExportPolicy, Zones = zoneList, KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId, - EncryptionKeySource = this.EncryptionKeySource + EncryptionKeySource = this.EncryptionKeySource, + NetworkFeatures = this.NetworkFeature }; if (this.Zone != null) { diff --git a/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesAccount.md b/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesAccount.md index 1726bbedd13e..b16b7c0b2b29 100644 --- a/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesAccount.md +++ b/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesAccount.md @@ -17,8 +17,9 @@ New-AzNetAppFilesAccount -ResourceGroupName -Location -Name ] [-Encryption ] [-EncryptionKeySource ] [-KeyVaultKeyName ] [-KeyVaultResourceId ] [-KeyVaultUri ] [-IdentityType ] [-UserAssignedIdentity ] - [-FederatedClientId ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-FederatedClientId ] [-NfsV4IdDomain ] [-Tag ] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -48,7 +49,7 @@ This command creates the new ANF account "MyAnfAccount". A hashtable array which represents the active directories ```yaml -Type: Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[] +Type: PSNetAppFilesActiveDirectory[] Parameter Sets: (All) Aliases: @@ -63,7 +64,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -78,7 +79,7 @@ Accept wildcard characters: False A hashtable which represents the Encryption settings ```yaml -Type: Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccountEncryption +Type: PSNetAppFilesAccountEncryption Parameter Sets: (All) Aliases: @@ -93,7 +94,7 @@ Accept wildcard characters: False The encryption keySource (provider). Possible values: Microsoft.NetApp, Microsoft.KeyVault ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -108,7 +109,7 @@ Accept wildcard characters: False ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -123,7 +124,7 @@ Accept wildcard characters: False Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -138,7 +139,7 @@ Accept wildcard characters: False The name of KeyVault key ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -153,7 +154,7 @@ Accept wildcard characters: False The resource ID of KeyVault. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -168,7 +169,7 @@ Accept wildcard characters: False The Uri of KeyVault. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -183,7 +184,7 @@ Accept wildcard characters: False The location of the resource ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -198,7 +199,7 @@ Accept wildcard characters: False The name of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: AccountName @@ -209,11 +210,41 @@ Accept pipeline input: False Accept wildcard characters: 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. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The resource group of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -228,7 +259,7 @@ Accept wildcard characters: False A hashtable which represents resource tags ```yaml -Type: System.Collections.Hashtable +Type: Hashtable Parameter Sets: (All) Aliases: Tags @@ -243,7 +274,7 @@ Accept wildcard characters: False 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 ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -258,7 +289,7 @@ Accept wildcard characters: False Prompts you for confirmation before running the cmdlet. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: SwitchParameter Parameter Sets: (All) Aliases: cf @@ -274,7 +305,7 @@ Shows what would happen if the cmdlet runs. The cmdlet is not run. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: SwitchParameter Parameter Sets: (All) Aliases: wi diff --git a/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesVolumeGroup.md b/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesVolumeGroup.md index f8d65555372d..32d0ccb5c6c8 100644 --- a/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesVolumeGroup.md +++ b/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesVolumeGroup.md @@ -25,9 +25,9 @@ New-AzNetAppFilesVolumeGroup -ResourceGroupName -Location -Acc [-LogBackupPerformance ] [-HannaSystemReplication] [-DisasterRecoveryDestination] [-BackupProtocolType ] [-ExportPolicy ] [-GlobalPlacementRule ] - [-EncryptionKeySource ] [-KeyVaultPrivateEndpointResourceId ] [-Zone ] - [-Tag ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] + [-EncryptionKeySource ] [-NetworkFeature ] [-KeyVaultPrivateEndpointResourceId ] + [-Zone ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByParentObjectParameterSet @@ -42,9 +42,10 @@ New-AzNetAppFilesVolumeGroup -PoolName [-Name ] [-GroupDescript [-DisasterRecoveryDestination] [-BackupProtocolType ] [-ExportPolicy ] [-GlobalPlacementRule ] - [-EncryptionKeySource ] [-KeyVaultPrivateEndpointResourceId ] [-Zone ] - [-Tag ] -AccountObject [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-EncryptionKeySource ] [-NetworkFeature ] [-KeyVaultPrivateEndpointResourceId ] + [-Zone ] [-Tag ] -AccountObject + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -59,6 +60,13 @@ New-AzNetAppFilesVolumeGroup -ResourceGroupName "MyRG" -AccountName "MyAnfAccoun This command creates the new "PRIMARY" ANF VolumeGroup "MyAnfVolumeGroup" within the Account "MyAnfAccount" using the proximityPlacementGroup "MyPPGResourceId", the vnet "MyAnfVnet", and NodeMemory of 100 +### Example 2 +```powershell +New-AzNetAppFilesVolumeGroup -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -Name "MyAnfVolumeGroupName" -Location "westus2" -GroupDescription "MyAnfVolumeGroup Description" -ApplicationIdentifier "OR1" -Zone 1 -Vnet "MyAnfVnet" -SystemRole "PRIMARY" -NodeMemory 100 +``` + +This command creates the new "PRIMARY" ANF VolumeGroup "MyAnfVolumeGroup" within the Account "MyAnfAccount" using Zone 1, the vnet "MyAnfVnet", and NodeMemory of 100 + ## PARAMETERS ### -AccountName @@ -449,6 +457,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -NetworkFeature +Basic network, or Standard features available to the volume (Basic, Standard). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NodeMemory SAP node memory (GiB), Memory on SAP compute host @@ -496,6 +519,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProximityPlacementGroup Default proximity placement group, for data, log, and if present the shared volume, in all volume groups. Specifies that the data, log, and shared volumes are to be created close to the VMs diff --git a/src/NetAppFiles/NetAppFiles/help/Set-AzNetAppFilesAccount.md b/src/NetAppFiles/NetAppFiles/help/Set-AzNetAppFilesAccount.md index 04ffa00893cd..015c162de795 100644 --- a/src/NetAppFiles/NetAppFiles/help/Set-AzNetAppFilesAccount.md +++ b/src/NetAppFiles/NetAppFiles/help/Set-AzNetAppFilesAccount.md @@ -14,22 +14,22 @@ Updates an Azure NetApp Files (ANF) account with the new data set. Useful for de ### ByFieldsParameterSet (Default) ``` -Set-AzNetAppFilesAccount -ResourceGroupName -Location -Name [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Set-AzNetAppFilesAccount -ResourceGroupName -Location -Name + [-NfsV4IdDomain ] [-Tag ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SetByResourceActiveDirectory ``` Set-AzNetAppFilesAccount -Location -Name [-ActiveDirectory ] - [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByResourceIdParameterSet ``` Set-AzNetAppFilesAccount -Location -Name [-Tag ] -ResourceId - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -62,7 +62,7 @@ This command performs an update on the given account. The absence of the active A hashtable array which represents the active directories ```yaml -Type: Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[] +Type: PSNetAppFilesActiveDirectory[] Parameter Sets: SetByResourceActiveDirectory Aliases: @@ -77,7 +77,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -92,7 +92,7 @@ Accept wildcard characters: False The location of the resource ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -107,7 +107,7 @@ Accept wildcard characters: False The name of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: AccountName @@ -118,11 +118,41 @@ Accept pipeline input: False Accept wildcard characters: 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. + +```yaml +Type: String +Parameter Sets: ByFieldsParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The resource group of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -137,7 +167,7 @@ Accept wildcard characters: False The resource id of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: ByResourceIdParameterSet Aliases: @@ -152,7 +182,7 @@ Accept wildcard characters: False A hashtable which represents resource tags ```yaml -Type: System.Collections.Hashtable +Type: Hashtable Parameter Sets: (All) Aliases: Tags @@ -167,7 +197,7 @@ Accept wildcard characters: False Prompts you for confirmation before running the cmdlet. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: SwitchParameter Parameter Sets: (All) Aliases: cf @@ -183,7 +213,7 @@ Shows what would happen if the cmdlet runs. The cmdlet is not run. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: SwitchParameter Parameter Sets: (All) Aliases: wi diff --git a/src/NetAppFiles/NetAppFiles/help/Update-AzNetAppFilesAccount.md b/src/NetAppFiles/NetAppFiles/help/Update-AzNetAppFilesAccount.md index 610af1ee4489..fc408c33cd01 100644 --- a/src/NetAppFiles/NetAppFiles/help/Update-AzNetAppFilesAccount.md +++ b/src/NetAppFiles/NetAppFiles/help/Update-AzNetAppFilesAccount.md @@ -18,8 +18,9 @@ Update-AzNetAppFilesAccount -ResourceGroupName [-Location ] -Na [-ActiveDirectory ] [-Encryption ] [-EncryptionKeySource ] [-KeyVaultKeyName ] [-KeyVaultResourceId ] [-KeyVaultUri ] [-IdentityType ] [-UserAssignedIdentity ] - [-FederatedClientId ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-FederatedClientId ] [-NfsV4IdDomain ] [-Tag ] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### ByResourceIdParameterSet @@ -27,7 +28,7 @@ Update-AzNetAppFilesAccount -ResourceGroupName [-Location ] -Na Update-AzNetAppFilesAccount -ResourceGroupName [-Location ] -Name -ResourceId [-ActiveDirectory ] [-Encryption ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByObjectParameterSet @@ -35,7 +36,7 @@ Update-AzNetAppFilesAccount -ResourceGroupName [-Location ] -Na Update-AzNetAppFilesAccount -ResourceGroupName [-Location ] -Name [-ActiveDirectory ] [-Encryption ] -InputObject [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -67,7 +68,7 @@ This command performs an update on the given account modifying the tags to those A hashtable array which represents the active directories ```yaml -Type: Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[] +Type: PSNetAppFilesActiveDirectory[] Parameter Sets: (All) Aliases: @@ -82,7 +83,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -97,7 +98,7 @@ Accept wildcard characters: False A hashtable which represents the Encryption settings ```yaml -Type: Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccountEncryption +Type: PSNetAppFilesAccountEncryption Parameter Sets: (All) Aliases: @@ -112,7 +113,7 @@ Accept wildcard characters: False The encryption keySource (provider). Possible values: Microsoft.NetApp, Microsoft.KeyVault ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -127,7 +128,7 @@ Accept wildcard characters: False ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults. ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -142,7 +143,7 @@ Accept wildcard characters: False Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -157,7 +158,7 @@ Accept wildcard characters: False The account object to update ```yaml -Type: Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount +Type: PSNetAppFilesAccount Parameter Sets: ByObjectParameterSet Aliases: @@ -172,7 +173,7 @@ Accept wildcard characters: False The name of KeyVault key ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -187,7 +188,7 @@ Accept wildcard characters: False The resource ID of KeyVault. ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -202,7 +203,7 @@ Accept wildcard characters: False The Uri of KeyVault. ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -217,7 +218,7 @@ Accept wildcard characters: False The location of the resource ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -232,7 +233,7 @@ Accept wildcard characters: False The name of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: AccountName @@ -243,11 +244,41 @@ Accept pipeline input: False Accept wildcard characters: 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. + +```yaml +Type: String +Parameter Sets: ByFieldsParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The resource group of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -262,7 +293,7 @@ Accept wildcard characters: False The resource id of the ANF account ```yaml -Type: System.String +Type: String Parameter Sets: ByResourceIdParameterSet Aliases: @@ -277,7 +308,7 @@ Accept wildcard characters: False A hashtable which represents resource tags ```yaml -Type: System.Collections.Hashtable +Type: Hashtable Parameter Sets: (All) Aliases: Tags @@ -292,7 +323,7 @@ Accept wildcard characters: False 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 ```yaml -Type: System.String +Type: String Parameter Sets: ByFieldsParameterSet Aliases: @@ -307,7 +338,7 @@ Accept wildcard characters: False Prompts you for confirmation before running the cmdlet. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: SwitchParameter Parameter Sets: (All) Aliases: cf @@ -323,7 +354,7 @@ Shows what would happen if the cmdlet runs. The cmdlet is not run. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: SwitchParameter Parameter Sets: (All) Aliases: wi