Create the credential files (locally) required by the Azure script actions. Stored in %ALLUSERSPROFILE%ControlUpScriptingSupport but the client secret stored in the files can only be decrypted by the Windows user that created that file. The files created contain the tenant id in the file name so that a single Windows user can have credential files for multiple tenants. Original Azure scripts did have this feature and the files contained the tenant id so only a single file can exist - this script creates both credential files so both new and old Azure script actions can be run. The script willl overwrite any existing credential files for the user and tenant.
This script changes the following settings in order to improve the resilience of ControlUp Monitor to service failures: - Sets the ServicesPipeTimeout registry value to 90000 - Sets the service recovery options to restart the service on first and second failure