def METHOD_NAME(self, sku=None, instance_count=None, active=None, **kwargs):
    sku.capacity = instance_count
    return models.DeploymentResource(
        properties=models.DeploymentResourceProperties(
            active=active,
            source=self.format_source(**kwargs),
            deployment_settings=self.format_settings(**kwargs)
        ),
        sku=sku
    )