Digging a little more I found this cmdlet: Set-AzAutomationDscNode and was able to create the following script for that purpose:
param (
[String]$PathToMof,
[String]$AutomationAccountName
[String]$ResourceGroupName
)
Import-module AZ.Automation
Connect-AzAccount
# Get Node Name from Mof Path
$NodeName = (Get-ItemProperty -path $PathToMof).BaseName
# Get Configuration Name from Mof Content
$Line = Get-Content $PathToMof | Select-String -SimpleMatch "ConfigurationName = " | Select-Object -First 1
$ConfigName = [regex]::Matches($Line, "(?<=([`"']))(?:(?=(\\?))\2.)*?(?=\1)").Value
$AzParams = @{
AutomationAccountName = $AutomationAccountName
ResourceGroupName = $ResourceGroupName
}
# Import Complied Configuration to Az Automation
$NodeConfig = Import-AzAutomationDscNodeConfiguration @AzParams -ConfigurationName $ConfigName -Path $PathToMof
# Get Node Object to Extract ID
$AzAutoNode = Get-AzAutomationDscNode @AzParams -Name $NodeName
# Assign Node Configuration
Set-AzAutomationDscNode @AzParams -Id $AzAutoNode.Id -NodeConfigurationName $NodeConfig.Name