I'm trying to create a new Docker for Azure CE VM in the portal.
I configure all the settings as appropriate, using an Authentication type
of Password
.
However it always fails to deploy, always with this error:
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"OSProvisioningClientError\",\r\n \"message\": \"Username specified for the VM is invalid for this Linux distribution. Error details: (000004)Failed to handle ovf-env.xml: (000007)Failed to create user account:waterloo, retcode:127, output:/bin/sh: useradd: not found\\n.\"\r\n }\r\n ]\r\n }\r\n}"}]}
The User name
I set this time was waterloo
, but it has also failed to work with every other User name I've tried.
So, what Linux distribution is it using and what is the username policy?
-
Apologies if this is very obvious, or I've referred to things incorrectly, I've only just started trying to learn Azure. Currently I'm evaluating if Azure or AWS is the way to go for my project.
Thank you!
output:/bin/sh: useradd: not found
. Whatever image you are provisioning doesn't have theuseradd
utility. It is likely Azure is using cloud-init or other provisioning system that relies on some binaries to be available in the image. The Docker image must not have these available. Though, more information is needed so someone can reproduce (what settings / steps are taken to create the VM).