Acute hyperglycemia causes vascular endothelial dysfunction in various organs including the cerebral vessels. It is associated with increased mortality and morbidity in the perioperative period. The impact of anesthetic agents on cerebral vasodilatory responses during hyperglycemia remains unclear. We investigated endothelial function in rat cerebral arterioles during acute hyperglycemia, under propofol or desflurane anesthesia. A closed cranial window preparation was used to measure changes in pial arteriole diameter induced by topical application of acetylcholine (ACh), an endothelium-dependent vasodilator, in rats anesthetized with propofol or desflurane. Pial arteriole responses to ACh were measured during normoglycemia and hyperglycemia. We then investigated whether the response of cerebral arterioles to acute hyperglycemia under propofol anesthesia were related to propofol or its vehicle, intralipid. ACh resulted in a dose-dependent dilation of cerebral arterioles during propofol and desflurane anesthesia under normoglycemic conditions. The vasodilatory effects of ACh were also maintained under hyperglycemic conditions during propofol anesthesia, but the vasodilator response to ACh was significantly impaired during hyperglycemia compared with normoglycemia with desflurane anesthesia. The vasodilatory effects of ACh were maintained during normoglycemia and hyperglycemia in rats receiving propofol or intralipid. Rat pial arteriole responses to ACh are maintained during conditions of acute hyperglycemia with propofol anesthesia but suppressed compared with normoglycemia with desflurane anesthesia.