@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP)
def test_functionapp_elastic_plan(self, resource_group):
    plan = self.create_random_name(prefix='funcappplan', length=24)
    self.cmd('functionapp plan create -g {} -n {} --sku EP1 --min-instances 4 --max-burst 12'.format(resource_group, plan), checks=[JMESPathCheck('maximumElasticWorkerCount', 12), JMESPathCheck('sku.name', 'EP1'), JMESPathCheck('sku.capacity', 4)])
    self.cmd('functionapp plan update -g {} -n {} --min-instances 5 --max-burst 11'.format(resource_group, plan), checks=[JMESPathCheck('maximumElasticWorkerCount', 11), JMESPathCheck('sku.name', 'EP1'), JMESPathCheck('sku.capacity', 5)])
    self.cmd('functionapp plan show -g {} -n {} '.format(resource_group, plan), checks=[JMESPathCheck('maximumElasticWorkerCount', 11), JMESPathCheck('sku.name', 'EP1'), JMESPathCheck('sku.capacity', 5)])
    self.cmd('functionapp delete -g {} -n {}'.format(resource_group, plan))
@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP)
def test_functionapp_elastic_plan(self, resource_group):
    plan = self.create_random_name(prefix='funcappplan', length=24)
    self.cmd('functionapp plan create -g {} -n {} --sku EP1 --min-instances 4 --max-burst 12'.format(resource_group, plan), checks=[JMESPathCheck('maximumElasticWorkerCount', 12), JMESPathCheck('sku.name', 'EP1'), JMESPathCheck('sku.capacity', 4)])
    self.cmd('functionapp plan update -g {} -n {} --min-instances 5 --max-burst 11'.format(resource_group, plan), checks=[JMESPathCheck('maximumElasticWorkerCount', 11), JMESPathCheck('sku.name', 'EP1'), JMESPathCheck('sku.capacity', 5)])
    self.cmd('functionapp plan show -g {} -n {} '.format(resource_group, plan), checks=[JMESPathCheck('maximumElasticWorkerCount', 11), JMESPathCheck('sku.name', 'EP1'), JMESPathCheck('sku.capacity', 5)])
    self.cmd('functionapp delete -g {} -n {}'.format(resource_group, plan))