def METHOD_NAME(modernize_project_name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            subscription_id: Optional[str] = None,
                            workload_deployment_name: Optional[str] = None,
                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWorkloadDeploymentResult:
    """
    Gets the details of the workload deployment.
    Azure REST API version: 2022-05-01-preview.
    :param str modernize_project_name: ModernizeProject name.
    :param str resource_group_name: Name of the Azure Resource Group that project is part of.
    :param str subscription_id: Azure Subscription Id in which project was created.
    :param str workload_deployment_name: Workload deployment name.
    """
    __args__ = dict()
    __args__['modernizeProjectName'] = modernize_project_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['subscriptionId'] = subscription_id
    __args__['workloadDeploymentName'] = workload_deployment_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:migrate:getWorkloadDeployment', __args__, opts=opts, typ=GetWorkloadDeploymentResult).value
    return AwaitableGetWorkloadDeploymentResult(
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        properties=pulumi.get(__ret__, 'properties'),
        system_data=pulumi.get(__ret__, 'system_data'),
        tags=pulumi.get(__ret__, 'tags'),
        type=pulumi.get(__ret__, 'type'))