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)
- az webapp traffic-routing set restarts deployment slot HOT 5
- Update Build machine in AzureML Workspace HOT 4
- az monitor scheduled-query is missing the optional parameter --override-query-time-range HOT 1
- az monitor log-analytics query incorrectly process multiline analytics-query parameter HOT 1
- Azure Container Registry - Cache Rule docker library endpoint HOT 2
- az network private-dns zone list fails with wrong error message HOT 6
- Exception of type 'Microsoft.Graph.AGS.Contracts.ClaimsChallengeRequiredException' was thrown. HOT 2
- `az login` failing with "User cancelled the Accounts Control Operation" after double upgrading to 2.61.0 HOT 2
- Add support for az network application-gateway waf-policy Bot 1.1 ruleset HOT 1
- is there any support to create quota alerts for a subscription using cli HOT 1
- Azure network bastion ssh and AAD - bad permissions HOT 3
- [Azure Arc] az k8s-runtime load-balancer enable failing with No module named 'azure.mgmt.kubernetesconfiguration' HOT 2
- BYOIP v4/v6 Parent for Custom IP Prefix HOT 1
- Can't specify image tag in compose when using `az containerapp compose create` HOT 3
- New az login support for --subscription HOT 1
- az ml update error: "NameError: name 'select_load_function' is not defined" HOT 3
- Problem with parameter --top using at "az apim api list" HOT 1
- list api deployment date via azure cli HOT 1
- Azure CLI docker image builds with dated JP binary HOT 1
- az containerapp secret set has an invalid low value for MAXIMUM_SECRET_LENGTH HOT 2
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.