> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Windows 的操作系统补丁级别更新

> PlayFab Multiplayer Servers 如何在托管容器上推出每月一次的 Windows 操作系统补丁更新,让托管游戏服务器 VM 保持 Azure 认证映像。

# Windows 的操作系统补丁更新

PlayFab Multiplayer Servers 托管的 Windows 容器会经过有条理的操作系统补丁更新流程,以确保游戏服务器使用最新的安全更新运行。每月,Azure Compute 会认证一个 Windows 操作系统映像,该映像已集成到 Multiplayer Servers 中,供开发人员在构建创建过程中通过 "Windows Server Core Preview" 切换选项进行选择。鼓励开发人员测试使用 "Windows Server Core Preview" 选项构建的非生产游戏服务器。

![多人游戏 - 操作系统补丁更新 UX](https://mintcdn.com/microsoft-4404708b/U1LR64ZWxo45eXwl/images/playfab/multiplayer/servers/ospatchupdate_ux.png?fit=max\&auto=format\&n=U1LR64ZWxo45eXwl\&q=85\&s=08f42743a1acb3205b0afcb7ac819bd8)

30 天后,Multiplayer Servers 会将 Windows Server Core Preview 迁移到 Windows Server Core 映像选项 - 这标志着 PlayFab 批准的操作系统映像已准备好用于生产。此过程每 30 天重复一次,将操作系统预览版映像循环到其主线操作系统 core 映像。如果使用与 PlayFab 的操作系统 core 版本不匹配的操作系统 core 版本构建的游戏服务器,PlayFab 将使用最新的主线操作系统 core 映像自动更新你的游戏构建服务器。此过程将自动应用,开发人员无需进行任何构建更改。

## 补丁更新周期

下图说明了操作系统补丁级别更新周期。

![多人游戏 - 操作系统补丁更新周期](https://mintcdn.com/microsoft-4404708b/U1LR64ZWxo45eXwl/images/playfab/multiplayer/servers/ospatchupdate_cycle.png?fit=max\&auto=format\&n=U1LR64ZWxo45eXwl\&q=85\&s=1fcc291c037ab154869e911138930ea6)

| 阶段 | 相关方 | 说明 |
| - | - | - |
| 1 | 客户 | 持续集成和测试过程使用操作系统 core 部署生产游戏构建,并使用操作系统预览版测试游戏构建 |
| 2 | Azure | MPS 验证新发布的 Windows 操作系统补丁 |
| 3 | MPS | PlayFab 使用 Windows 操作系统补丁替换 MPS 操作系统预览版 |
| 4 | MPS | PlayFab 使用 30 天前的 MPS 操作系统预览版替换 MPS 操作系统 core |
| 5 | MPS | PlayFab 使用操作系统 Core 自动更新游戏构建 |

## 最佳实践

1. 鼓励开发人员使用操作系统预览版映像选项创建和测试其非生产游戏服务器构建。
2. 具有成熟的构建以及持续集成和部署流程的开发人员应考虑到操作系统映像更新每 30 天循环一次

## 约束

1. 补丁更新过程每月发生
2. 开发人员无法退出每月的操作系统补丁级别更新
3. 补丁更新过程仅适用于 Windows 托管容器,不适用于自定义容器或 Linux。

> [!NOTE]
>
> * 游戏服务器构建一经创建就是不可变的。因此,开发人员无法在操作系统映像预览版和操作系统映像 core 之间切换。- 如果生产环境中运行的游戏服务器的构建版本比最新版本旧,则它将自动更新到最新的操作系统 core 映像版本。这仅在任何新的多人游戏服务器分配请求时自动应用。


## Related topics

- [XSystemAnalyticsInfo](https://docs.xbox.com/zh-CN/reference/system/xsystem/structs/xsystemanalyticsinfo.md)
- [适用于 Postman 的 PlayFab REST API 集合快速入门](https://docs.xbox.com/zh-CN/services/playfab/sdks/postman/postman-quickstart.md)
- [WdDeleteErrorCallback](https://docs.xbox.com/zh-CN/reference/remoting/callbacks/wddeleteerrorcallback.md)
- [WdDeleteRemoteFiles](https://docs.xbox.com/zh-CN/reference/remoting/functions/wddeleteremotefiles.md)
- [WdDuplicateCancellationHandle](https://docs.xbox.com/zh-CN/reference/remoting/functions/wdduplicatecancellationhandle.md)
