def METHOD_NAME(azure_ad_metrics_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAzureADMetricResult:
    """
    Gets a azureADMetrics instance with a given name.
    :param str azure_ad_metrics_name: Name of the azureADMetrics instance.
    :param str resource_group_name: Name of an Azure resource group.
    """
    __args__ = dict()
    __args__['azureADMetricsName'] = azure_ad_metrics_name
    __args__['resourceGroupName'] = resource_group_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:aadiam/v20200701preview:getAzureADMetric', __args__, opts=opts, typ=GetAzureADMetricResult).value
    return AwaitableGetAzureADMetricResult(
        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'))