@ResourceGroupPreparer(name_prefix='azurecli-functionapp-c-e2e-ragrs', location=WINDOWS_ASP_LOCATION_FUNCTIONAPP)
@StorageAccountPreparer(sku='Standard_RAGRS')
def test_functionapp_consumption_ragrs_storage_e2e(self, resource_group, storage_account):
    functionapp_name = self.create_random_name('functionappconsumption', 40)
    self.cmd('functionapp create -g {} -n {} -c {} -s {}'.format(resource_group, functionapp_name, WINDOWS_ASP_LOCATION_FUNCTIONAPP, storage_account)).assert_with_checks([JMESPathCheck('state', 'Running'), JMESPathCheck('name', functionapp_name), JMESPathCheck('hostNames[0]', (functionapp_name + '.azurewebsites.net'))])
    self.cmd('functionapp show -g {} -n {}'.format(resource_group, functionapp_name), checks=[JMESPathCheck('kind', 'functionapp'), JMESPathCheck('name', functionapp_name)])
@ResourceGroupPreparer(name_prefix='azurecli-functionapp-c-e2e-ragrs', location=WINDOWS_ASP_LOCATION_FUNCTIONAPP)
@StorageAccountPreparer(sku='Standard_RAGRS')
def test_functionapp_consumption_ragrs_storage_e2e(self, resource_group, storage_account):
    functionapp_name = self.create_random_name('functionappconsumption', 40)
    self.cmd('functionapp create -g {} -n {} -c {} -s {}'.format(resource_group, functionapp_name, WINDOWS_ASP_LOCATION_FUNCTIONAPP, storage_account)).assert_with_checks([JMESPathCheck('state', 'Running'), JMESPathCheck('name', functionapp_name), JMESPathCheck('hostNames[0]', (functionapp_name + '.azurewebsites.net'))])
    self.cmd('functionapp show -g {} -n {}'.format(resource_group, functionapp_name), checks=[JMESPathCheck('kind', 'functionapp'), JMESPathCheck('name', functionapp_name)])