diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py index fc660db3f1e..27c604d9e89 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py @@ -15,11 +15,12 @@ import six from azure.cli.core.util import CLIError +from azure.cli.core.profiles import ResourceType from azure.cli.testsdk.vcr_test_base import (VCRTestBase, ResourceGroupVCRTestBase, JMESPathCheck, NoneCheck, MOCKED_SUBSCRIPTION_ID) -from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, LiveScenarioTest +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, LiveScenarioTest, api_version_constraint from azure.cli.testsdk import JMESPathCheck as JMESPathCheckV2 from azure.cli.testsdk.checkers import NoneCheck as NoneCheckV2 @@ -2100,6 +2101,7 @@ def test_vm_create_progress(self, resource_group): self.assertTrue('Succeeded: {} (Microsoft.Compute/virtualMachines)'.format(vm_name) in lines) +@api_version_constraint(ResourceType.MGMT_COMPUTE, min_api='2017-03-30') class VMZoneScenarioTest(ScenarioTest): @ResourceGroupPreparer(location='eastus2')