Hi,
The error we are getting on deployment of all cloud hosted environments is "Script [Run-CommandAOSServiceResetAosAdminUser] failed execution against <VMNAME>. Last Result: 0xFFFFFFF ()."
This looks like the solution is here www.mathdax.ca/.../d365-finance-and-operations-les-ports.html
The issue is the firewall settings on the virtual network we have setup for all out AX cloud hosted boxes. We will setup the firewall rules as suggested in the article and retry.
Thanks
Dave
Article translation to English
"received the following error while deploying a Cloud-Hosted environment in my Azure infrastructure:
Attempted to remotely execute a powershell script but was unable to reach the Windows Remote Management service. Please make sure the virtual machine in resource group is accessible.
In order to correct the problem, I opened the ports to access WinRM and try a new deployment. This time I got the following message:
Script [Run-CommandAOSServiceResetAosAdminUser] failed execution against VM. Last Result: 0xFFFFFFF ().
The problem is still the firewall. In fact, this is because I am selecting a VNET and a subnet that already exists in my Azure infrastructure. The subnet is attached to a Network Security Group (NSG) which restricts externally accessible ports. Since I was unable to find the port requirements for deploying a Cloud-Hosted environment, I did a deployment and let LCS create the VNET and the subnet. Then the deployment was a success and I went to look at the default configuration of the NSG.
Then just change the permissions of the existing NSG so I want to use it for future deployments." Credit to Mathieu Tessier for posting this solution.