question

01F0 avatar image
01F0 asked

Get-PFMultiplayerBuild, where's the BuildStatus?

Hi!


I'm using this command to determine whether a build is up:

Get-PFMultiplayerBuild | Select-Object -First 1

Response:

BuildId                       : 4c8c4058-f2d6-46ed-b60e-6353bfc535f5
BuildName                     : PSTest_build
BuildStatus                   :
ContainerFlavor               :
ContainerRunCommand           :
CreationTime                  : 9/26/2020 9:07:16 AM
CustomGameContainerImage      :
GameAssetReferences           :
GameCertificateReferences     :
InstrumentationConfiguration  :
Metadata                      : {}
MultiplayerServerCountPerVm   : 0
OsPlatform                    :
Ports                         :
RegionConfigurations          :
ServerType                    :
StartMultiplayerServerCommand :
VmSize                        :

No BuildStatus, unfortunately.

I can see that the GameManager call fetches this value without any problem through this API call:

https://developer.playfab.com/en-US/<my id>/multiplayer/server/builds/all

  • Is the Powershell API wrapper missing that specific property?
  • Is it Open Source so I can add it somewhere?
apismultiplayer
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ravarna avatar image
ravarna answered

You might want to use -Detailed parameter. The cmdlet by default just gets the build summaries, which doesn't have the buildstatus field populated. However, note that the -Detailed will make a lot more calls since it will try to get detailed information for each build.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Citrus Yan avatar image Citrus Yan commented ·

Thanks for calling that out! Not sure why I missed that in the first place:(

1 Like 1 ·
Citrus Yan avatar image
Citrus Yan answered

Thanks for your feedback on this. Yes, that’s the behavior of the current PowerShell module, as we can see in this repo: https://github.com/PlayFab/MultiplayerPowershell/blob/master/PfMultiplayerCmdlets/GetPFMultiplayerBuild.cs

You can modify the source code to meet your needs, and, at the meantime, I’ll report this issue to the related-team for further investigation.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.