Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 9 tasks
ggorge-etiqa opened this issue Oct 31, 2024 · 1 comment
Labels
customer-reported question Further information is requested

Comments

@ggorge-etiqa
Copy link

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

@ggorge-etiqa ggorge-etiqa changed the title [Sample Issue] azure.core.exceptions.HttpResponseError: (CannotSetProperty) Cannot set or update property sourceVmId. for DTL custom_images.begin_create_or_update() [DevTestLab] azure.core.exceptions.HttpResponseError: (CannotSetProperty) Cannot set or update property sourceVmId. for DTL custom_images.begin_create_or_update() Oct 31, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added question Further information is requested customer-reported labels Oct 31, 2024
@ggorge-etiqa
Copy link
Author

It seems that the error is thrown when you try to create/update an existing custom image from a different VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant