def METHOD_NAME(account_name: Optional[str] = None,
                            application_name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            version_name: Optional[str] = None,
                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApplicationPackageResult:
    """
    Gets information about the specified application package.
    Azure REST API version: 2023-05-01.
    :param str account_name: The name of the Batch account.
    :param str application_name: The name of the application. This must be unique within the account.
    :param str resource_group_name: The name of the resource group that contains the Batch account.
    :param str version_name: The version of the application.
    """
    __args__ = dict()
    __args__['accountName'] = account_name
    __args__['applicationName'] = application_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['versionName'] = version_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:batch:getApplicationPackage', __args__, opts=opts, typ=GetApplicationPackageResult).value
    return AwaitableGetApplicationPackageResult(
        etag=pulumi.get(__ret__, 'etag'),
        format=pulumi.get(__ret__, 'format'),
        id=pulumi.get(__ret__, 'id'),
        last_activation_time=pulumi.get(__ret__, 'last_activation_time'),
        name=pulumi.get(__ret__, 'name'),
        state=pulumi.get(__ret__, 'state'),
        storage_url=pulumi.get(__ret__, 'storage_url'),
        storage_url_expiry=pulumi.get(__ret__, 'storage_url_expiry'),
        type=pulumi.get(__ret__, 'type'))