Skip to content

Commit fdf7de0

Browse files
committed
fix new commandlet naming to take constant of ResourceManager's AzureRM prefix
1 parent 91fb73b commit fdf7de0

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

src/ResourceManager/DataMigration/Commands.DataMigration/Cmdlets/NewMongoDbCollectionSettingCmdlet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ namespace Microsoft.Azure.Commands.DataMigration.Cmdlets
2222
/// <summary>
2323
/// Class that creates a new instance of the mongo db collection info
2424
/// </summary>
25-
[Cmdlet(VerbsCommon.New, "AzureRmDataMigrationMongoDbCollectionSetting", SupportsShouldProcess = true), OutputType(typeof(MongoDbCollectionSetting))]
26-
[Alias("New-AzureRmDmsMongoDbCollectionSetting")]
25+
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataMigrationMongoDbCollectionSetting", SupportsShouldProcess = true), OutputType(typeof(MongoDbCollectionSetting))]
26+
[Alias("New-"+ ResourceManager.Common.AzureRMConstants.AzureRMPrefix +"DmsMongoDbCollectionSetting")]
2727
public class NewMongoDbCollectionSettingCmdlet : DataMigrationCmdlet
2828
{
2929
[Parameter(

src/ResourceManager/DataMigration/Commands.DataMigration/Cmdlets/NewMongoDbDatabaseSettingCmdlet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ namespace Microsoft.Azure.Commands.DataMigration.Cmdlets
2121
/// <summary>
2222
/// Class that creates a new instance of the mongo db target database setting
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.New, "AzureRmDataMigrationMongoDbDatabaseSetting", SupportsShouldProcess = true), OutputType(typeof(MongoDbDatabaseSetting))]
25-
[Alias("New-AzureRmDmsMongoDbDatabaseSetting")]
24+
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataMigrationMongoDbDatabaseSetting", SupportsShouldProcess = true), OutputType(typeof(MongoDbDatabaseSetting))]
25+
[Alias("New-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DmsMongoDbDatabaseSetting")]
2626
public class NewMongoDbDatabaseSettingCmdlet : DataMigrationCmdlet
2727
{
2828
[Parameter(
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
---
22
external help file: Microsoft.Azure.Commands.DataMigration.dll-Help.xml
33
Module Name: AzureRM.DataMigration
4-
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.datamigration/New-AzureRmDmsMongoDbCollectionSettings
4+
online version: https://docs.microsoft.com/en-us/powershell/module/az.datamigration/New-AzDataMigrationMongoDbCollectionSetting
55
schema: 2.0.0
66
---
77

8-
# New-AzureRmDataMigrationMongoDbCollectionSetting
8+
9+
# New-AzDataMigrationMongoDbCollectionSetting
910

1011
## SYNOPSIS
1112
Creates collection setting for migration according for the mongoDb migration
1213

1314
## SYNTAX
1415

1516
```
16-
New-AzureRmDataMigrationMongoDbCollectionSetting -Name <Name> [-TargetRequestUnit <TargetRequestUnit>] [-CanDelete] [-ShardKey <ShardKey>]
17+
New-AzDataMigrationMongoDbCollectionSetting -Name <Name> [-TargetRequestUnit <TargetRequestUnit>] [-CanDelete] [-ShardKey <ShardKey>]
1718
```
1819

1920
## DESCRIPTION
20-
The New-AzureRmDataMigrationMongoDbCollectionSetting cmdlet creates the migration setting object that specifies the throughput and delete behavior.
21+
The New-AzDataMigrationMongoDbCollectionSetting cmdlet creates the migration setting object that specifies the throughput and delete behavior.
2122
The output the cmdlet is key value pair with name of the collection, and value of the setting. The output is used in assembling
2223
the database level settings for migration.
2324

2425
## EXAMPLES
2526

2627
### Example 1
2728
```
28-
PS C:\> New-AzureRmDataMigrationMongoDbCollectionSetting -Name myCollection -TargetRequestUnit 1000 -CanDelete -ShardKey "_id:-1,age:1,name"
29+
PS C:\> New-AzDataMigrationMongoDbCollectionSetting -Name myCollection -TargetRequestUnit 1000 -CanDelete -ShardKey "_id:-1,age:1,name"
2930
3031
```
3132

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
---
22
external help file: Microsoft.Azure.Commands.DataMigration.dll-Help.xml
33
Module Name: AzureRM.DataMigration
4-
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.datamigration/New-AzureRmDmsMongoDbDatabaseSettings
4+
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.datamigration/New-AzDataMigrationMongoDbDatabaseSetting
55
schema: 2.0.0
66
---
77

8-
# New-AzureRmDataMigrationMongoDbDatabaseSetting
8+
# New-AzDataMigrationMongoDbDatabaseSetting
99

1010
## SYNOPSIS
1111
Creates database setting for migration for the mongoDb migration
1212

1313
## SYNTAX
1414

1515
```
16-
New-AzureRmDataMigrationMongoDbDatabaseSetting -Name <Name> [-RU <RU>] -CollectionSetting <Collections>
16+
New-AzDataMigrationMongoDbDatabaseSetting -Name <Name> [-RU <RU>] -CollectionSetting <Collections>
1717
```
1818

1919
## DESCRIPTION
20-
The New-AzureRmDataMigrationMongoDbDatabaseSetting cmdlet creates the migration setting object that specifies the throughput and delete behavior.
20+
The New-AzDataMigrationMongoDbDatabaseSetting cmdlet creates the migration setting object that specifies the throughput and delete behavior.
2121
The output is a key value pair with name of collection and value of the setting, which can be used in invoking the migration task.
2222

2323
## EXAMPLES
2424

2525
### Example 1
2626
```
27-
PS C:\> New-AzureRmDataMigrationMongoDbDatabaseSetting -Name mycollection -RU 1000 -CollectionSetting @(coll1, coll2)
27+
PS C:\> New-AzDataMigrationMongoDbDatabaseSetting -Name mycollection -RU 1000 -CollectionSetting @(coll1, coll2)
2828
2929
```
3030

0 commit comments

Comments
 (0)