diff --git a/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger.zip b/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger.zip index 89a69fb1a8..481ab76361 100644 Binary files a/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger.zip and b/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger.zip differ diff --git a/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger/run.ps1 b/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger/run.ps1 index 1eb8bfe7d2..4ee1bc7119 100644 --- a/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger/run.ps1 +++ b/DataConnectors/DocuSign-SecurityEvents/AzureFunctionDocuSignMonitor/DocuSignMonitorTimerTrigger/run.ps1 @@ -1,9 +1,9 @@ <# Title: DocuSign Security Events Data Connector Language: PowerShell - Version: 2.0 + Version: 2.1 Author: Sreedhar Ande - Last Modified: 2/16/2021 + Last Modified: 3/31/2023 Comment: V2 re-designed; Ingests Security Events for your DocuSign account into Azure Log Analytics Workspace using DocuSign Monitor REST API Ingests DocuSign Account Users into Azure Log Analytics Workspace using DocuSign Users REST API @@ -206,9 +206,10 @@ $timestamp = [int][double]::Parse((Get-Date (Get-Date).ToUniversalTime() -UForma $storageAccountContext = New-AzStorageContext -ConnectionString $AzureWebJobsStorage $checkBlob = Get-AzStorageBlob -Blob "DocuSignRSAPrivateKey.key" -Container $storageAccountContainer -Context $storageAccountContext +$AzFunDrive = (Get-Location).Drive.Root +$privateKeyPath = "$($AzFunDrive)home\site\DocuSignRSAPrivateKey.key" if($null -ne $checkBlob){ - Get-AzStorageBlobContent -Blob "DocuSignRSAPrivateKey.key" -Container $storageAccountContainer -Context $storageAccountContext -Destination "C:\local\Temp\DocuSignRSAPrivateKey.key" -Force - $privateKeyPath = "C:\local\Temp\DocuSignRSAPrivateKey.key" + Get-AzStorageBlobContent -Blob "DocuSignRSAPrivateKey.key" -Container $storageAccountContainer -Context $storageAccountContext -Destination $privateKeyPath -Force } else{ Write-Error "No DocuSignRSAPrivateKey.key file, exiting" diff --git a/DataConnectors/DocuSign-SecurityEvents/CHANGELOG.MD b/DataConnectors/DocuSign-SecurityEvents/CHANGELOG.MD index bb6968fa9e..f6c74e7c06 100644 --- a/DataConnectors/DocuSign-SecurityEvents/CHANGELOG.MD +++ b/DataConnectors/DocuSign-SecurityEvents/CHANGELOG.MD @@ -1,3 +1,6 @@ +## 2.2 +- Updated path for key file + ## 2.1 - Implemented new logic to ingest users without duplication - Adding UserId and UserName to Storage Account Table to avoid duplication