Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with VM create #10

Closed
idofl opened this issue Aug 13, 2013 · 2 comments
Closed

Problems with VM create #10

idofl opened this issue Aug 13, 2013 · 2 comments

Comments

@idofl
Copy link

idofl commented Aug 13, 2013

I'm trying to run the following code to create a VM, similar to how I use the "azure vm create" CLI (for a Windows Server 2012 image).

cmd = {
command: 'vm create',
positional: [vmName, imageName, 'administrator', password],
location: location,
rdp: true
};
scripty.invoke(cmd)

The scripts runs for a second or two and then prints:
Error: Command failed: The hosted service is not valid.

If I run the azure cli "vm create" command with the same values (positional and parameters) it works without a problem (the CLI creates a cloud service for the VM).

Any ideas what is wrong with this code?

@glennblock
Copy link
Contributor

@idfol it is probably because scripty is currently pinned to an early version of the CLI. I am about to change this and will test your command to make sure it works.

@glennblock
Copy link
Contributor

@idofl fixed now, sorry for the delay!

glennblock added a commit to glennblock/azure-scripty that referenced this issue Sep 27, 2013
glennblock added a commit to glennblock/azure-scripty that referenced this issue Sep 27, 2013
glennblock added a commit to glennblock/azure-scripty that referenced this issue Jan 26, 2014
glennblock added a commit to glennblock/azure-scripty that referenced this issue Jan 26, 2014
glennblock added a commit to glennblock/azure-scripty that referenced this issue Jan 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants