def METHOD_NAME(self):
    params = {'name': 'cloud-custodian-test-autoscale',
              'location': self.rg_location,
              'resource_group_name': self.rg_name,
              'sku_tier': 'Basic',
              'sku_name': 'B1',
              'auto_scale': {
                  'enabled': True,
                  'min_capacity': 1,
                  'max_capacity': 2,
                  'default_capacity': 1}
              }
    unit = AppServicePlanUnit()
    plan = self._validate(unit, params)
    client = self.session.client('azure.mgmt.monitor.MonitorManagementClient')
    rules = client.autoscale_settings.get(self.rg_name, constants.FUNCTION_AUTOSCALE_NAME)
    self.assertEqual(rules.target_resource_uri, plan.id)