Skip to content

LabBuilder.py: destroy option does not work on shutdown VMs #11

@tsluyter

Description

@tsluyter

Reproduction:

  1. Create lab environment green-field using the LabBuilder.py script.
  2. Shutdown the VMs through Azure Portal or through the OS running in the VM.
  3. Run the LabBuilder.py script with "-destroy".

This results in:

  1. ws01 being destroyed, but dc and linux still being there.
  2. The following error message:
Error: compute.VirtualMachineExtensionsClient#Delete: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="OperationNotAllowed" Message="Cannot modify extensions in the VM when the VM is not running."

Error: compute.VirtualMachineExtensionsClient#Delete: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="OperationNotAllowed" Message="Cannot modify extensions in the VM when the VM is not running."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions