Azure-cli: az vm create: add flag for "requireGuestProvisionSignal" api field

Created on 28 Mar 2020  路  12Comments  路  Source: Azure/azure-cli

Is your feature request related to a problem? Please describe.
Yes. I would like to boot VMs without the agent, but I do want to boot them through the CLI.

Describe the solution you'd like
Expose a az vm create flag that corresponds to the requireGuestProvisionSignal that is part of hte VM Create REST API.

Ex:

az vm create --image /sub/image-without-agent --require-guest-provisioning-signal false

Describe alternatives you've considered
I can't come up with any.

Compute Service Attention

Most helpful comment

This parameter is also showing up in VM templates exported from the portal which causes an error when trying to use said template. Then I had to track down this thread to figure out what was going on.

All 12 comments

@qwordy please take a look.

I get an error when testing this field.

The property 'requireGuestProvisionSignal' is not valid because the 'Microsoft.Compute/Agentless' feature is not enabled for this subscription

When I try to register it, I get

The feature 'Agentless' could not be found.

Can you use this field successfully?

It seems like it's been part of the public Compute API for years, I just assumed it was available. I was waiting for CLI support to test it out.

@qwordy I鈥檓 having the same problem with the 'requireGuestProvisionSignal' error. Did you find a solution? If so I would appreciate the help you could provide me.

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv, @axayjo, @vaibhav-agar.

Hi service team, do you know how to use requireGuestProvisionSignal? I try to register the feature, I get "The feature 'Agentless' could not be found."

@qwordy In my case, I received that error while trying to deploy Rome resources through a template. I fixed it by removing the line.

"requireGuestProvisionSignal": true

This property was inappropriately added to the public APIs, and it is not currently supported. This was added at one point in the past by someone doing experimentation, but it should not have shown up in the public APIs.

I will work with the team to get this property removed from the public APIs because it is not supported for general usage.

Okay, I'll explore other options in the meantime. I don't know if y'all want to leave this open to track removal from API, but we can close this one whenever. Thanks for the update @Drewm3!

Also, since I didn't link them already... for anyone else here following breadcrumbs, the related walinuxagent issue: https://github.com/Azure/WALinuxAgent/issues/1888

Thank you @Drewm3

This parameter is also showing up in VM templates exported from the portal which causes an error when trying to use said template. Then I had to track down this thread to figure out what was going on.

Was this page helpful?
0 / 5 - 0 ratings