Configuration/Upgrades/SpatioTemporalDatastoreStart.ps1

Configuration SpatioTemporalDatastoreStart{
    param(
        [System.Management.Automation.PSCredential]
        $PrimarySiteAdmin,

        [System.String]
        $ServerMachineName
    )
    
    Import-DscResource -ModuleName PSDesiredStateConfiguration 
    Import-DscResource -ModuleName ArcGIS 
    Import-DscResource -Name ArcGIS_DataStoreUpgradeSpatioTemporalStart

    Node $AllNodes.NodeName {
        $NodeName = $Node.NodeName
        $ServerMachineHostName = [System.Net.DNS]::GetHostByName($ServerMachineName).HostName
        
        ArcGIS_DataStoreUpgradeSpatioTemporalStart SpatioTemporalDatastoreStart{
            ServerHostName = $ServerMachineHostName
            SiteAdministrator = $PrimarySiteAdmin
            Ensure = 'Present'
        }
    }
}