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 20
20
21
21
-->
22
22
## Upcoming Release
23
+ * Renamed parameter ` -VmId ` to ` -SourceId ` and added ` -VmId ` as an alias to ` New-AzRestorePointCollection ` cmdlet.
23
24
24
25
## Version 8.1.0
25
26
* 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
67
67
Mandatory = false ,
68
68
ValueFromPipeline = true ,
69
69
ParameterSetName = "RestorePointCollectionId" ) ]
70
- public string VmId { get ; set ; }
70
+ [ Alias ( "VmId" ) ]
71
+ public string SourceId { get ; set ; }
71
72
72
73
[ Parameter (
73
74
Position = 3 ,
@@ -99,7 +100,7 @@ public override void ExecuteCmdlet()
99
100
{
100
101
string resourceGroup = this . ResourceGroupName ;
101
102
string restorePointCollectionName = this . Name ;
102
- string vmId = this . VmId ;
103
+ string vmId = this . SourceId ;
103
104
RestorePointCollection restorePointCollection ;
104
105
if ( this . IsParameterBound ( c => c . Location ) )
105
106
{
Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ Creates a New Restore Point Collection
14
14
15
15
### DefaultParameter (Default)
16
16
```
17
- New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [-VmId ] <String>
17
+ New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [-SourceId ] <String>
18
18
[-Location <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
19
19
[-Confirm] [<CommonParameters>]
20
20
```
21
21
22
22
### RestorePointCollectionId
23
23
```
24
- New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [[-VmId ] <String>]
24
+ New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [[-SourceId ] <String>]
25
25
[-RestorePointCollectionId] <String> -Location <String> [-DefaultProfile <IAzureContextContainer>]
26
- [-WhatIf] [-Confirm] [<CommonParameters>]
26
+ [-WhatIf] [-Confirm] [<CommonParameters>]
27
27
```
28
28
29
29
## DESCRIPTION
@@ -127,13 +127,13 @@ Accept pipeline input: True (ByValue)
127
127
Accept wildcard characters : False
128
128
` ` `
129
129
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.
132
132
133
133
` ` ` yaml
134
134
Type : System.String
135
135
Parameter Sets : DefaultParameter
136
- Aliases :
136
+ Aliases : VmId
137
137
138
138
Required : True
139
139
Position : 2
@@ -145,7 +145,7 @@ Accept wildcard characters: False
145
145
` ` ` yaml
146
146
Type : System.String
147
147
Parameter Sets : RestorePointCollectionId
148
- Aliases :
148
+ Aliases : VmId
149
149
150
150
Required : False
151
151
Position : 2
You can’t perform that action at this time.
0 commit comments