azure-xplat-cli
azure-xplat-cli copied to clipboard
Can not get and update the provision status of guest agent
For classic VM, I can get and set ProvisionGuestAgent by: $vm = Get-AzureVM -ServiceName XXX -Name XXX $vm.GetInstance().ProvisionGuestAgent = $true $vm | Update-AzureVM
But for Azure CLI, the provision status of guest agent can not be got or updated by "azure vm" command. Any thought on this feature? Thanks
@devigned Any comment?
@huangpf - Any thoughts on this one?
Looks like a feature request. ASM?
Yes. For ASM. This was addressed several months ago. I'm not sure whether it's supported now. Here is the background: https://github.com/Azure/azure-linux-extensions#known-issues
Do you think it makes sense to support this feature? If not, please feel free to close this issue. Thanks.
In the absence I've finding a supported solution, I ended up creating a nodejs app that can be used to set this property. https://github.com/OctopusDeploy/azure-linux-helpers/tree/master/SetProvisionGuestAgentFlag.
I'd still like to see this functionality available in the cli though.