共用方式為


New-AzStorageSyncGroup

此命令會在指定的記憶體同步服務內建立新的同步群組。

語法

New-AzStorageSyncGroup
   [-ResourceGroupName] <String>
   [-StorageSyncServiceName] <String>
   -Name <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzStorageSyncGroup
   [-ParentObject] <PSStorageSyncService>
   -Name <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzStorageSyncGroup
   [-ParentResourceId] <String>
   -Name <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

此命令會在指定的記憶體同步服務內建立新的同步群組。 同步群組可用來描述位置拓撲,稱為端點,其會同步處理儲存在任何一個端點內的任何檔案。 同步群組包含雲端端點,其參考 Azure 檔案共用,也包含參考已註冊伺服器上特定本機路徑的伺服器端點。

範例

範例 1

New-AzStorageSyncGroup -ResourceGroupName "myResourceGroup" -StorageSyncServiceName "myStorageSyncServiceName" -Name "mySyncGroupName"

此命令會在指定的記憶體同步服務內建立新的同步群組。

參數

-Confirm

執行 Cmdlet 之前先提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

SyncGroup 的名稱。

類型:String
別名:SyncGroupName
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ParentObject

StorageSyncService 物件,通常透過 參數傳遞。

類型:PSStorageSyncService
別名:StorageSyncService
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ParentResourceId

StorageSyncService 父資源標識符

類型:String
別名:StorageSyncServiceId
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ProgressAction

{{ 填滿 ProgressAction 描述 }}

類型:ActionPreference
別名:proga
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源群組名稱。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-StorageSyncServiceName

StorageSyncService 的名稱。

類型:String
別名:ParentName
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

String

PSStorageSyncService

輸出

PSSyncGroup