Comments (6)
If you run:
az vm get --resourcegroup foo --vm_name bar --expand instanceView
you should get the instance view, which has the statuses as a child item (there is no statuses property directly on the returned virtual machine).
from azure-cli.
Sure, but we agree this is broken, right?
from azure-cli.
Example from recent build:
jasonsha@JasonShaMBP: ~ $ az vm show -g foo -n bar --expand asdf
expand must be type InstanceViewTypes.
Traceback (most recent call last):
File "/usr/local/az/envs/default/lib/python2.7/site-packages/azure/cli/main.py", line 50, in main
cmd_result = APPLICATION.execute(args)
File "/usr/local/az/envs/default/lib/python2.7/site-packages/azure/cli/application.py", line 103, in execute
result = args.func(params)
File "/usr/local/az/envs/default/lib/python2.7/site-packages/azure/cli/commands/__init__.py", line 204, in _execute_command
result = operation(client, **kwargs) if client else operation(**kwargs)
File "/usr/local/az/envs/default/lib/python2.7/site-packages/azure/mgmt/compute/operations/virtual_machines_operations.py", line 356, in get
query_parameters['$expand'] = self._serialize.query("expand", expand, 'InstanceViewTypes')
File "/usr/local/az/envs/default/lib/python2.7/site-packages/msrest/serialization.py", line 352, in query
raise TypeError("{} must be type {}.".format(name, data_type))
TypeError: expand must be type InstanceViewTypes.
from azure-cli.
It only works with instanceView, perhaps we could make expand a flag and auto-expand instanceView
from azure-cli.
The SDK has been updated to (at least for vm show
) only support the string instanceView. The type attribute of the parameter should be updated.
from azure-cli.
Cleaning up old issues, reopen if this is still active.
from azure-cli.
Related Issues (20)
- netappfiles volume update --usage-threshold confuses GB and TB when sanitizing input HOT 1
- `az storage blob download` should support resuming broken downloads HOT 1
- GitHub.Network resource provider stuck registering status HOT 4
- CLI changes for VNet Carrying VIP for Storage regional traffic for 1PCustomers. HOT 2
- `az login` results TypeError HOT 4
- az deploy failed HOT 2
- [Azurebackup & Restore ] What does the backuprestore.json file does here ? Unable to understand HOT 1
- Azure CLI configuration - make everything configurable via environment variables and configuration files HOT 1
- az cli doesnt return status with web apps, processes never finish HOT 7
- Issue with `az monitor data-collection rule create` when updating existing DCR rule HOT 1
- Cannot use MSI to copy a blob between containers across storage accounts HOT 3
- az webapp config access-restriction set Service Tags validation "{"value":[],"nextLink":""}" response HOT 6
- Authentication Token Failures on Entra Joined Autopilot devices causing build failures HOT 1
- Provide an example of the output of az sig image-definition show. HOT 1
- `az cognitiveservices account create` command allows setting maximum wait time HOT 3
- Authentication with user managed identity fails / hardcoded APIPA ip-address HOT 3
- Error: No ML Server install Path found in SOFTWARE\Microsoft\R Server when using azure-ml-admin-cli HOT 2
- az aks create failes with error message No module named '_cffi_backend' HOT 7
- Test Homebrew Formula task fails HOT 1
- az account get-access-token --resource https://cognitiveservices.azure.com <Response 400> from Cloud shell HOT 3
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-cli.