def METHOD_NAME(provider_instance_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          sap_monitor_name: Optional[str] = None,
                          opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProviderInstanceResult:
    """
    Gets properties of a provider instance for the specified subscription, resource group, SapMonitor name, and resource name.
    Azure REST API version: 2020-02-07-preview.
    :param str provider_instance_name: Name of the provider instance.
    :param str resource_group_name: Name of the resource group.
    :param str sap_monitor_name: Name of the SAP monitor resource.
    """
    __args__ = dict()
    __args__['providerInstanceName'] = provider_instance_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['sapMonitorName'] = sap_monitor_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:hanaonazure:getProviderInstance', __args__, opts=opts, typ=GetProviderInstanceResult).value
    return AwaitableGetProviderInstanceResult(
        id=pulumi.get(__ret__, 'id'),
        metadata=pulumi.get(__ret__, 'metadata'),
        name=pulumi.get(__ret__, 'name'),
        properties=pulumi.get(__ret__, 'properties'),
        provisioning_state=pulumi.get(__ret__, 'provisioning_state'),
        type=pulumi.get(__ret__, 'type'))