Skip to content

Commit ffc68cd

Browse files
committed
network and help
1 parent d6009e9 commit ffc68cd

File tree

2 files changed

+61
-12
lines changed

2 files changed

+61
-12
lines changed

src/NetAppFiles/NetAppFiles/VolumeGroup/NewNetAppFilesVolumeGroup.cs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public class NewAzureRmNetAppFilesVolumeGroup : AzureNetAppFilesCmdletBase
112112
Mandatory = false,
113113
HelpMessage = "Application Type, default "+ DefaultApplicationType)]
114114
[ValidateNotNullOrEmpty]
115-
[PSArgumentCompleter("SAP-HANA")]
115+
[PSArgumentCompleter("SAP-HANA", "ORACLE")]
116116
[PSDefaultValue(Help = "Default \"SAP-HANA\"", Value = DefaultApplicationType)]
117117
public string ApplicationType { get; set; } = DefaultApplicationType;
118118

@@ -271,6 +271,12 @@ public class NewAzureRmNetAppFilesVolumeGroup : AzureNetAppFilesCmdletBase
271271
[PSArgumentCompleter("Microsoft.NetApp", "Microsoft.KeyVault")]
272272
public string EncryptionKeySource { get; set; }
273273

274+
[Parameter(
275+
Mandatory = false,
276+
HelpMessage = "Basic network, or Standard features available to the volume (Basic, Standard).")]
277+
[PSArgumentCompleter("Basic", "Standard")]
278+
public string NetworkFeature { get; set; }
279+
274280
[Parameter(
275281
Mandatory = false,
276282
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
450456
ExportPolicy = volumeExportPolicy,
451457
Zones = zoneList,
452458
KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId,
453-
EncryptionKeySource = this.EncryptionKeySource
459+
EncryptionKeySource = this.EncryptionKeySource,
460+
NetworkFeatures = this.NetworkFeature
454461
};
455462

456463
volumesInGroup.Add(dataVolume);
@@ -468,7 +475,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string
468475
ExportPolicy = volumeExportPolicy,
469476
Zones = zoneList,
470477
KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId,
471-
EncryptionKeySource = this.EncryptionKeySource
478+
EncryptionKeySource = this.EncryptionKeySource,
479+
NetworkFeatures = this.NetworkFeature
472480
};
473481
volumesInGroup.Add(logVolume);
474482
//Shared, Log backup and Data backup only created for HostID==1.
@@ -489,7 +497,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string
489497
ExportPolicy = volumeExportPolicy,
490498
Zones = zoneList,
491499
KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId,
492-
EncryptionKeySource = this.EncryptionKeySource
500+
EncryptionKeySource = this.EncryptionKeySource,
501+
NetworkFeatures = this.NetworkFeature
493502
};
494503
if (this.Zone != null)
495504
{
@@ -511,7 +520,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string
511520
ExportPolicy = volumeExportPolicy,
512521
Zones = zoneList,
513522
KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId,
514-
EncryptionKeySource = this.EncryptionKeySource
523+
EncryptionKeySource = this.EncryptionKeySource,
524+
NetworkFeatures = this.NetworkFeature
515525
};
516526
if (this.Zone != null)
517527
{
@@ -533,7 +543,8 @@ private VolumeGroupDetails CreateHostVolumeGroup(string name, string sid, string
533543
ExportPolicy = volumeExportPolicy,
534544
Zones = zoneList,
535545
KeyVaultPrivateEndpointResourceId = this.KeyVaultPrivateEndpointResourceId,
536-
EncryptionKeySource = this.EncryptionKeySource
546+
EncryptionKeySource = this.EncryptionKeySource,
547+
NetworkFeatures = this.NetworkFeature
537548
};
538549
if (this.Zone != null)
539550
{

src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesVolumeGroup.md

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ New-AzNetAppFilesVolumeGroup -ResourceGroupName <String> -Location <String> -Acc
2525
[-LogBackupPerformance <Int32>] [-HannaSystemReplication] [-DisasterRecoveryDestination]
2626
[-BackupProtocolType <String[]>] [-ExportPolicy <PSNetAppFilesVolumeExportPolicy>]
2727
[-GlobalPlacementRule <System.Collections.Generic.IList`1[Microsoft.Azure.Management.NetApp.Models.PlacementKeyValuePairs]>]
28-
[-EncryptionKeySource <String>] [-KeyVaultPrivateEndpointResourceId <String>] [-Zone <String[]>]
29-
[-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
30-
[-Confirm] [<CommonParameters>]
28+
[-EncryptionKeySource <String>] [-NetworkFeature <String>] [-KeyVaultPrivateEndpointResourceId <String>]
29+
[-Zone <String[]>] [-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>]
30+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
3131
```
3232

3333
### ByParentObjectParameterSet
@@ -42,9 +42,10 @@ New-AzNetAppFilesVolumeGroup -PoolName <String> [-Name <String>] [-GroupDescript
4242
[-DisasterRecoveryDestination] [-BackupProtocolType <String[]>]
4343
[-ExportPolicy <PSNetAppFilesVolumeExportPolicy>]
4444
[-GlobalPlacementRule <System.Collections.Generic.IList`1[Microsoft.Azure.Management.NetApp.Models.PlacementKeyValuePairs]>]
45-
[-EncryptionKeySource <String>] [-KeyVaultPrivateEndpointResourceId <String>] [-Zone <String[]>]
46-
[-Tag <Hashtable>] -AccountObject <PSNetAppFilesAccount> [-DefaultProfile <IAzureContextContainer>]
47-
[-WhatIf] [-Confirm] [<CommonParameters>]
45+
[-EncryptionKeySource <String>] [-NetworkFeature <String>] [-KeyVaultPrivateEndpointResourceId <String>]
46+
[-Zone <String[]>] [-Tag <Hashtable>] -AccountObject <PSNetAppFilesAccount>
47+
[-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
48+
[<CommonParameters>]
4849
```
4950

5051
## DESCRIPTION
@@ -59,6 +60,13 @@ New-AzNetAppFilesVolumeGroup -ResourceGroupName "MyRG" -AccountName "MyAnfAccoun
5960

6061
This command creates the new "PRIMARY" ANF VolumeGroup "MyAnfVolumeGroup" within the Account "MyAnfAccount" using the proximityPlacementGroup "MyPPGResourceId", the vnet "MyAnfVnet", and NodeMemory of 100
6162

63+
### Example 2
64+
```powershell
65+
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
66+
```
67+
68+
This command creates the new "PRIMARY" ANF VolumeGroup "MyAnfVolumeGroup" within the Account "MyAnfAccount" using Zone 1, the vnet "MyAnfVnet", and NodeMemory of 100
69+
6270
## PARAMETERS
6371

6472
### -AccountName
@@ -449,6 +457,21 @@ Accept pipeline input: False
449457
Accept wildcard characters: False
450458
```
451459
460+
### -NetworkFeature
461+
Basic network, or Standard features available to the volume (Basic, Standard).
462+
463+
```yaml
464+
Type: System.String
465+
Parameter Sets: (All)
466+
Aliases:
467+
468+
Required: False
469+
Position: Named
470+
Default value: None
471+
Accept pipeline input: False
472+
Accept wildcard characters: False
473+
```
474+
452475
### -NodeMemory
453476
SAP node memory (GiB), Memory on SAP compute host
454477
@@ -496,6 +519,21 @@ Accept pipeline input: False
496519
Accept wildcard characters: False
497520
```
498521
522+
### -ProgressAction
523+
{{ Fill ProgressAction Description }}
524+
525+
```yaml
526+
Type: System.Management.Automation.ActionPreference
527+
Parameter Sets: (All)
528+
Aliases: proga
529+
530+
Required: False
531+
Position: Named
532+
Default value: None
533+
Accept pipeline input: False
534+
Accept wildcard characters: False
535+
```
536+
499537
### -ProximityPlacementGroup
500538
Default proximity placement group, for data, log, and if present the shared volume, in all volume groups.
501539
Specifies that the data, log, and shared volumes are to be created close to the VMs

0 commit comments

Comments
 (0)