File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 2020
2121-->
2222## Upcoming Release
23+ * Renamed parameter ` -VmId ` to ` -SourceId ` and added ` -VmId ` as an alias to ` New-AzRestorePointCollection ` cmdlet.
2324
2425## Version 8.1.0
2526* Added parameter ` -SourceResourceId ` to cmdlet ` Add-AzVMDataDisk ` .
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ public class NewAzureRestorePointCollection : ComputeAutomationBaseCmdlet
6767 Mandatory = false ,
6868 ValueFromPipeline = true ,
6969 ParameterSetName = "RestorePointCollectionId" ) ]
70- public string VmId { get ; set ; }
70+ [ Alias ( "VmId" ) ]
71+ public string SourceId { get ; set ; }
7172
7273 [ Parameter (
7374 Position = 3 ,
@@ -99,7 +100,7 @@ public override void ExecuteCmdlet()
99100 {
100101 string resourceGroup = this . ResourceGroupName ;
101102 string restorePointCollectionName = this . Name ;
102- string vmId = this . VmId ;
103+ string vmId = this . SourceId ;
103104 RestorePointCollection restorePointCollection ;
104105 if ( this . IsParameterBound ( c => c . Location ) )
105106 {
Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ Creates a New Restore Point Collection
1414
1515### DefaultParameter (Default)
1616```
17- New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [-VmId ] <String>
17+ New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [-SourceId ] <String>
1818 [-Location <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
1919 [-Confirm] [<CommonParameters>]
2020```
2121
2222### RestorePointCollectionId
2323```
24- New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [[-VmId ] <String>]
24+ New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [[-SourceId ] <String>]
2525 [-RestorePointCollectionId] <String> -Location <String> [-DefaultProfile <IAzureContextContainer>]
26- [-WhatIf] [-Confirm] [<CommonParameters>]
26+ [-WhatIf] [-Confirm] [<CommonParameters>]
2727```
2828
2929## DESCRIPTION
@@ -127,13 +127,13 @@ Accept pipeline input: True (ByValue)
127127Accept wildcard characters : False
128128` ` `
129129
130- ### -VmId
131- resource Id of the source resource used to create this restore point Collection
130+ ### -SourceId
131+ Resource ID of the source resource used to create this restore point collection.
132132
133133` ` ` yaml
134134Type : System.String
135135Parameter Sets : DefaultParameter
136- Aliases :
136+ Aliases : VmId
137137
138138Required : True
139139Position : 2
@@ -145,7 +145,7 @@ Accept wildcard characters: False
145145` ` ` yaml
146146Type : System.String
147147Parameter Sets : RestorePointCollectionId
148- Aliases :
148+ Aliases : VmId
149149
150150Required : False
151151Position : 2
You can’t perform that action at this time.
0 commit comments