New-AzDataMigrationFileShare
建立 Azure 資料庫移轉服務 (傳統) 的 FileShare 物件,其會指定要將源資料庫備份移至的局域網路共用。
語法
New-AzDataMigrationFileShare
-Path <String>
-Credential <PSCredential>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
New-AzDataMigrationFileShare Cmdlet 會建立 FileShare 物件,該物件會指定 Azure 資料庫移轉服務 (傳統) 可以進行源資料庫備份的局域網路共用。 執行來源 SQL Server 實例的服務帳戶必須具有此網路共用的寫入許可權。
範例
範例 1
New-AzDataMigrationFileShare -Path $fileSharePath -Credential $fileShareCred
UserName Password Path
-------- -------- ----
domain\user $password \\fileshare\folder1
參數
-Credential
存取檔案共享的認證。
類型: | PSCredential |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Path
檔案共享路徑。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None