Skip to content
New issue

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

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

Already on GitHub? # to your account

InvalidApiVersionParameter while trying virtual_machines.get #4104

Closed
dhaneshu opened this issue Dec 20, 2018 · 2 comments
Closed

InvalidApiVersionParameter while trying virtual_machines.get #4104

dhaneshu opened this issue Dec 20, 2018 · 2 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@dhaneshu
Copy link

Getting error as below while running "compute_client.virtual_machines.get"

Traceback (most recent call last):
File "az_checksV0.1.py", line 79, in
vm = compute_client.virtual_machines.get(rg, i, expand = 'instanceview')
File "/Users/dhanesh.u/PycharmProjects/virtual-machines-python-manage/azure_py2/lib/python2.7/site-packages/azure/mgmt/compute/v2018_10_01/operations/virtual_machines_operations.py", line 557, in get
raise exp
msrestazure.azure_exceptions.CloudError: Azure Error: InvalidApiVersionParameter
Message: The api-version '2018-10-01' is invalid. The supported versions are '2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.

PIP FREEZE

azure-mgmt==4.0.0
azure-mgmt-advisor==2.0.1
azure-mgmt-applicationinsights==0.1.1
azure-mgmt-authorization==0.50.0
azure-mgmt-batch==5.0.1
azure-mgmt-batchai==2.0.0
azure-mgmt-billing==0.2.0
azure-mgmt-botservice==0.1.0
azure-mgmt-cdn==3.0.0
azure-mgmt-cognitiveservices==3.0.0
azure-mgmt-commerce==1.0.1
azure-mgmt-compute==4.3.1
azure-mgmt-consumption==2.0.0
azure-mgmt-containerinstance==1.2.1
azure-mgmt-containerregistry==2.4.0
azure-mgmt-containerservice==4.2.2
azure-mgmt-cosmosdb==0.5.2
azure-mgmt-datafactory==0.6.0
azure-mgmt-datalake-analytics==0.2.0
azure-mgmt-datalake-nspkg==3.0.1
azure-mgmt-datalake-store==0.5.0
azure-mgmt-datamigration==0.1.0
azure-mgmt-devspaces==0.1.0
azure-mgmt-devtestlabs==2.2.0
azure-mgmt-dns==2.1.0
azure-mgmt-eventgrid==0.4.0
azure-mgmt-eventhub==2.2.0
azure-mgmt-hanaonazure==0.1.1
azure-mgmt-hdinsight==0.1.0
azure-mgmt-iotcentral==1.0.0
azure-mgmt-iothub==0.6.0
azure-mgmt-iothubprovisioningservices==0.2.0
azure-mgmt-keyvault==1.1.0
azure-mgmt-loganalytics==0.2.0
azure-mgmt-logic==3.0.0
azure-mgmt-machinelearningcompute==0.4.1
azure-mgmt-managementgroups==0.1.0
azure-mgmt-managementpartner==0.1.0
azure-mgmt-maps==0.1.0
azure-mgmt-marketplaceordering==0.1.0
azure-mgmt-media==1.0.1
azure-mgmt-monitor==0.5.2
azure-mgmt-msi==0.2.0
azure-mgmt-network==2.4.0
azure-mgmt-notificationhubs==2.0.0
azure-mgmt-nspkg==3.0.2
azure-mgmt-policyinsights==0.1.0
azure-mgmt-powerbiembedded==2.0.0
azure-mgmt-rdbms==1.5.0
azure-mgmt-recoveryservices==0.1.0
azure-mgmt-recoveryservicesbackup==0.1.1
azure-mgmt-redis==5.0.0
azure-mgmt-relay==0.1.0
azure-mgmt-reservations==0.3.1
azure-mgmt-resource==2.0.0
azure-mgmt-scheduler==2.0.0
azure-mgmt-search==2.0.0
azure-mgmt-servicebus==0.5.3
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.1.1
azure-mgmt-sql==0.9.1
azure-mgmt-storage==3.1.0
azure-mgmt-subscription==0.2.0
azure-mgmt-trafficmanager==0.50.0
azure-mgmt-web==0.40.0
azure-multiapi-storage==0.2.2
azure-nspkg==3.0.2
azure-servicebus==0.21.1
azure-servicefabric==6.3.0.0
azure-servicemanagement-legacy==0.20.6
azure-storage-blob==1.3.1
azure-storage-common==1.4.0
azure-storage-file==1.4.0
azure-storage-nspkg==3.1.0
azure-storage-queue==1.4.0
msrestazure==0.5.1

lmazuel pushed a commit that referenced this issue Dec 21, 2018
* [AutoPR network/resource-manager] Remove error code from swagger (#3507)

* Generated from 82c4e9010292ed02c88fd64f6d3b7e17bd417eb9

Remove error code from swagger

* Packaging update of azure-mgmt-network

* [AutoPR network/resource-manager] Move parameter to keep order in SDK (#3731)

* Generated from 911ebf46a4a178cdcc6aaa9695f6792f4c64ab89

Move parameter to keep order in SDK

* Packaging update of azure-mgmt-network

* [AutoPR network/resource-manager] Network october release (#3463)

* Generated from bd2aca0

Update ADHybridHealthService.json (#3874)

* Generated from 4b3ae81daaddc6079ec4a6a8ebeebccc019703e6

Updated NetworkConfigurationDiagnostic API + example (#3905)

* Generated from c90c5d14e7b0b169a8cde763860d15aa48a0d37c (#3395)

address the comments

* Generated from 26fc76cf7c2ed2ae5289bd4946513351880d32ff

add customer error spec for Application Gateway (#3985)

* add customer error spec for Application Gateway

* fix property name issue

* [AutoPR network/resource-manager] add customer error spec for Application Gateway (#3409)

* Generated from d9a3af34891cc703ecc3ba298fc737d6cc3e0fc0

add customer error spec for Application Gateway

* Generated from 26299b453a6b2f99683899a78c4c302d39b7de03

fix property name issue

* Generated from 19e41e2e7bb38120b813ad2314dc7c4f422b48c4 (#3417)

Add ICMP to the list of supported protocols

* Generated from ef5d8181e1a9f148a35d1b4467af2427a0afa29d

Merge remote-tracking branch 'origin/master' into network-october-release

* Packaging update of azure-mgmt-network

* Packaging update of azure-mgmt-adhybridhealthservice

* Generated from 7d9b9a991b92bfdbc31be3bf5fd2bd16bbb742a1 (#3478)

change appgw custom error status code enum and fix a typo of customErrorConfiguration

* Generated from 758c143eae019925ae9e021fbcd6821af918d000

Add ExpressRoutePort swagger (#4104)

* Add ExpressRoutePort details to readme.md

* ExpressRoutePort swagger

* Refer SubscriptionIdParameter and ApiVersionParameter from network.json

* Generated from b232daf214b1a03e32b14427be20bbca4ac805ac (#3509)

ExpressRoutePort swagger

* Generated from 6c4312edb758be23c2bdd7f8c2da0b8b76541187

Cherry pick NRP's changes from master to October branch (#4251)

* Remove error code from swagger (#4103)

* Modifying example templates : enabling Ipv6 support for Private Peering (#4232)

* Modifying example templates : enabling Ipv6 support for Private Peering

* Resolving oav validation error

* [AutoPR network/resource-manager] Cherry pick NRP's changes from master to October branch (#3632)

* Generated from 9ef9c433f66560956a610961c0e2a5ec70360064

Modifying example templates : enabling Ipv6 support for Private Peering (#4232)

* Modifying example templates : enabling Ipv6 support for Private Peering

* Resolving oav validation error

* Packaging update of azure-mgmt-network

* Packaging update of azure-mgmt-adhybridhealthservice

* Generated from e8f2b491e5b1732d9e57cdf9ddd16907ba04920e

Changes to add operation id for outbound rules (#4320)

* Changes to add operation id for outbound rules

* Changes to make outbound rule similar to load balancing rule

* fix failures - add example json files

* fix failures

* Fixed line endings, specs, examples

* [AutoPR network/resource-manager] Changes to add operation id for outbound rules (#3687)

* Generated from fb767531a15f75017f43f44004a2aa75c1b13b9f

fix failures

* Generated from a9023fbd65049681b0ccc49d42a1c4276b0cd159

Merge pull request #1 from EvgenyAgafonchikov/fix-lb

Fixed line endings, specs, examples

* [AutoPR network/resource-manager] Change one parameter (#3700)

* Generated from 9392c40ae5bf6575a8fdf47d0609226fdd8da689

Change one parameter

* Generated from 084957762078dc07cce7c40e0d5358081f090e2a

Change parameter in most recent version

* Generated from 1f46c7babbbcc3379f21c6f5e3d16f693fe23111

Fix example

* Generated from d0417082c41cfae8f0234ee02fe32b506bf4e605

New SKU for ER (#4342)

* Packaging update of azure-mgmt-network

* Rebuild by #3617

* Remove azure-mgmt-adhybridhealthservice by mistake on Network service PR

* Network 2.3.0
@lmazuel
Copy link
Member

lmazuel commented Dec 21, 2018

Hi @dhaneshu
That's extremely unexpected, this API version definitely exists :(. Could you confirm the region of Azure you are using? Could you try another region?
Could you confirm that rg and i weren't empty strings?

@lmazuel lmazuel added the Service Attention Workflow: This issue is responsible by Azure service team. label Dec 21, 2018
@mjconnection mjconnection added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 17, 2019
@Drewm3
Copy link
Member

Drewm3 commented Sep 19, 2019

Cleaning up old issues from 2016 - 2018. Please reopen this issue if it is still a concern.

@Drewm3 Drewm3 closed this as completed Sep 19, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants