%3CLINGO-SUB%20id%3D%22lingo-sub-1587117%22%20slang%3D%22en-US%22%3ETip%20of%20the%20day%3A%20how%20to%20replicate%20the%20stored%20functions%20from%20one%20ADX%20cluster%20to%20other%20ADX%20clusters%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1587117%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20best%20option%20to%20replicate%20the%20stored%20functions%20is%20to%20build%20a%20script%20with%20these%20commands%20and%20use%3A%3C%2FP%3E%0A%3CP%3E%E2%80%9C.execute%20database%20script%E2%80%9D%20command%3A%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fdata-explorer%252Fkusto%252Fmanagement%252Fexecute-database-script%26amp%3Bdata%3D02%257C01%257Ctzgitlin%2540microsoft.com%257C44c5cd27195747db65a608d839eaa9d6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637323027384417280%26amp%3Bsdata%3DgcyUsI%252F0wDnqfDVFEpsWWyrgovEUSA%252FcIP98VTLeuDk%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fkusto%2Fmanagement%2Fexecute-database-script%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1587117%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20best%20option%20to%20replicate%20the%20stored%20functions%3C%2FP%3E%3C%2FLINGO-TEASER%3E

The best option to replicate the stored functions is to build a script with these commands and use:

“.execute database script” command: https://docs.microsoft.com/en-us/azure/data-explorer/kusto/management/execute-database-script