Skip to content

Latest commit

 

History

History
142 lines (107 loc) · 4.31 KB

quickstart-bicep.md

File metadata and controls

142 lines (107 loc) · 4.31 KB
title description author ms.topic ms.date ms.author ms.service
Quickstart: Deploy Unreal Cloud DDC - Bicep
In this quickstart, you use Bicep to quickly create an Unreal Cloud DDC deployment.
dciborow
quickstart
08/11/2022
dciborow
azure-gaming

Quickstart: Create an Unreal Cloud DDC using Bicep

[!INCLUDE retire-banner]

This quickstart will show you how to create an Unreal Cloud DDC deployment using Bicep.

Review the Bicep file

The Bicep file is based on the quickstart from Azure Quickstart Templates.

param name                     string = 'horde-cluster'
param agentPoolName            string = 'k8agent'
param location                 string = 'eastus2'
param managedResourceGroupName string = 'mrg'
param agentPoolCount           int    = 3

var managedResourceGroupId = '${subscription().id}/resourceGroups/${resourceGroup().name}-${managedResourceGroupName}'

resource hordeStorage 'Microsoft.Solutions/applications@2017-09-01' = {
  location: location
  kind: 'MarketPlace'
  name: name
  plan: {
    name: 'aks'
    product: 'horde-storage-preview'
    publisher: 'microsoft-azure-gaming'
    version: '0.0.4'
  }
  properties: {
    managedResourceGroupId: managedResourceGroupId
    parameters: {
      location: {
        value: location
      }
      name: {
        value: name
      }
      agentPoolCount: {
        value: agentPoolCount
      }
      agentPoolName: {
        value: agentPoolName
      }
    }
    jitAccessPolicy: null
  }
}

Deploy the Bicep file

  1. Save the Bicep file as main.bicep to your local computer.

  2. 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 name=<horde-storage-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.

Review deployed resources

Azure CLI, or Azure PowerShell to list the deployed resources in the resource group.

az resource list \
  --resource-group managedResourceGroupId
Get-AzResource -ResourceGroupName managedResourceGroupId

Clean up resources

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

Next steps

See also