Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Encodes a GUID to a base64 string.
base64_encode_fromguid(
guid)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
guid | guid |
✔️ | The value to encode to a base64 string. |
Returns a base64 string encoded from a GUID.
print Quine = base64_encode_fromguid(toguid("ae3133f2-6e22-49ae-b06a-16e6a9b212eb"))
Output
Quine |
---|
8jMxriJurkmwahbmqbIS6w== |
If you try to encode anything that isn't a GUID as below, an error will be thrown:
print Empty = base64_encode_fromguid("abcd1231")
- To decode a base64 string to a GUID, see base64_decode_toguid().
- To create a GUID from a string, see toguid().