Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

-->
## Upcoming Release
* Renamed parameter `-VmId` to `-SourceId` and added `-VmId` as an alias to `New-AzRestorePointCollection` cmdlet.

## Version 8.1.0
* Added parameter `-SourceResourceId` to cmdlet `Add-AzVMDataDisk`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public class NewAzureRestorePointCollection : ComputeAutomationBaseCmdlet
Mandatory = false,
ValueFromPipeline = true,
ParameterSetName = "RestorePointCollectionId")]
public string VmId { get; set; }
[Alias("VmId")]
public string SourceId { get; set; }

[Parameter(
Position = 3,
Expand Down Expand Up @@ -99,7 +100,7 @@ public override void ExecuteCmdlet()
{
string resourceGroup = this.ResourceGroupName;
string restorePointCollectionName = this.Name;
string vmId = this.VmId;
string vmId = this.SourceId;
RestorePointCollection restorePointCollection;
if (this.IsParameterBound(c => c.Location))
{
Expand Down
14 changes: 7 additions & 7 deletions src/Compute/Compute/help/New-AzRestorePointCollection.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ Creates a New Restore Point Collection

### DefaultParameter (Default)
```
New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [-VmId] <String>
New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [-SourceId] <String>
[-Location <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

### RestorePointCollectionId
```
New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [[-VmId] <String>]
New-AzRestorePointCollection [-ResourceGroupName] <String> [-Name] <String> [[-SourceId] <String>]
[-RestorePointCollectionId] <String> -Location <String> [-DefaultProfile <IAzureContextContainer>]
[-WhatIf] [-Confirm] [<CommonParameters>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -127,13 +127,13 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -VmId
resource Id of the source resource used to create this restore point Collection
### -SourceId
Resource ID of the source resource used to create this restore point collection.

```yaml
Type: System.String
Parameter Sets: DefaultParameter
Aliases:
Aliases: VmId

Required: True
Position: 2
Expand All @@ -145,7 +145,7 @@ Accept wildcard characters: False
```yaml
Type: System.String
Parameter Sets: RestorePointCollectionId
Aliases:
Aliases: VmId

Required: False
Position: 2
Expand Down