編集

次の方法で共有


New-AzDataMigrationMongoDbDatabaseSetting

Creates database setting for migration for the mongoDb migration

Syntax

New-AzDataMigrationMongoDbDatabaseSetting
   -Name <String>
   [-TargetRequestUnit <Int32>]
   [-CollectionSetting <MongoDbCollectionSetting[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-AzDataMigrationMongoDbDatabaseSetting cmdlet creates the migration setting object that specifies the throughput and delete behavior. 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.

Examples

Example 1

New-AzDataMigrationMongoDbDatabaseSetting  -Name mycollection -RU 1000 -CollectionSetting @($coll1, $coll2)

Name Setting
---- -------
test Microsoft.Azure.Management.DataMigration.Models.MongoDbDatabaseSettings

Parameters

-CollectionSetting

The collection settings for the databases, refer to: New-AzureRmDmsMongoCollectionSetting

Type:MongoDbCollectionSetting[]
Aliases:Coll
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the database

Type:String
Aliases:DatabaseName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-TargetRequestUnit

The dedicated database level request unit value. If not set, that collection uses shared database RU.

Type:Nullable<T>[Int32]
Aliases:RU
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Commands.DataMigration.Models.MongoDbDatabaseSetting