def METHOD_NAME(device_group_name: Optional[str] = None,
                     iot_defender_location: Optional[str] = None,
                     opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDeviceGroupResult:
    """
    Get device group
    :param str device_group_name: Device group name
    :param str iot_defender_location: Defender for IoT location
    """
    __args__ = dict()
    __args__['deviceGroupName'] = device_group_name
    __args__['iotDefenderLocation'] = iot_defender_location
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:iotsecurity/v20210201preview:getDeviceGroup', __args__, opts=opts, typ=GetDeviceGroupResult).value
    return AwaitableGetDeviceGroupResult(
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        system_data=pulumi.get(__ret__, 'system_data'),
        type=pulumi.get(__ret__, 'type'))