Comments (10)
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @amjads1 @avirishuv @Drewm3 @Vaibhav-Agar.
from azure-sdk-for-python.
Hi @mehulrjangale - It looks like the parameters
parameter of begin_create_or_update takes either an IO[bytes] or VirtualMachine.
VirtualMachine takes location as a required keyword argument.
The argument update_vm
passed in to parameters
should include location
. Example.
Thanks!
from azure-sdk-for-python.
Hi @mehulrjangale. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
from azure-sdk-for-python.
Hi @swathipil,
I've the following code:
vm.os_profile.admin_password = new_password
**update_vm** = **VirtualMachineUpdate**(os_profile=vm.os_profile)
compute_client.virtual_machines.begin_create_or_update(resource_group_name, vm_name, update_vm)
The problem is I think VirtualMachineUpdate does not have location parameter.
[https://learn.microsoft.com/en-us/python/api/azure-mgmt-compute/azure.mgmt.compute.v2024_03_01.models.virtualmachineupdate?view=azure-python]
from azure-sdk-for-python.
Hi @swathipil,
I've the following code:
vm.os_profile.admin_password = new_password **update_vm** = **VirtualMachineUpdate**(os_profile=vm.os_profile) compute_client.virtual_machines.begin_create_or_update(resource_group_name, vm_name, update_vm)
The problem is I think VirtualMachineUpdate does not have location parameter. [https://learn.microsoft.com/en-us/python/api/azure-mgmt-compute/azure.mgmt.compute.v2024_03_01.models.virtualmachineupdate?view=azure-python]
Hi, please use the model VirtualMachine
instead of VirtualMachineUpdate
from azure.mgmt.compute.models import VirtualMachine
update_vm = VirtualMachine(location="eastus", tags={'1':'2'})
from azure-sdk-for-python.
@ChenxiJiang333 @swathipil Will it work if I want to update the VM ?
from azure-sdk-for-python.
@ChenxiJiang333 @swathipil Will it work if I want to update the VM ?
It works for both to create or update the VM.
from azure-sdk-for-python.
It worked, thanks!
from azure-sdk-for-python.
Hi @mehulrjangale. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-python.
Hi @mehulrjangale, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
from azure-sdk-for-python.
Related Issues (20)
- [servicebus] AttributeError: 'NoneType' object has no attribute 'client_ready_async' when reusing async ServiceBusSender objects HOT 2
- Gemini
- Exception while exporting metrics invalid literal for int() with base 10: 'None' HOT 1
- Creating a Custom Environment in Azure ML using my compute-cluster instead of Serverless HOT 2
- Batch create presign URI HOT 3
- Weird difference with user assigned managed identity between windows and linux VMs HOT 8
- Soft deleted directory isn't being calculated while calculating capacity HOT 1
- WorkloadIdentityCredential missing in DefaultAzureCredential HOT 3
- Wrong request build when validating EASM discovery groups HOT 1
- Proxy coonection HOT 6
- Discrepancy Between Document Intelligence Python SDKs and UI Labels HOT 1
- PipelineReference HOT 1
- [Storage] Fix Storage tests that use `lease` HOT 1
- Live Test federated identity support
- Error using DefaultAzureCredential with TableServiceClient HOT 3
- [monitor - exporter] Add optional metrics/measurement param to `track_event` HOT 1
- Unable to Access Azure Key Vault from Azure Batch Nodes Despite Necessary Permissions. HOT 3
- Unable to log more than 200 parameters in a single job HOT 1
- Support Azure CLI 64-bit on Windows #18766 HOT 1
- azure-developer-devcenter needs typing updates for mypy version 1.9.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-python.