def METHOD_NAME(group_quota_name: Optional[str] = None,
                                 mg_id: Optional[str] = None,
                                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupQuotaSubscriptionResult:
    """
    Returns the subscriptionId along with its provisioning state for being associated with the GroupQuotasEntity.
    :param str group_quota_name: The GroupQuota name. The name should be unique for the provided context tenantId/MgId.
    :param str mg_id: Management Group Id.
    """
    __args__ = dict()
    __args__['groupQuotaName'] = group_quota_name
    __args__['mgId'] = mg_id
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:quota/v20230601preview:getGroupQuotaSubscription', __args__, opts=opts, typ=GetGroupQuotaSubscriptionResult).value
    return AwaitableGetGroupQuotaSubscriptionResult(
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        properties=pulumi.get(__ret__, 'properties'),
        system_data=pulumi.get(__ret__, 'system_data'),
        type=pulumi.get(__ret__, 'type'))