New-AzDataMigrationFileShare

為 Azure Database Migration Service(經典)建立 FileShare 物件,指定要將原始資料庫備份帶回的本地網路分享。

語法

Default (預設值)

New-AzDataMigrationFileShare
    -Path <String>
    -Credential <PSCredential>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

New-AzDataMigrationFileShare 指令檔會建立 FileShare 物件,指定 Azure Database Migration Service(經典版)可備份原始資料庫的本地網路共享。 執行源 SQL Server 實例的服務帳號必須對此網路共享擁有寫入權限。

範例

範例 1

New-AzDataMigrationFileShare -Path $fileSharePath -Credential $fileShareCred
UserName    Password  Path
--------    --------  ----
domain\user $password \\fileshare\folder1

參數

-Credential

存取檔案共享的認證。

參數屬性

類型:PSCredential
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-DefaultProfile

用於與 Azure 通訊的憑證、帳號、租戶和訂閱。

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Path

檔案共享路徑。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。

輸入

None

輸出

MigrateSqlServerSqlDbDatabaseInput