This morning I gave it another go to get this working and was successful. I uninstalled the software and reinstalled with success. I am using Windows Server 2022 core. It occurred to me that the agent was installed with wrong or missing values. I first attempted to install the application without the service principal and secret. While I am not 100% this is the reason its my best guess. I searched for the application by
get-wmiobject -class win32_product | where {$_.name -like "Azure *"}
Once confirmed repeat the command wrapped in parentheses
(get-wmiobject -class win32_product | where {$_.name -like "Azure *"}).uninstall()