base64_encode_fromguid()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft 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")