Skip to content

Commit 9da06f0

Browse files
hyonholeeVeryEarly
andauthored
Add 'Delete' to the argument completer of EvictionPolicy parameter (#12075)
* Add 'Delete' to the argument completer of EvictionPolicy parameter for New-AzVM and New-AzVMConfig cmdlets. * Update ChangeLog.md Co-authored-by: Yabo Hu <[email protected]>
1 parent b9d2fa2 commit 9da06f0

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Additional information about change #1
2020
-->
2121
## Upcoming Release
22+
* Added 'Delete' to the argument completer of EvictionPolicy parameter for New-AzVM and New-AzVMConfig cmdlets.
2223
* Fixed name of new VM Extension for SAP
2324

2425
## Version 4.1.0

src/Compute/Compute/VirtualMachine/Config/NewAzureVMConfigCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public class NewAzureVMConfigCommand : Microsoft.Azure.Commands.ResourceManager.
9797

9898
[Parameter(
9999
ValueFromPipelineByPropertyName = true,
100-
HelpMessage = "The eviction policy for the low priority virtual machine. Only supported value is 'Deallocate'.")]
101-
[PSArgumentCompleter("Deallocate")]
100+
HelpMessage = "The eviction policy for the Azure Spot virtual machine. Supported values are 'Deallocate' and 'Delete'")]
101+
[PSArgumentCompleter("Deallocate", "Delete")]
102102
public string EvictionPolicy { get; set; }
103103

104104
[Parameter(

src/Compute/Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ public class NewAzureVMCommand : VirtualMachineBaseCmdlet
242242
public string Priority { get; set; }
243243

244244
[Parameter(ParameterSetName = SimpleParameterSet, Mandatory = false,
245-
HelpMessage = "The eviction policy for the low priority virtual machine. Only supported value is 'Deallocate'.")]
245+
HelpMessage = "The eviction policy for the Azure Spot virtual machine. Supported values are 'Deallocate' and 'Delete'.")]
246246
[Parameter(ParameterSetName = DiskFileParameterSet, Mandatory = false,
247-
HelpMessage = "The eviction policy for the low priority virtual machine. Only supported value is 'Deallocate'.")]
248-
[PSArgumentCompleter("Deallocate")]
247+
HelpMessage = "The eviction policy for the Azure Spot virtual machine. Supported values are 'Deallocate' and 'Delete'.")]
248+
[PSArgumentCompleter("Deallocate", "Delete")]
249249
public string EvictionPolicy { get; set; }
250250

251251
[Parameter(ParameterSetName = SimpleParameterSet, Mandatory = false,

src/Compute/Compute/help/New-AzVM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Accept wildcard characters: False
335335
```
336336

337337
### -EvictionPolicy
338-
The eviction policy for the low priority virtual machine. Only supported value is 'Deallocate'.
338+
The eviction policy for the Azure Spot virtual machine. Supported values are 'Deallocate' and 'Delete'.
339339

340340
```yaml
341341
Type: System.String

src/Compute/Compute/help/New-AzVMConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Accept wildcard characters: False
104104
```
105105
106106
### -EvictionPolicy
107-
The eviction policy for the low priority virtual machine. Only supported value is 'Deallocate'.
107+
The eviction policy for the Azure Spot virtual machine. Supported values are 'Deallocate' and 'Delete'.
108108
109109
```yaml
110110
Type: System.String

0 commit comments

Comments
 (0)