< Back
New-PFGameBuild
Post
NAME New-PFGameBuild
SYNOPSIS
Creates a game server build.
SYNTAX
New-PFGameBuild [-BuildName] <String> [-AssetName] <String> [-AssetMountPath] <String> [-StartGameCommand]
<String> [-MappedPorts] <Object> [-VMSize] <Object> [-BuildCerts] <Object> [<CommonParameters>]
DESCRIPTION
Creates a game server build. Currently hard-coded to create a Windows Server Core build.
PARAMETERS
-BuildName <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AssetName <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AssetMountPath <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-StartGameCommand <String>
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MappedPorts <Object>
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VMSize <Object>
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BuildCerts <Object>
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$VMSelection = [PlayFab.EntityModels.AzureVMSize]::Standard_F4
$Ports = New-object PlayFab.EntityModels.Port
$Ports.Name = "Test Port"
$Ports.Num = 3055
$Ports.Protocol = [PlayFab.EntityModels.ProtocolType]::UDP
$BuildCert = New-Object 'System.Collections.Generic.List[String]'
$Buildcert.Add("WeirdErrorTest")
$Buildcert.Add("FakeCert")
New-PFGameBuild -BuildName "PowerShellTest" -AssetName "HaroRunner" -AssetMountPath "C:\\Asset\\" -StartGameCommand
"C:\\Assets\\WinTestRunnerGame.exe" -MappedPorts $Ports -VMSize $VMSelection -BuildCerts $BuildCert
RELATED LINKS
SYNOPSIS
Creates a game server build.
SYNTAX
New-PFGameBuild [-BuildName] <String> [-AssetName] <String> [-AssetMountPath] <String> [-StartGameCommand]
<String> [-MappedPorts] <Object> [-VMSize] <Object> [-BuildCerts] <Object> [<CommonParameters>]
DESCRIPTION
Creates a game server build. Currently hard-coded to create a Windows Server Core build.
PARAMETERS
-BuildName <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AssetName <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AssetMountPath <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-StartGameCommand <String>
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MappedPorts <Object>
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VMSize <Object>
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-BuildCerts <Object>
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$VMSelection = [PlayFab.EntityModels.AzureVMSize]::Standard_F4
$Ports = New-object PlayFab.EntityModels.Port
$Ports.Name = "Test Port"
$Ports.Num = 3055
$Ports.Protocol = [PlayFab.EntityModels.ProtocolType]::UDP
$BuildCert = New-Object 'System.Collections.Generic.List[String]'
$Buildcert.Add("WeirdErrorTest")
$Buildcert.Add("FakeCert")
New-PFGameBuild -BuildName "PowerShellTest" -AssetName "HaroRunner" -AssetMountPath "C:\\Asset\\" -StartGameCommand
"C:\\Assets\\WinTestRunnerGame.exe" -MappedPorts $Ports -VMSize $VMSelection -BuildCerts $BuildCert
RELATED LINKS