@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_webapp_show_deployment_logs(self, resource_group):
    webapp_name = self.create_random_name('show-deployment-webapp', 40)
    plan_name = self.create_random_name('show-deployment-plan', 40)
    zip_file = os.path.join(TEST_DIR, 'test.zip')
    self.cmd('appservice plan create -g {} -n {} --sku S1'.format(resource_group, plan_name))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp_name, plan_name))
    self.cmd('webapp log deployment show -g {} -n {}'.format(resource_group, webapp_name), checks=[JMESPathCheck('length(@)', 0)])
    deployment_1 = self.cmd('webapp deployment source config-zip -g {} -n {} --src "{}"'.format(resource_group, webapp_name, zip_file)).get_output_in_json()
    self.cmd('webapp log deployment show -g {} -n {}'.format(resource_group, webapp_name), checks=[JMESPathCheck('length(@) > `0`', True)])
    self.cmd('webapp log deployment show -g {} -n {} --deployment-id={}'.format(resource_group, webapp_name, deployment_1['id']), checks=[JMESPathCheck('length(@) > `0`', True)])
@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_webapp_show_deployment_logs(self, resource_group):
    webapp_name = self.create_random_name('show-deployment-webapp', 40)
    plan_name = self.create_random_name('show-deployment-plan', 40)
    zip_file = os.path.join(TEST_DIR, 'test.zip')
    self.cmd('appservice plan create -g {} -n {} --sku S1'.format(resource_group, plan_name))
    self.cmd('webapp create -g {} -n {} --plan {}'.format(resource_group, webapp_name, plan_name))
    self.cmd('webapp log deployment show -g {} -n {}'.format(resource_group, webapp_name), checks=[JMESPathCheck('length(@)', 0)])
    deployment_1 = self.cmd('webapp deployment source config-zip -g {} -n {} --src "{}"'.format(resource_group, webapp_name, zip_file)).get_output_in_json()
    self.cmd('webapp log deployment show -g {} -n {}'.format(resource_group, webapp_name), checks=[JMESPathCheck('length(@) > `0`', True)])
    self.cmd('webapp log deployment show -g {} -n {} --deployment-id={}'.format(resource_group, webapp_name, deployment_1['id']), checks=[JMESPathCheck('length(@) > `0`', True)])