Skip to content

[DevTestLab] azure.core.exceptions.HttpResponseError: (CannotSetProperty) Cannot set or update property sourceVmId. for DTL custom_images.begin_create_or_update() #5133

@ggorge-me

Description

@ggorge-me

Link to sample

https://learn.microsoft.com/en-us/rest/api/dtl/custom-images/create-or-update?view=rest-dtl-2018-09-15&tabs=Python

Library name and version

azure-mgmt-devtestlabs 9.0.0

Language of the Sample

  • C#/.NET
  • Java
  • JavaScript/TypedScript
  • Python
  • Golang
  • Other - Please specify in Issue details field

Sample Issue Type

  • Sample not working
  • Sample missing
  • Do not understand sample

Issue details

Traceback (most recent call last):
  File "C:\tools\script\_common\create-dtl-custom-image-from-vm.py", line 103, in <module>
    create_image(
  File "C:\tools\script\_common\create-dtl-custom-image-from-vm.py", line 42, in create_image
    response = client.custom_images.begin_create_or_update(
  File "C:\Users\isac\AppData\Roaming\Python\Python39\site-packages\azure\mgmt\devtestlabs\operations\_custom_images_operations.py", line 311, in begin_create_or_update
    raw_result = self._create_or_update_initial(
  File "C:\Users\isac\AppData\Roaming\Python\Python39\site-packages\azure\mgmt\devtestlabs\operations\_custom_images_operations.py", line 260, in _create_or_update_initial
    raise HttpResponseError(response=response, error_format=ARMErrorFormat)
azure.core.exceptions.HttpResponseError: (CannotSetProperty) Cannot set or update property sourceVmId.
Code: CannotSetProperty
Message: Cannot set or update property sourceVmId.

Expected behavior

No response

Actual behavior

No response

Reproduction Steps

No response

Environment

Python 3.9.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions