base64_encode_fromguid()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Encodes a GUID to a base64 string.
Syntax
base64_encode_fromguid(
guid)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
guid | guid |
✔️ | The value to encode to a base64 string. |
Returns
Returns a base64 string encoded from a GUID.
Example
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")
Related content
- To decode a base64 string to a GUID, see base64_decode_toguid().
- To create a GUID from a string, see toguid().