你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Set-AzStorageSyncServerEndpoint
此命令允许更改服务器终结点的可调整参数。
语法
Set-AzStorageSyncServerEndpoint
[-ResourceGroupName] <String>
[-StorageSyncServiceName] <String>
[-SyncGroupName] <String>
[-Name] <String>
[-CloudTiering]
[-VolumeFreeSpacePercent <Int32>]
[-OfflineDataTransfer]
[-TierFilesOlderThanDays <Int32>]
[-LocalCacheMode <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzStorageSyncServerEndpoint
[-ResourceId] <String>
[-CloudTiering]
[-VolumeFreeSpacePercent <Int32>]
[-OfflineDataTransfer]
[-TierFilesOlderThanDays <Int32>]
[-LocalCacheMode <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzStorageSyncServerEndpoint
[-InputObject] <PSServerEndpoint>
[-CloudTiering]
[-VolumeFreeSpacePercent <Int32>]
[-OfflineDataTransfer]
[-TierFilesOlderThanDays <Int32>]
[-LocalCacheMode <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
此命令允许更改服务器终结点的可调整参数。 例如,可以随时更改云分层和云分层策略。 创建服务器终结点后,不能更改服务器终结点的多个方面,例如本地路径。
示例
示例 1
Set-AzStorageSyncServerEndpoint -ResourceGroupName "myResourceGroup" -StorageSyncServiceName "myStorageSyncServiceName" -SyncGroupName "mySyncGroupName" -Name "myServerEndpointName" -TierFilesOlderThanDays 30
此示例执行两个作,它会在指定的服务器终结点上设置新的云分层策略,该策略将服务器定向到过去 30 天内未访问的所有文件分层,它还禁用脱机数据传输模式,该模式最初在创建期间在此服务器终结点上启用。 脱机数据传输用作与批量迁移服务的互作性的一部分,例如 Azure Data Box。
参数
-AsJob
在后台运行 cmdlet
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-CloudTiering
云分层参数
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
SyncGroup 对象,通常通过参数传递。
类型: | PSServerEndpoint |
别名: | ServerEndpoint |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-LocalCacheMode
本地缓存模式参数
类型: | String |
接受的值: | DownloadNewAndModifiedFiles, UpdateLocallyCachedFiles |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
ServerEndpoint 的名称。
类型: | String |
别名: | ServerEndpointName |
Position: | 3 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-OfflineDataTransfer
云种子数据参数。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
ServerEndpoint 资源 ID
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-StorageSyncServiceName
StorageSyncService 的名称。
类型: | String |
别名: | ParentName |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SyncGroupName
SyncGroup 的名称。
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-TierFilesOlderThanDays
Tier Files Older than Days 参数
类型: | Nullable<T>[Int32] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-VolumeFreeSpacePercent
卷可用空间百分比参数
类型: | Nullable<T>[Int32] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |