Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

The generalize setting does not generalize the VM, it only marks it as generalized to the platform #92

Open
cynthn opened this issue Apr 24, 2023 · 4 comments

Comments

@cynthn
Copy link

cynthn commented Apr 24, 2023

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Use ansible-playbooks/SIG_generalized_image/01a-create-generalized-image.yml and the VM will be marked as generalized in Azure, but hasn't actually been generalized.

Any log messages given by the failure

N/A

Expected/desired behavior

There should be something in the sample that runs waagent -deprovision+user to deprovision\generalize the VM before marking the VM as generalized. You could also just have a prerequisite that you will need a VM that has already been generalized and skip creating the VM in this playbook.

OS and Version?

Linux

Versions

N/A

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@cynthn
Copy link
Author

cynthn commented May 10, 2023

@TomArcherMsft Hey Tom, is this repo no longer managed by anyone?

@TomArcherMsft
Copy link

@cynthn I do not believe it's maintained. @grayzu can give the definitive answer though as he's the PM for Ansible.

@xuzhang3
Copy link
Collaborator

xuzhang3 commented May 11, 2023

@cynthn Azure azcollection is focused on resource management. Prerequisite actions like waagent -deprovision+user are not covered by Azure azcolleciton. The docs need to add more hints to users that additional actions are required before generalizing a VM, as marking an VM generalized is the last step in generalizing a VM. This example should add more hints.

@cynthn
Copy link
Author

cynthn commented May 11, 2023

The first step SIG_generalized_image/00-prerequisites.yml walks you through creating the VM, but doesn't generalize it. Would it be possible to just remove that first step and update the sample to say the one prereq is to have a generalized VM?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants