I'm having trouble with the port specification. I get 2 different errors whether the port number is set or not. Here is my call
def createBuild(): regions = [{ 'Region':'WestUs', 'MaxServers':2, 'StandbyServers':1, 'DynamicStandbySettings':{ 'IsEnabled':False }}] requestBody = { 'BuildName':buildname, 'GameAssetReferences': [{ 'FileName':filename }], 'MultiplayerServerCountPerVm':1, 'Ports':[{'Name':'game', 'Num':7777, 'Protocol':'UDP'}], 'RegionConfigurations':regions, 'GameWorkingDirectory':"C:\\Assets", 'StartMultiplayerServerCommand':"C:\\Assets\\MyGame.exe -ipaddress 127.0.0.1 -port 7777 -useplayfab", 'VmSize':'Standard_A1_v2', 'OsPlatform':'Windows', 'Metadata':{}, } PlayFabMultiplayerAPI.CreateBuildWithProcessBasedServer(requestBody, createBuildCallback)
If I submit the above, I get:
{'Error': ['Specifying port number is not allowed.']}
Without 'Num' on port entry, I get:
{'Ports[0].Num': ['The Num field is required.']}
It's unclear to me what the solution is.