In order to use and view the PlayFab Multiplayer Servers, you need to enable the feature. If you are a new user, we recommend that you use the Game Manager method to enable this feature. For instructions, see Enable the PlayFab Server feature.
Get your title ID and developer secret key
-
Get your PlayFab title ID
- Log into your developer account on PlayFab.com
- In Game Manager, go to My Studios and Titles page. Look for your game title and get the PlayFab game title ID
-
Get the developer secret key for the title
- In Game Manager, select your title > settings (gear icon)
- Select Title settings, then select the Secret Keys tab to get the developer secret key
Install the PlayFab MultiplayerAPI PowerShell module
- Open Windows PowerShell as an Administrator
- If you have previously installed PlayFab Multiplayer PowerShell module, uninstall it with following command. This module is now deprecated.
- Install the new PlayFabMultiplayer API module
- Learn more about the cmdlets in the PlayFab Multiplayer PowerShell module by running the following command. Or you can refer to the PlayFabMultiplayerApi cmdlet reference documentation.
Obtain an EntityToken for your title
Run the following command using your title ID and associated developer key. You must run this command at the start of any session when using the PlayFabMultiplayerApi PowerShell module. It calls the GetEntityToken API to obtain an EntityToken and stores it in an environment variable for use in future cmdlets.Enable multiplayer servers feature for your title
Run this cmdlet below to enable the Multiplayer Servers features. It calls the enable multiplayer servers API.Title must have a valid payment instrument associated with it in order to enable Multiplayer Servers, see Enable PlayFab Multiplayer Servers using Game Manager to add your payment information.
Upload an asset
Uploading an asset is mandatory when you’re deploying a build for Windows servers. This is because your assets customize the managed Windows container image. However, it’s optional when deploying a build for Linux servers since you’re able to customize the Linux container image. To learn more, see Create and deploy Linux Builds. Run this command to upload an asset.- Filepath: Path to the local file you want to upload
- AssetName: Name of the asset to upload
Create a build
- When creating a build for Windows servers, you need to have uploaded an asset. If not, see Upload an asset.
- When creating a build for Linux servers, you need to have uploaded your custom Linux container image to your PlayFab container registry. To learn more, see Create and deploy Linux Builds.
Make sure you use the correct values for vmSize__ and __regions if you plan to take advantage of resources offered for free evaluation.
Shutting down VMs
There are three ways to shut down VMs- Set a region’s target standby to 0, this will shut down VMs for this region only.
- Delete a specific region from a build.
- Delete the whole build, this will shut down VMs across all regions for this build.
