def METHOD_NAME(deployment_name: Optional[str] = None,
                            scope: Optional[str] = None,
                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDeploymentAtScopeResult:
    """
    Gets a deployment.
    Azure REST API version: 2022-09-01.
    :param str deployment_name: The name of the deployment.
    :param str scope: The resource scope.
    """
    __args__ = dict()
    __args__['deploymentName'] = deployment_name
    __args__['scope'] = scope
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:resources:getDeploymentAtScope', __args__, opts=opts, typ=GetDeploymentAtScopeResult).value
    return AwaitableGetDeploymentAtScopeResult(
        id=pulumi.get(__ret__, 'id'),
        location=pulumi.get(__ret__, 'location'),
        name=pulumi.get(__ret__, 'name'),
        properties=pulumi.get(__ret__, 'properties'),
        tags=pulumi.get(__ret__, 'tags'),
        type=pulumi.get(__ret__, 'type'))