Azure Arc connection Error: Invalid namespace

Johnny Nguyen 0 Reputation points
2024-03-12T19:10:10.3433333+00:00

Hello All,

I have a vendor who is applying Windows Server 2012 1-Year ESU's to some devices that I have, however, my vendor uses Azure Arc for these ESU's.

The servers themselves are not on Azure. The vendor runs a powershell script to establish an Azure Arc connection, then they are able to apply the ESU.

There is on server in particular that is having trouble establishing this connection, and I'm not able to understand/identify what the issue is.

FYI, there is another server on the same network that connects without any issues. I have also tried running this script with the firewall unrestricted, no luck.

The output from running the script returns this invalid namespace error:

Screenshot (2)

I desperately need to get this connection established, otherwise the client will have a much harder time planning and budgeting for an upgrade. Any ideas are greatly appreciated.

Thank you,

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
337 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,139 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 20,431 Reputation points
    2024-03-14T08:20:46.0133333+00:00

    Johnny Nguyen, thank you for the detailed information and narrowing it down to the installation issue.

    The script shared earlier, downloads the installation script - install_windows_azcmagent.ps1 which contains code for downloaded the AzureConnectedMachineAgent.msi and installing it.

    If this file (install_windows_azcmagent.ps1) was already downloaded to $env:TEMP folder (you can run $env:TEMP in powershell to get the exact location), please run it from an elevated (admin) powershell using the cmd below:

    & "$env:TEMP\install_windows_azcmagent.ps1";
    

    Note the output in the PowerShell window.

    Also, note that the detailed msi log files for the Arc agent installation are being generated in $env:Temp\installationlog.txt

    In case the installation fails again, even after trying it from admin powershell window check, please check the following:

    1. Application logs in the Eventviewer of the machine
    2. $env:Temp\installationlog.txt file for details on error
    3. Output in powershell window, if any

    Please let me know if you have any questions.