WORKAROUNDUninstall all of the currently installed versions of Az.Accounts and install only a known working version, such as Az.Accounts version 2.12.1 or lower
In an elevated PowerShell session on the Active Roles Administration Service host, run the following cmdlet to uninstall all versions of Az.Accounts:
Uninstall-Module Az.Accounts -Force
After this completes successfully, run the following cmdlet:
Install-module Az.Accounts -RequiredVersion 2.12.1 -Force