@ResourceGroupPreparer(parameter_name='resource_group', parameter_name_for_location='resource_group_location', location=WINDOWS_ASP_LOCATION_WEBAPP)
@ResourceGroupPreparer(parameter_name='resource_group2', parameter_name_for_location='resource_group_location2', location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_create_in_different_group(self, resource_group, resource_group_location, resource_group2, resource_group_location2):
    plan = 'planInOneRG'
    self.cmd('group create -n {} -l {}'.format(resource_group2, resource_group_location))
    plan_id = self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan)).get_output_in_json()['id']
    self.cmd('webapp create -g {} -n webInOtherRG --plan {}'.format(resource_group2, plan_id), checks=[JMESPathCheck('name', 'webInOtherRG')])
@ResourceGroupPreparer(parameter_name='resource_group', parameter_name_for_location='resource_group_location', location=WINDOWS_ASP_LOCATION_WEBAPP)
@ResourceGroupPreparer(parameter_name='resource_group2', parameter_name_for_location='resource_group_location2', location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_create_in_different_group(self, resource_group, resource_group_location, resource_group2, resource_group_location2):
    plan = 'planInOneRG'
    self.cmd('group create -n {} -l {}'.format(resource_group2, resource_group_location))
    plan_id = self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan)).get_output_in_json()['id']
    self.cmd('webapp create -g {} -n webInOtherRG --plan {}'.format(resource_group2, plan_id), checks=[JMESPathCheck('name', 'webInOtherRG')])