25 lines
1.7 KiB
Plaintext
25 lines
1.7 KiB
Plaintext
Perform the following steps:
|
|
|
|
1. Ensure that Windows Management Framework 5.1 or above is installed using this guide:
|
|
https://gallery.technet.microsoft.com/office/PowerShell-Install-Module-388e47a1
|
|
|
|
2. Open Windows PowerShell (not Sharepoint Management Shell) as Administrator and run the following commands:
|
|
Install-Module -Name Az
|
|
Install-Module -Name Azure.Storage
|
|
|
|
3. Put the following files to some folder (the same folder for both files):
|
|
- TaloyhtioIdpRobot.cmd
|
|
- TaloyhtioIdpRobot.ps1
|
|
|
|
4. Edit TaloyhtioIdpRobot.cmd and replace the following placeholders by real values:
|
|
{azureStorageAccountName} - Azure storage account name which will be used for storing files. Provided by Taloyhtio
|
|
{azureStorageAccountKey} - Azure storage account key. Provided by Taloyhtio
|
|
{pathToMonitor} - Folder on local file system which should be monitored by script
|
|
{fileNamePrefix} - Prefixes of the files which should be moved to Azure blob storage. E.g. "report" means that only those files will be moved to Azure which name start with report
|
|
{fileNameExtension} - Extensions of the files which should be moved to Azure blob storage. E.g. "csv" means that only files with csv extension will be moved to Azure
|
|
|
|
5. Go to Windows Control panel > Administrative tools > Scheduled tasks and create new scheduled task. In action tab specify full path to "TaloyhtioIdpRobot.cmd" file (not to ps1).
|
|
Frequency of scheduled task should be configured based on frequency of saving files with data to monitored folder. E.g. once per day or more often
|
|
|
|
6. Configure system so it will periodically save files with data to monitored folders. File names should start with the same value as specified in {fileNamePrefix}
|
|
and the same extension as specified in {fileNameExtension}. |