title | description | author | ms.topic | ms.date | ms.author | ms.service |
---|---|---|---|---|---|---|
Quickstart: Create an Game Developer VM - Bicep |
In this quickstart, you use Bicep to quickly deploy a Game Developer Virtual Machine |
dciborow |
quickstart |
08/11/2022 |
dciborow |
azure-gaming |
Important
[!INCLUDE reminder]
This quickstart will show you how to create a Windows 10 Game Developer Virtual Machine using Bicep. Game Developer Virtual Machines are cloud-based virtual machines preloaded with a suite of game developer frameworks and tools. When deployed on GPU-powered compute resources, all tools and libraries are configured to use the GPU.
An Azure subscription. If you don't have an Azure subscription, create a free account before you begin.
The Bicep file is based on the quickstart from Azure Quickstart Templates.
param vmName string
param adminName string
@secure()
param adminPass string = newGuid()
module win10 'br/public:azure-gaming/game-dev-vm:1.0.1' = {
name: 'win10_ue_4_27_2'
params: {
location : resourceGroup().location
vmName : 'bicep'
adminName : 'gdvmadmin'
adminPass : adminPass
osType : 'win10'
gameEngine: 'ue_4_27_2'
vmSize : 'Standard_D4s_v3'
}
}
outputs adminPass string = adminPass
-
Save the Bicep file as main.bicep to your local computer.
-
Deploy the Bicep file using either Azure CLI or Azure PowerShell.
az group create \ --name exampleRG \ --location eastus az deployment group create \ --resource-group exampleRG \ --template-file main.bicep \ --parameters adminName=<admin-user> \ vmName=<vm-name>
New-AzResourceGroup -Name exampleRG -Location eastus New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -adminName "<admin-user>" -vmName "<vm-name>"
[!NOTE] Replace <admin-user> with the username for the administrator account. Replace <vm-name> with the name of your virtual machine.
When the deployment finishes, you should see a message indicating the deployment succeeded.
Use the Azure CLI, or Azure PowerShell to list the deployed resources in the resource group.
az resource list \
--resource-group exampleRG
Get-AzResource -ResourceGroupName exampleRG
When no longer needed, use the Azure CLI, or Azure PowerShell to delete the resource group and its resources.
az group delete \
--name exampleRG
Remove-AzResourceGroup -Name exampleRG