def METHOD_NAME(variable_name: Optional[str] = None,
                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVariableResult:
    """
    This operation retrieves a single variable, given its name and the subscription it was created at.
    Azure REST API version: 2022-08-01-preview.
    :param str variable_name: The name of the variable to operate on.
    """
    __args__ = dict()
    __args__['variableName'] = variable_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:authorization:getVariable', __args__, opts=opts, typ=GetVariableResult).value
    return AwaitableGetVariableResult(
        columns=pulumi.get(__ret__, 'columns'),
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        system_data=pulumi.get(__ret__, 'system_data'),
        type=pulumi.get(__ret__, 'type'))