Scenarios - Dynamics 365

This sample script deploys Dynamics 365 either fully on one machine or split up into three individual machines.

To customize your installation, try one of the role parameters you can find with Get-LabMachineRoleDefinition -Role DynamicsFull -Syntax. All components roles of Dynamics use the same parameters.

    # Select platform, defaults to HyperV
    $Hypervisor = 'HyperV',

    # Indicates that the installation of Dynamics should be split
    # into its three components

New-LabDefinition -name dynamics -DefaultVirtualizationEngine HyperV

Add-LabDomainDefinition -AdminU Install -AdminP Somepass1
Set-LabInstallationCredential -Username Install -Password Somepass1

Add-LabIsoImageDefinition -name SQLServer2017 -Path $labsources/ISOs/en_sql_server_2017_enterprise_x64_dvd_11293666.iso

Add-LabMachineDefinition -Name DDC1 -Memory 4GB -Roles RootDc, CARoot -Domain -OperatingSystem 'Windows Server 2019 Datacenter (Desktop Experience)'
Add-LabMachineDefinition -Name DDB1 -Memory 8GB -Roles SQLServer2017 -Domain -OperatingSystem 'Windows Server 2019 Datacenter (Desktop Experience)'

if ($IndividualComponents.IsPresent)
    Add-LabMachineDefinition -Name DDYF1 -Memory 6GB -Roles DynamicsFrontend -Domain -OperatingSystem 'Windows Server 2019 Datacenter (Desktop Experience)'
    Add-LabMachineDefinition -Name DDYB1 -Memory 6GB -Roles DynamicsBackend -Domain -OperatingSystem 'Windows Server 2019 Datacenter'
    Add-LabMachineDefinition -Name DDYA1 -Memory 4GB -Roles DynamicsAdmin -Domain -OperatingSystem 'Windows Server 2019 Datacenter (Desktop Experience)'
    Add-LabMachineDefinition -Name DDY1 -Memory 16GB -Roles DynamicsFull -Domain -OperatingSystem 'Windows Server 2019 Datacenter (Desktop Experience)'