@ResourceGroupPreparer(parameter_name='resource_group', location=WINDOWS_ASP_LOCATION_WEBAPP)
@ResourceGroupPreparer(parameter_name='resource_group2', location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_appservice_error_polish(self, resource_group, resource_group2):
    plan = self.create_random_name(prefix='web-error-plan', length=24)
    webapp_name = self.create_random_name(prefix='web-error', length=24)
    self.cmd('group create -n {} -l {}'.format(resource_group2, WINDOWS_ASP_LOCATION_WEBAPP))
    self.cmd('appservice plan create -g {} -n {} --sku b1'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp_name, plan))
    self.cmd('appservice plan create -g {} -n {} --sku b1'.format(resource_group2, plan))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group2, webapp_name, plan), expect_failure=True)
@ResourceGroupPreparer(parameter_name='resource_group', location=WINDOWS_ASP_LOCATION_WEBAPP)
@ResourceGroupPreparer(parameter_name='resource_group2', location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_appservice_error_polish(self, resource_group, resource_group2):
    plan = self.create_random_name(prefix='web-error-plan', length=24)
    webapp_name = self.create_random_name(prefix='web-error', length=24)
    self.cmd('group create -n {} -l {}'.format(resource_group2, WINDOWS_ASP_LOCATION_WEBAPP))
    self.cmd('appservice plan create -g {} -n {} --sku b1'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp_name, plan))
    self.cmd('appservice plan create -g {} -n {} --sku b1'.format(resource_group2, plan))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group2, webapp_name, plan), expect_failure=True)