diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.dll deleted file mode 100644 index 471b9c310fcd..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.pdb b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.pdb deleted file mode 100644 index 45b729bf1951..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.pdb and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.psd1 b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.psd1 deleted file mode 100644 index 242356b27906..000000000000 --- a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.psd1 +++ /dev/null @@ -1,95 +0,0 @@ -@{ - # Version number of this module. - ModuleVersion = '1.0.2' - - # Supported PSEditions - CompatiblePSEditions = @('Core') - - # ID used to uniquely identify this module - GUID = '841fad61-94f5-4330-89be-613d54165289' - - # Author of this module - Author = 'Microsoft Corporation' - - # Company or vendor of this module - CompanyName = 'Microsoft Corporation' - - # Copyright statement for this module - Copyright = '(c) Microsoft Corporation. All rights reserved.' - - # Description of the functionality provided by this module - Description = 'Initial release of the Durable Functions SDK for PowerShell. This package is to be used exclusively with the Azure Functions PowerShell worker.' - - # Minimum version of the PowerShell engine required by this module - PowerShellVersion = '7.2' - - # Type files (.ps1xml) to be loaded when importing this module - # TypesToProcess = @() # TODO: use this for pretty-printing DF tasks - - # Format files (.ps1xml) to be loaded when importing this module - # FormatsToProcess = @() # TODO: use this for pretty-printing DF tasks - - # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess - NestedModules = @('./AzureFunctions.PowerShell.Durable.SDK.dll', './AzureFunctions.PowerShell.Durable.SDK.psm1') - - # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. - FunctionsToExport = @( - 'Get-DurableStatus', - 'New-DurableOrchestrationCheckStatusResponse', - 'Send-DurableExternalEvent', - 'Start-DurableOrchestration' - 'Stop-DurableOrchestration' - ) - - # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. - CmdletsToExport = @( - 'Invoke-DurableActivity', - 'Invoke-DurableSubOrchestrator', - 'New-DurableRetryPolicy', - 'Set-DurableCustomStatus', - 'Set-FunctionInvocationContext', - 'Start-DurableExternalEventListener' - 'Start-DurableTimer', - 'Stop-DurableTimerTask', - 'Wait-DurableTask', - 'Get-DurableTaskResult' - ) - - # Variables to export from this module - VariablesToExport = '*' - - # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. - AliasesToExport = @( - 'Invoke-ActivityFunction', - 'New-OrchestrationCheckStatusResponse', - 'Start-NewOrchestration', - 'Wait-ActivityFunction', - 'New-DurableRetryOptions' - ) - - # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. - PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = @('Microsoft', 'Azure', 'Functions', 'Serverless', 'Cloud', 'Workflows', 'Durable', 'DurableTask') - - # A URL to the license for this module. - LicenseUri = 'https://github.com/Azure/azure-functions-durable-powershell/blob/main/LICENSE' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-functions-durable-powershell' - - # ReleaseNotes of this module - # ReleaseNotes = '' #TODO: add release notes. - - # Prerelease string of this module - #Prerelease = 'alpha' - - } # End of PSData hashtable - } # End of PrivateData hashtable - - # HelpInfo URI of this module - # HelpInfoURI = '' # TODO: explore -} \ No newline at end of file diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.psm1 b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.psm1 deleted file mode 100644 index bb0df9a2697d..000000000000 --- a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/AzureFunctions.PowerShell.Durable.SDK.psm1 +++ /dev/null @@ -1,308 +0,0 @@ -# -# Copyright (c) Microsoft. All rights reserved. -# Licensed under the MIT license. See LICENSE file in the project root for full license information. -# - -using namespace System.Net - -# Set aliases for cmdlets to export -Set-Alias -Name Wait-ActivityFunction -Value Wait-DurableTask -Set-Alias -Name Invoke-ActivityFunction -Value Invoke-DurableActivity -Set-Alias -Name New-OrchestrationCheckStatusResponse -Value New-DurableOrchestrationCheckStatusResponse -Set-Alias -Name Start-NewOrchestration -Value Start-DurableOrchestration -Set-Alias -Name New-DurableRetryOptions -Value New-DurableRetryPolicy - -function GetDurableClientFromModulePrivateData { - $PrivateData = $PSCmdlet.MyInvocation.MyCommand.Module.PrivateData - if ($null -eq $PrivateData -or $null -eq $PrivateData['DurableClient']) { - throw "Could not find `DurableClient` private data. This can occur when you have not set application setting 'ExternalDurablePowerShellSDK' to 'true' or if you're using a DurableClient CmdLet but have no DurableClient binding declared in `function.json`." - } - else { - $PrivateData['DurableClient'] - } -} - -function Get-DurableStatus { - [CmdletBinding()] - param( - [Parameter( - Mandatory = $true, - Position = 0, - ValueFromPipelineByPropertyName = $true)] - [ValidateNotNullOrEmpty()] - [string] $InstanceId, - - [Parameter( - ValueFromPipelineByPropertyName = $true)] - [object] $DurableClient, - - [switch] $ShowHistory, - - [switch] $ShowHistoryOutput, - - [switch] $ShowInput - ) - - $ErrorActionPreference = 'Stop' - - if ($null -eq $DurableClient) { - $DurableClient = GetDurableClientFromModulePrivateData - } - - $requestUrl = "$($DurableClient.BaseUrl)/instances/$InstanceId" - - $query = @() - if ($ShowHistory.IsPresent) { - $query += "showHistory=true" - } - if ($ShowHistoryOutput.IsPresent) { - $query += "showHistoryOutput=true" - } - if ($ShowInput.IsPresent) { - $query += "showInput=true" - } - - if ($query.Count -gt 0) { - $requestUrl += "?" + [string]::Join("&", $query) - } - - Invoke-RestMethod -Uri $requestUrl -} - -<# -.SYNOPSIS - Start an orchestration Azure Function. -.DESCRIPTION - Start an orchestration Azure Function with the given function name and input value. -.EXAMPLE - PS > Start-DurableOrchestration -DurableClient Starter -FunctionName OrchestratorFunction -InputObject "input value for the orchestration function" - Return the instance id of the new orchestration. -.PARAMETER FunctionName - The name of the orchestration Azure Function you want to start. -.PARAMETER InputObject - The input value that will be passed to the orchestration Azure Function. -.PARAMETER DurableClient - The orchestration client object. -#> -function Start-DurableOrchestration { - [CmdletBinding()] - param( - [Parameter( - Mandatory=$true, - Position=0, - ValueFromPipelineByPropertyName=$true)] - [ValidateNotNullOrEmpty()] - [string] $FunctionName, - - [Parameter( - Position=1, - ValueFromPipelineByPropertyName=$true)] - [object] $InputObject, - - [Parameter( - ValueFromPipelineByPropertyName=$true)] - [object] $DurableClient, - - [Parameter( - ValueFromPipelineByPropertyName=$true)] - [string] $InstanceId - ) - - $ErrorActionPreference = 'Stop' - - if ($null -eq $DurableClient) { - $DurableClient = GetDurableClientFromModulePrivateData - } - - if (-not $InstanceId) { - $InstanceId = (New-Guid).Guid - } - - $Uri = - if ($DurableClient.rpcBaseUrl) { - # Fast local RPC path - "$($DurableClient.rpcBaseUrl)orchestrators/$FunctionName$($InstanceId ? "/$InstanceId" : '')" - } else { - # Legacy app frontend path - $UriTemplate = $DurableClient.creationUrls.createNewInstancePostUri - $UriTemplate.Replace('{functionName}', $FunctionName).Replace('[/{instanceId}]', "/$InstanceId") - } - - $Body = $InputObject | ConvertTo-Json -Compress -Depth 100 - - $null = Invoke-RestMethod -Uri $Uri -Method 'POST' -ContentType 'application/json' -Body $Body - - return $instanceId -} - -function Stop-DurableOrchestration { - [CmdletBinding()] - param( - [Parameter( - Mandatory = $true, - Position = 0, - ValueFromPipelineByPropertyName = $true)] - [ValidateNotNullOrEmpty()] - [string] $InstanceId, - - [Parameter( - Mandatory = $true, - Position = 1, - ValueFromPipelineByPropertyName = $true)] - [ValidateNotNullOrEmpty()] - [string] $Reason - ) - - $ErrorActionPreference = 'Stop' - - if ($null -eq $DurableClient) { - $DurableClient = GetDurableClientFromModulePrivateData - } - - $requestUrl = "$($DurableClient.BaseUrl)/instances/$InstanceId/terminate?reason=$([System.Web.HttpUtility]::UrlEncode($Reason))" - - Invoke-RestMethod -Uri $requestUrl -Method 'POST' -} - -function IsValidUrl([uri]$Url) { - $Url.IsAbsoluteUri -and ($Url.Scheme -in 'http', 'https') -} - -function GetUrlOrigin([uri]$Url) { - $fixedOriginUrl = New-Object System.UriBuilder - $fixedOriginUrl.Scheme = $Url.Scheme - $fixedOriginUrl.Host = $Url.Host - $fixedOriginUrl.Port = $Url.Port - $fixedOriginUrl.ToString() -} - -function New-DurableOrchestrationCheckStatusResponse { - [CmdletBinding()] - param( - [Parameter( - Mandatory=$true, - ValueFromPipelineByPropertyName=$true)] - [object] $Request, - - [Parameter( - Mandatory=$true, - ValueFromPipelineByPropertyName=$true)] - [string] $InstanceId, - - [Parameter( - ValueFromPipelineByPropertyName=$true)] - [object] $DurableClient - ) - - if ($null -eq $DurableClient) { - $DurableClient = GetDurableClientFromModulePrivateData - } - - [uri]$requestUrl = $Request.Url - $requestHasValidUrl = IsValidUrl $requestUrl - $requestUrlOrigin = GetUrlOrigin $requestUrl - - $httpManagementPayload = [ordered]@{ } - foreach ($entry in $DurableClient.managementUrls.GetEnumerator()) { - $value = $entry.Value - - if ($requestHasValidUrl -and (IsValidUrl $value)) { - $dataOrigin = GetUrlOrigin $value - $value = $value.Replace($dataOrigin, $requestUrlOrigin) - } - - $value = $value.Replace($DurableClient.managementUrls.id, $InstanceId) - $httpManagementPayload.Add($entry.Name, $value) - } - - [HttpResponseContext]@{ - StatusCode = [HttpStatusCode]::Accepted - Body = $httpManagementPayload - Headers = @{ - 'Content-Type' = 'application/json' - 'Location' = $httpManagementPayload.statusQueryGetUri - 'Retry-After' = 10 - } - } -} - -<# -.SYNOPSIS - Send an external event to an orchestration instance. -.DESCRIPTION - Send an external event with the given event name, and event data to an orchestration instance with the given instance ID. -.EXAMPLE - PS > Send-DurableExternalEvent -InstanceId "example-instance-id" -EventName "ExampleExternalEvent" -EventData "data for the external event" - Return the instance id of the new orchestration. -.PARAMETER InstanceId - The ID of the orchestration instance that will handle the external event. -.PARAMETER EventName - The name of the external event. -.PARAMETER EventData - The JSON-serializable data associated with the external event. -.PARAMETER TaskHubName - The TaskHubName of the orchestration instance that will handle the external event. -.PARAMETER ConnectionName - The name of the connection string associated with TaskHubName -#> -function Send-DurableExternalEvent { - [CmdletBinding()] - param( - [Parameter( - Mandatory=$true, - Position=0, - ValueFromPipelineByPropertyName=$true)] - [ValidateNotNullOrEmpty()] - [string] $InstanceId, - - [Parameter( - Mandatory=$true, - Position=1, - ValueFromPipelineByPropertyName=$true)] - [string] $EventName, - - [Parameter( - Position=2, - ValueFromPipelineByPropertyName=$true)] - [object] $EventData, - - [Parameter( - ValueFromPipelineByPropertyName=$true)] - [string] $TaskHubName, - - [Parameter( - ValueFromPipelineByPropertyName=$true)] - [string] $ConnectionName - ) - - $DurableClient = GetDurableClientFromModulePrivateData - - $RequestUrl = GetRaiseEventUrl -DurableClient $DurableClient -InstanceId $InstanceId -EventName $EventName -TaskHubName $TaskHubName -ConnectionName $ConnectionName - - $Body = $EventData | ConvertTo-Json -Compress -Depth 100 - - $null = Invoke-RestMethod -Uri $RequestUrl -Method 'POST' -ContentType 'application/json' -Body $Body -} - -function GetRaiseEventUrl( - $DurableClient, - [string] $InstanceId, - [string] $EventName, - [string] $TaskHubName, - [string] $ConnectionName) { - - $RequestUrl = $DurableClient.BaseUrl + "/instances/$InstanceId/raiseEvent/$EventName" - - $query = @() - if ($null -eq $TaskHubName) { - $query += "taskHub=$TaskHubName" - } - if ($null -eq $ConnectionName) { - $query += "connection=$ConnectionName" - } - if ($query.Count -gt 0) { - $RequestUrl += "?" + [string]::Join("&", $query) - } - - return $RequestUrl -} \ No newline at end of file diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Castle.Core.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Castle.Core.dll deleted file mode 100644 index 96e43f2136f9..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Castle.Core.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableEngine.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableEngine.dll deleted file mode 100644 index 6d7af1ed665f..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableEngine.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableEngine.pdb b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableEngine.pdb deleted file mode 100644 index c3d8bba31098..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableEngine.pdb and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableTask.Core.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableTask.Core.dll deleted file mode 100644 index 3382c7d6ddfb..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/DurableTask.Core.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Bcl.AsyncInterfaces.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Bcl.AsyncInterfaces.dll deleted file mode 100644 index fe6ba4c549bc..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Bcl.AsyncInterfaces.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Abstractions.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Abstractions.dll deleted file mode 100644 index 0dc818acefc3..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Abstractions.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Client.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Client.dll deleted file mode 100644 index 8bd64329e66c..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Client.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Worker.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Worker.dll deleted file mode 100644 index ea826b4fdf8b..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.DurableTask.Worker.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Configuration.Abstractions.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Configuration.Abstractions.dll deleted file mode 100644 index 9a24516f399b..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Configuration.Abstractions.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.DependencyInjection.Abstractions.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.DependencyInjection.Abstractions.dll deleted file mode 100644 index b4ee93da0299..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.DependencyInjection.Abstractions.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.FileProviders.Abstractions.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.FileProviders.Abstractions.dll deleted file mode 100644 index d1045b65ad92..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.FileProviders.Abstractions.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Hosting.Abstractions.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Hosting.Abstractions.dll deleted file mode 100644 index 4d33a647fda8..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Hosting.Abstractions.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Logging.Abstractions.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Logging.Abstractions.dll deleted file mode 100644 index bb27a2fcaa36..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Logging.Abstractions.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Options.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Options.dll deleted file mode 100644 index 604b60275e68..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Options.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Primitives.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Primitives.dll deleted file mode 100644 index 1b2c43afc495..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Microsoft.Extensions.Primitives.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Newtonsoft.Json.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Newtonsoft.Json.dll deleted file mode 100644 index 1ffeabe658ac..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/Newtonsoft.Json.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Diagnostics.EventLog.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Diagnostics.EventLog.dll deleted file mode 100644 index 8a65e715b96e..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Diagnostics.EventLog.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Core.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Core.dll deleted file mode 100644 index a3b43b6279c4..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Core.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Interfaces.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Interfaces.dll deleted file mode 100644 index 690f6d2344cc..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Interfaces.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Linq.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Linq.dll deleted file mode 100644 index 9d91f71eb09c..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Linq.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.PlatformServices.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.PlatformServices.dll deleted file mode 100644 index 4ded127379bd..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.PlatformServices.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Providers.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Providers.dll deleted file mode 100644 index 612587dad973..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.Providers.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.dll b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.dll deleted file mode 100644 index abaf211395a6..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/Dependencies/System.Reactive.dll and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/PSGetModuleInfo.xml b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/PSGetModuleInfo.xml deleted file mode 100644 index 0ec6c4a09cbd..000000000000 --- a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/PSGetModuleInfo.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - Microsoft.PowerShell.Commands.PSRepositoryItemInfo - System.Management.Automation.PSCustomObject - System.Object - - - AzureFunctions.PowerShell.Durable.SDK - 1.0.2 - Module - Initial release of the Durable Functions SDK for PowerShell. This package is to be used exclusively with the Azure Functions PowerShell worker. - Microsoft Corporation - - - System.Object[] - System.Array - System.Object - - - davidmrdavid - michaelpeng - - - (c) Microsoft Corporation. All rights reserved. -
2023-09-11T21:54:10+02:00
- - - https://github.com/Azure/azure-functions-durable-powershell/blob/main/LICENSE - https://github.com/Azure/azure-functions-durable-powershell - - - - - Microsoft - Azure - Functions - Serverless - Cloud - Workflows - Durable - DurableTask - PSModule - PSEdition_Core - - - - - System.Collections.Hashtable - System.Object - - - - RoleCapability - - - - - - - Workflow - - - - Function - - - - Get-DurableStatus - New-DurableOrchestrationCheckStatusResponse - Send-DurableExternalEvent - Start-DurableOrchestration - Stop-DurableOrchestration - - - - - Cmdlet - - - - Invoke-DurableActivity - Invoke-DurableSubOrchestrator - New-DurableRetryPolicy - Set-DurableCustomStatus - Set-FunctionInvocationContext - Start-DurableExternalEventListener - Start-DurableTimer - Stop-DurableTimerTask - Wait-DurableTask - Get-DurableTaskResult - - - - - DscResource - - - - Command - - - - Invoke-DurableActivity - Invoke-DurableSubOrchestrator - New-DurableRetryPolicy - Set-DurableCustomStatus - Set-FunctionInvocationContext - Start-DurableExternalEventListener - Start-DurableTimer - Stop-DurableTimerTask - Wait-DurableTask - Get-DurableTaskResult - Get-DurableStatus - New-DurableOrchestrationCheckStatusResponse - Send-DurableExternalEvent - Start-DurableOrchestration - Stop-DurableOrchestration - - - - - - - - - - - - https://www.powershellgallery.com/api/v2 - PSGallery - NuGet - - - System.Management.Automation.PSCustomObject - System.Object - - - (c) Microsoft Corporation. All rights reserved. - Initial release of the Durable Functions SDK for PowerShell. This package is to be used exclusively with the Azure Functions PowerShell worker. - False - True - True - 1287 - 1768 - 1382604 - 11/09/2023 21:54:10 +02:00 - 11/09/2023 21:54:10 +02:00 - 09/01/2024 13:40:21 +01:00 - Microsoft Azure Functions Serverless Cloud Workflows Durable DurableTask PSModule PSEdition_Core PSCmdlet_Invoke-DurableActivity PSCommand_Invoke-DurableActivity PSCmdlet_Invoke-DurableSubOrchestrator PSCommand_Invoke-DurableSubOrchestrator PSCmdlet_New-DurableRetryPolicy PSCommand_New-DurableRetryPolicy PSCmdlet_Set-DurableCustomStatus PSCommand_Set-DurableCustomStatus PSCmdlet_Set-FunctionInvocationContext PSCommand_Set-FunctionInvocationContext PSCmdlet_Start-DurableExternalEventListener PSCommand_Start-DurableExternalEventListener PSCmdlet_Start-DurableTimer PSCommand_Start-DurableTimer PSCmdlet_Stop-DurableTimerTask PSCommand_Stop-DurableTimerTask PSCmdlet_Wait-DurableTask PSCommand_Wait-DurableTask PSCmdlet_Get-DurableTaskResult PSCommand_Get-DurableTaskResult PSIncludes_Cmdlet PSFunction_Get-DurableStatus PSCommand_Get-DurableStatus PSFunction_New-DurableOrchestrationCheckStatusResponse PSCommand_New-DurableOrchestrationCheckStatusResponse PSFunction_Send-DurableExternalEvent PSCommand_Send-DurableExternalEvent PSFunction_Start-DurableOrchestration PSCommand_Start-DurableOrchestration PSFunction_Stop-DurableOrchestration PSCommand_Stop-DurableOrchestration PSIncludes_Function - False - 2024-01-09T13:40:21Z - 1.0.2 - Microsoft Corporation - false - Module - AzureFunctions.PowerShell.Durable.SDK.nuspec|Dependencies\Microsoft.Extensions.FileProviders.Abstractions.dll|Dependencies\Microsoft.Extensions.Options.dll|Dependencies\System.Diagnostics.EventLog.dll|Dependencies\System.Reactive.Interfaces.dll|Dependencies\System.Reactive.PlatformServices.dll|_manifest\manifest.json|AzureFunctions.PowerShell.Durable.SDK.dll|AzureFunctions.PowerShell.Durable.SDK.psd1|Dependencies\DurableEngine.dll|Dependencies\Microsoft.Bcl.AsyncInterfaces.dll|Dependencies\Microsoft.DurableTask.Worker.dll|Dependencies\Microsoft.Extensions.Hosting.Abstractions.dll|Dependencies\Microsoft.Extensions.Primitives.dll|Dependencies\System.Reactive.Core.dll|Dependencies\System.Reactive.Linq.dll|Dependencies\System.Reactive.Providers.dll|_manifest\manifest.json.sha256|_manifest\spdx_2.2\manifest.spdx.json|AzureFunctions.PowerShell.Durable.SDK.psm1|Dependencies\DurableEngine.pdb|Dependencies\Microsoft.DurableTask.Abstractions.dll|Dependencies\Microsoft.Extensions.Configuration.Abstractions.dll|Dependencies\Microsoft.Extensions.Logging.Abstractions.dll|Dependencies\Newtonsoft.Json.dll|Dependencies\System.Reactive.dll|_manifest\spdx_2.2\manifest.spdx.json.sha256|AzureFunctions.PowerShell.Durable.SDK.pdb|Dependencies\Castle.Core.dll|Dependencies\DurableTask.Core.dll|Dependencies\Microsoft.DurableTask.Client.dll|Dependencies\Microsoft.Extensions.DependencyInjection.Abstractions.dll - 841fad61-94f5-4330-89be-613d54165289 - 7.2 - Microsoft Corporation - - - C:\Github\CIPP-API\Modules\AzureFunctions.PowerShell.Durable.SDK\1.0.2 -
-
-
diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/manifest.json b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/manifest.json deleted file mode 100644 index 9c4ac9d8cd22..000000000000 --- a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/manifest.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "Outputs": [ - { - "Source": "/AzureFunctions.PowerShell.Durable.SDK.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "84E6FE5F74CC101E29C0CAD94E79903A1ACAB2B8179CDA011E06BEBF41DEB098" - }, - { - "Source": "/Dependencies/Microsoft.Bcl.AsyncInterfaces.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "5705D245072D3EB78400547B32147DBB6E2C8B02BA8BDA76729798F5EFDEAECB" - }, - { - "Source": "/Dependencies/Microsoft.Extensions.Logging.Abstractions.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "D575C9D1543CA726CE14DBDFFD103E93EA527CD46BB28316DA1F4122DBC55D56" - }, - { - "Source": "/Dependencies/System.Reactive.Linq.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "33EB42B7065A01963DBCD762CDC81A4135B6E0E927DDF4C88EAE121AD5F69F92" - }, - { - "Source": "/AzureFunctions.PowerShell.Durable.SDK.pdb", - "AzureArtifactsHash": "0442534A4201000100000000000C0000005044422076312E3000000000000006007C", - "Sha256Hash": "EB2C5EE08C7B8DF836BB796EC57CE1F7FA96FC9ADBDCBCC516A975A0B2F3C2F6" - }, - { - "Source": "/Dependencies/Microsoft.DurableTask.Abstractions.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "CC13EF28BE5C94860CCADF1B9D9E8E505484B1AB40D2D3F60827E14E109FEB0C" - }, - { - "Source": "/Dependencies/Microsoft.Extensions.Options.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "786112CB2F6646EF1170219A8C0BB813C9F14A6781E67C6266414F55A679565D" - }, - { - "Source": "/Dependencies/System.Reactive.PlatformServices.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "2D864B716FBAE8C1880143574332A10FBC6D98613AA09F6DD98D9D08B82B65AD" - }, - { - "Source": "/AzureFunctions.PowerShell.Durable.SDK.psd1", - "AzureArtifactsHash": "04407B202020200D0A20202020232056657273696F6E206E756D626572206F662074", - "Sha256Hash": "41125A20EE9999F330BFCFE22ABB43369D4EF568A66A4C8E006D30A110CD503D" - }, - { - "Source": "/Dependencies/Microsoft.DurableTask.Client.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "AE75348D5D809C89D700B34E9DD3826E218DBB7E9749372ABEE72939FE29C426" - }, - { - "Source": "/Dependencies/Microsoft.Extensions.Primitives.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "8CE9A85927EC7507B11FFE90080E7A811D51304A9E8B1DA20C350159BA403902" - }, - { - "Source": "/Dependencies/System.Reactive.Providers.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "79A12C5227A000F8608520F2CAB63BECC4412415A1DBEFF29179DFCAA13B6A3A" - }, - { - "Source": "/AzureFunctions.PowerShell.Durable.SDK.psm1", - "AzureArtifactsHash": "04230D0A2320436F7079726967687420286329204D6963726F736F66742E20416C6C", - "Sha256Hash": "6E1700D07C5C4E13C0959396A2880E983151F42C0560E895D90F39A673F84E30" - }, - { - "Source": "/Dependencies/Microsoft.DurableTask.Worker.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "D8D460A09A7E51C1A365883F3296394C1B86257A5235EC30DEDD597BA5F0FC49" - }, - { - "Source": "/Dependencies/Newtonsoft.Json.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "72CF291D4BAB0EDD08A9B07C6173E1E7AD1ABB7AB727FD7044BF6305D7515661" - }, - { - "Source": "/Dependencies/Castle.Core.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "ACA835865E0F0E19E5E69031D1C4C1288961CF4972C5918868ACA513CA6BCE51" - }, - { - "Source": "/Dependencies/Microsoft.Extensions.Configuration.Abstractions.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "E4EB5EB7E28A5548CD904FE1A9C3569ADEF91F52B654DB8A3C56A0A5177A09EB" - }, - { - "Source": "/Dependencies/System.Diagnostics.EventLog.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "24A02D97C2FC6D56735E196BB7FAAAE8FAF0068C486D0C3C7FA3E3B73B4F12A4" - }, - { - "Source": "/Dependencies/DurableEngine.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "B22F3247AE1C6F467585E398EA74FA371189AD584859C382F15EB22A8CB27501" - }, - { - "Source": "/Dependencies/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "9CCD830351AA28BC683D4F8D1CEFD9E724161F972D25BFB64EEE5BF55C48C5E3" - }, - { - "Source": "/Dependencies/System.Reactive.Core.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "47411515E22254958AB719D8C312E6BF7904E32DD1869EB27BF2DDC4E590CAB4" - }, - { - "Source": "/Dependencies/DurableEngine.pdb", - "AzureArtifactsHash": "0442534A4201000100000000000C0000005044422076312E3000000000000006007C", - "Sha256Hash": "70C98CA32E3A42EAEB10210BFF55E294B2404121C474D0B13BAA31F78EFD6A4C" - }, - { - "Source": "/Dependencies/Microsoft.Extensions.FileProviders.Abstractions.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "ECFCEF11C42FA4AD5CF2D4D7F553C8F0017E5EB7A4A9B032B4D0505C98EF4EF4" - }, - { - "Source": "/Dependencies/System.Reactive.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "19F0112CD1F5172EE2688E96DDD44ADA39A4BB1CB2315A154B63E9064F6E3DC0" - }, - { - "Source": "/Dependencies/DurableTask.Core.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "7AA8BB6481F2C61D220A73CD2DA77ADB2D2D28DF1FA02E093DDA3A29A55DC514" - }, - { - "Source": "/Dependencies/Microsoft.Extensions.Hosting.Abstractions.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "DF9EB42421A85F84FF2FC98EA25C23FD7D8813DF23F3AFE28E96B83CC302C8A6" - }, - { - "Source": "/Dependencies/System.Reactive.Interfaces.dll", - "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", - "Sha256Hash": "EDEE1397E02DF23F85D0B242BB098C850D64CD6CA860AABB34426253A6E3ADAB" - } - ], - "CloudBuildId": "152449", - "Repo": "https://github.com/Azure/azure-functions-durable-powershell", - "Branch": "main", - "CommitId": "959cf1afea08beebfc65f0761ece404506b20499", - "Version": "0.0.1", - "Timestamp": 1694466518 -} \ No newline at end of file diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/manifest.json.sha256 b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/manifest.json.sha256 deleted file mode 100644 index d55198ec3e0a..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/manifest.json.sha256 and /dev/null differ diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/spdx_2.2/manifest.spdx.json b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/spdx_2.2/manifest.spdx.json deleted file mode 100644 index 999a518b3e8f..000000000000 --- a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/spdx_2.2/manifest.spdx.json +++ /dev/null @@ -1,614 +0,0 @@ -{ - "files": [ - { - "fileName": "./AzureFunctions.PowerShell.Durable.SDK.dll", - "SPDXID": "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.dll-0CA57E1F20DC5E1F8BF8C27C7ABB781FD7E2C96F", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "84e6fe5f74cc101e29c0cad94e79903a1acab2b8179cda011e06bebf41deb098" - }, - { - "algorithm": "SHA1", - "checksumValue": "0ca57e1f20dc5e1f8bf8c27c7abb781fd7e2c96f" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Bcl.AsyncInterfaces.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Bcl.AsyncInterfaces.dll-2E438AEF830795B2D240CF3160A3353BC6CB0232", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "5705d245072d3eb78400547b32147dbb6e2c8b02ba8bda76729798f5efdeaecb" - }, - { - "algorithm": "SHA1", - "checksumValue": "2e438aef830795b2d240cf3160a3353bc6cb0232" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Extensions.Logging.Abstractions.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Extensions.Logging.Abstractions.dll-02EC010722BBD1740782B502DF30D4475AEBE5F2", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "d575c9d1543ca726ce14dbdffd103e93ea527cd46bb28316da1f4122dbc55d56" - }, - { - "algorithm": "SHA1", - "checksumValue": "02ec010722bbd1740782b502df30d4475aebe5f2" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/System.Reactive.Linq.dll", - "SPDXID": "SPDXRef-File--Dependencies-System.Reactive.Linq.dll-21B3C0F5AE5F6C6A436ECC37E747BF931C141D14", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "33eb42b7065a01963dbcd762cdc81a4135b6e0e927ddf4c88eae121ad5f69f92" - }, - { - "algorithm": "SHA1", - "checksumValue": "21b3c0f5ae5f6c6a436ecc37e747bf931c141d14" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./AzureFunctions.PowerShell.Durable.SDK.pdb", - "SPDXID": "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.pdb-A8404C06CFD62F8B32E7333255E790198FB7710B", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "eb2c5ee08c7b8df836bb796ec57ce1f7fa96fc9adbdcbcc516a975a0b2f3c2f6" - }, - { - "algorithm": "SHA1", - "checksumValue": "a8404c06cfd62f8b32e7333255e790198fb7710b" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.DurableTask.Abstractions.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.DurableTask.Abstractions.dll-D1D43D1F5B80C63EF1E52985922BB90ADEA5DEEC", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "cc13ef28be5c94860ccadf1b9d9e8e505484b1ab40d2d3f60827e14e109feb0c" - }, - { - "algorithm": "SHA1", - "checksumValue": "d1d43d1f5b80c63ef1e52985922bb90adea5deec" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Extensions.Options.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Extensions.Options.dll-6EC0C1FE1332912086247080B55B06623C78326E", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "786112cb2f6646ef1170219a8c0bb813c9f14a6781e67c6266414f55a679565d" - }, - { - "algorithm": "SHA1", - "checksumValue": "6ec0c1fe1332912086247080b55b06623c78326e" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/System.Reactive.PlatformServices.dll", - "SPDXID": "SPDXRef-File--Dependencies-System.Reactive.PlatformServices.dll-8A33FDD641185C66DD4FD3DB88DF5504621D3BF4", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "2d864b716fbae8c1880143574332a10fbc6d98613aa09f6dd98d9d08b82b65ad" - }, - { - "algorithm": "SHA1", - "checksumValue": "8a33fdd641185c66dd4fd3db88df5504621d3bf4" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./AzureFunctions.PowerShell.Durable.SDK.psd1", - "SPDXID": "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.psd1-D7759B5867DEBC3071327666924C1CC70028F2F1", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "41125a20ee9999f330bfcfe22abb43369d4ef568a66a4c8e006d30a110cd503d" - }, - { - "algorithm": "SHA1", - "checksumValue": "d7759b5867debc3071327666924c1cc70028f2f1" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.DurableTask.Client.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.DurableTask.Client.dll-0DE9E1C4F3587BC9C002F935BA5023890ED18B8F", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "ae75348d5d809c89d700b34e9dd3826e218dbb7e9749372abee72939fe29c426" - }, - { - "algorithm": "SHA1", - "checksumValue": "0de9e1c4f3587bc9c002f935ba5023890ed18b8f" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Extensions.Primitives.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Extensions.Primitives.dll-376636C20CEE083DA54D4146479032170EC7231B", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "8ce9a85927ec7507b11ffe90080e7a811d51304a9e8b1da20c350159ba403902" - }, - { - "algorithm": "SHA1", - "checksumValue": "376636c20cee083da54d4146479032170ec7231b" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/System.Reactive.Providers.dll", - "SPDXID": "SPDXRef-File--Dependencies-System.Reactive.Providers.dll-74AA6DBBCB5397BB09D1E69FFCFE9526CBFCEB44", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "79a12c5227a000f8608520f2cab63becc4412415a1dbeff29179dfcaa13b6a3a" - }, - { - "algorithm": "SHA1", - "checksumValue": "74aa6dbbcb5397bb09d1e69ffcfe9526cbfceb44" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./AzureFunctions.PowerShell.Durable.SDK.psm1", - "SPDXID": "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.psm1-852079516A56958CFCFFE5EEFCF7B0C10BD163F6", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "6e1700d07c5c4e13c0959396a2880e983151f42c0560e895d90f39a673f84e30" - }, - { - "algorithm": "SHA1", - "checksumValue": "852079516a56958cfcffe5eefcf7b0c10bd163f6" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.DurableTask.Worker.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.DurableTask.Worker.dll-D3C716C746EB41567EB15E92313871FF5DF6FE1E", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "d8d460a09a7e51c1a365883f3296394c1b86257a5235ec30dedd597ba5f0fc49" - }, - { - "algorithm": "SHA1", - "checksumValue": "d3c716c746eb41567eb15e92313871ff5df6fe1e" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Newtonsoft.Json.dll", - "SPDXID": "SPDXRef-File--Dependencies-Newtonsoft.Json.dll-E3673D05D46F29E68241D4536BDDF18CDD0A913D", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "72cf291d4bab0edd08a9b07c6173e1e7ad1abb7ab727fd7044bf6305d7515661" - }, - { - "algorithm": "SHA1", - "checksumValue": "e3673d05d46f29e68241d4536bddf18cdd0a913d" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Castle.Core.dll", - "SPDXID": "SPDXRef-File--Dependencies-Castle.Core.dll-EFB41379A448DA4C368F5694D0675F99662D27C6", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "aca835865e0f0e19e5e69031d1c4c1288961cf4972c5918868aca513ca6bce51" - }, - { - "algorithm": "SHA1", - "checksumValue": "efb41379a448da4c368f5694d0675f99662d27c6" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Extensions.Configuration.Abstractions.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Extensions.Configuration.Abstractions.dll-C524C7D46A343B75A64BF52B19E3C70C453F9061", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "e4eb5eb7e28a5548cd904fe1a9c3569adef91f52b654db8a3c56a0a5177a09eb" - }, - { - "algorithm": "SHA1", - "checksumValue": "c524c7d46a343b75a64bf52b19e3c70c453f9061" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/System.Diagnostics.EventLog.dll", - "SPDXID": "SPDXRef-File--Dependencies-System.Diagnostics.EventLog.dll-96A914148520A9F0AB3733410129FFB7BA2992CC", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "24a02d97c2fc6d56735e196bb7faaae8faf0068c486d0c3c7fa3e3b73b4f12a4" - }, - { - "algorithm": "SHA1", - "checksumValue": "96a914148520a9f0ab3733410129ffb7ba2992cc" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/DurableEngine.dll", - "SPDXID": "SPDXRef-File--Dependencies-DurableEngine.dll-A69A399F97F3634DE3171BAAADE07CFC1549C98D", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "b22f3247ae1c6f467585e398ea74fa371189ad584859c382f15eb22a8cb27501" - }, - { - "algorithm": "SHA1", - "checksumValue": "a69a399f97f3634de3171baaade07cfc1549c98d" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Extensions.DependencyInjection.Abstractions.dll-CB8C35306AFD15358104ECFE70E724AD9C753E6F", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "9ccd830351aa28bc683d4f8d1cefd9e724161f972d25bfb64eee5bf55c48c5e3" - }, - { - "algorithm": "SHA1", - "checksumValue": "cb8c35306afd15358104ecfe70e724ad9c753e6f" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/System.Reactive.Core.dll", - "SPDXID": "SPDXRef-File--Dependencies-System.Reactive.Core.dll-A91898005B1CC48E3F6A4CBB835CAFFC8C6A85CB", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "47411515e22254958ab719d8c312e6bf7904e32dd1869eb27bf2ddc4e590cab4" - }, - { - "algorithm": "SHA1", - "checksumValue": "a91898005b1cc48e3f6a4cbb835caffc8c6a85cb" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/DurableEngine.pdb", - "SPDXID": "SPDXRef-File--Dependencies-DurableEngine.pdb-840296DC42A039DE16DAFD9B6108ACB93E637148", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "70c98ca32e3a42eaeb10210bff55e294b2404121c474d0b13baa31f78efd6a4c" - }, - { - "algorithm": "SHA1", - "checksumValue": "840296dc42a039de16dafd9b6108acb93e637148" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Extensions.FileProviders.Abstractions.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Extensions.FileProviders.Abstractions.dll-3029F45A1397291B4E7EEE9DB9B5DCDE5A47AB7D", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "ecfcef11c42fa4ad5cf2d4d7f553c8f0017e5eb7a4a9b032b4d0505c98ef4ef4" - }, - { - "algorithm": "SHA1", - "checksumValue": "3029f45a1397291b4e7eee9db9b5dcde5a47ab7d" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/System.Reactive.dll", - "SPDXID": "SPDXRef-File--Dependencies-System.Reactive.dll-9CBCA70CC79F7476D92B481C6BEC46CE85433328", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "19f0112cd1f5172ee2688e96ddd44ada39a4bb1cb2315a154b63e9064f6e3dc0" - }, - { - "algorithm": "SHA1", - "checksumValue": "9cbca70cc79f7476d92b481c6bec46ce85433328" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/DurableTask.Core.dll", - "SPDXID": "SPDXRef-File--Dependencies-DurableTask.Core.dll-0064DA99C6E1C6FED54FAB9396878975A1D28EAF", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "7aa8bb6481f2c61d220a73cd2da77adb2d2d28df1fa02e093dda3a29a55dc514" - }, - { - "algorithm": "SHA1", - "checksumValue": "0064da99c6e1c6fed54fab9396878975a1d28eaf" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/Microsoft.Extensions.Hosting.Abstractions.dll", - "SPDXID": "SPDXRef-File--Dependencies-Microsoft.Extensions.Hosting.Abstractions.dll-BBA99CBFE0EFD265CA5A2563624884D4F88BA0C3", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "df9eb42421a85f84ff2fc98ea25c23fd7d8813df23f3afe28e96b83cc302c8a6" - }, - { - "algorithm": "SHA1", - "checksumValue": "bba99cbfe0efd265ca5a2563624884d4f88ba0c3" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - }, - { - "fileName": "./Dependencies/System.Reactive.Interfaces.dll", - "SPDXID": "SPDXRef-File--Dependencies-System.Reactive.Interfaces.dll-74F54702F12252A2DAC2D87D89809C7A1A475F81", - "checksums": [ - { - "algorithm": "SHA256", - "checksumValue": "edee1397e02df23f85d0b242bb098c850d64cd6ca860aabb34426253a6e3adab" - }, - { - "algorithm": "SHA1", - "checksumValue": "74f54702f12252a2dac2d87d89809c7a1a475f81" - } - ], - "licenseConcluded": "NOASSERTION", - "licenseInfoInFiles": [ - "NOASSERTION" - ], - "copyrightText": "NOASSERTION" - } - ], - "packages": [ - { - "name": "Azure Pipelines Hosted Image win19", - "SPDXID": "SPDXRef-Package-3FF606431CE825232B7BA4675B710470193C4F32ADA943301C6DB7DEEC27B080", - "downloadLocation": "NOASSERTION", - "filesAnalyzed": false, - "licenseConcluded": "NOASSERTION", - "licenseInfoFromFiles": [ - "NOASSERTION" - ], - "licenseDeclared": "NOASSERTION", - "copyrightText": "NOASSERTION", - "versionInfo": "20230820.1.0", - "externalRefs": [ - { - "referenceCategory": "PACKAGE_MANAGER", - "referenceType": "purl", - "referenceLocator": "https://github.com/actions/virtual-environments" - } - ], - "supplier": "Microsoft/GitHub" - }, - { - "name": "AzureFunctions.PowerShell.Durable.SDK", - "SPDXID": "SPDXRef-RootPackage", - "downloadLocation": "NOASSERTION", - "packageVerificationCode": { - "packageVerificationCodeValue": "c909f8fe42dbc3758acaf989869053a1b30779e8" - }, - "filesAnalyzed": true, - "licenseConcluded": "NOASSERTION", - "licenseInfoFromFiles": [ - "NOASSERTION" - ], - "licenseDeclared": "NOASSERTION", - "copyrightText": "NOASSERTION", - "versionInfo": "152449", - "supplier": "Organization: Microsoft", - "hasFiles": [ - "SPDXRef-File--Dependencies-System.Diagnostics.EventLog.dll-96A914148520A9F0AB3733410129FFB7BA2992CC", - "SPDXRef-File--Dependencies-Microsoft.Extensions.Configuration.Abstractions.dll-C524C7D46A343B75A64BF52B19E3C70C453F9061", - "SPDXRef-File--Dependencies-Castle.Core.dll-EFB41379A448DA4C368F5694D0675F99662D27C6", - "SPDXRef-File--Dependencies-System.Reactive.Linq.dll-21B3C0F5AE5F6C6A436ECC37E747BF931C141D14", - "SPDXRef-File--Dependencies-Microsoft.Extensions.Logging.Abstractions.dll-02EC010722BBD1740782B502DF30D4475AEBE5F2", - "SPDXRef-File--Dependencies-Microsoft.Bcl.AsyncInterfaces.dll-2E438AEF830795B2D240CF3160A3353BC6CB0232", - "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.dll-0CA57E1F20DC5E1F8BF8C27C7ABB781FD7E2C96F", - "SPDXRef-File--Dependencies-Newtonsoft.Json.dll-E3673D05D46F29E68241D4536BDDF18CDD0A913D", - "SPDXRef-File--Dependencies-Microsoft.DurableTask.Worker.dll-D3C716C746EB41567EB15E92313871FF5DF6FE1E", - "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.psm1-852079516A56958CFCFFE5EEFCF7B0C10BD163F6", - "SPDXRef-File--Dependencies-System.Reactive.PlatformServices.dll-8A33FDD641185C66DD4FD3DB88DF5504621D3BF4", - "SPDXRef-File--Dependencies-Microsoft.Extensions.Options.dll-6EC0C1FE1332912086247080B55B06623C78326E", - "SPDXRef-File--Dependencies-Microsoft.DurableTask.Abstractions.dll-D1D43D1F5B80C63EF1E52985922BB90ADEA5DEEC", - "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.pdb-A8404C06CFD62F8B32E7333255E790198FB7710B", - "SPDXRef-File--Dependencies-System.Reactive.Interfaces.dll-74F54702F12252A2DAC2D87D89809C7A1A475F81", - "SPDXRef-File--Dependencies-Microsoft.Extensions.Hosting.Abstractions.dll-BBA99CBFE0EFD265CA5A2563624884D4F88BA0C3", - "SPDXRef-File--Dependencies-DurableTask.Core.dll-0064DA99C6E1C6FED54FAB9396878975A1D28EAF", - "SPDXRef-File--Dependencies-System.Reactive.dll-9CBCA70CC79F7476D92B481C6BEC46CE85433328", - "SPDXRef-File--Dependencies-Microsoft.Extensions.FileProviders.Abstractions.dll-3029F45A1397291B4E7EEE9DB9B5DCDE5A47AB7D", - "SPDXRef-File--Dependencies-DurableEngine.pdb-840296DC42A039DE16DAFD9B6108ACB93E637148", - "SPDXRef-File--Dependencies-System.Reactive.Core.dll-A91898005B1CC48E3F6A4CBB835CAFFC8C6A85CB", - "SPDXRef-File--Dependencies-Microsoft.Extensions.DependencyInjection.Abstractions.dll-CB8C35306AFD15358104ECFE70E724AD9C753E6F", - "SPDXRef-File--Dependencies-DurableEngine.dll-A69A399F97F3634DE3171BAAADE07CFC1549C98D", - "SPDXRef-File--Dependencies-System.Reactive.Providers.dll-74AA6DBBCB5397BB09D1E69FFCFE9526CBFCEB44", - "SPDXRef-File--Dependencies-Microsoft.Extensions.Primitives.dll-376636C20CEE083DA54D4146479032170EC7231B", - "SPDXRef-File--Dependencies-Microsoft.DurableTask.Client.dll-0DE9E1C4F3587BC9C002F935BA5023890ED18B8F", - "SPDXRef-File--AzureFunctions.PowerShell.Durable.SDK.psd1-D7759B5867DEBC3071327666924C1CC70028F2F1" - ] - } - ], - "externalDocumentRefs": [], - "relationships": [ - { - "relationshipType": "DESCRIBES", - "relatedSpdxElement": "SPDXRef-RootPackage", - "spdxElementId": "SPDXRef-DOCUMENT" - }, - { - "relationshipType": "DEPENDS_ON", - "relatedSpdxElement": "SPDXRef-Package-3FF606431CE825232B7BA4675B710470193C4F32ADA943301C6DB7DEEC27B080", - "spdxElementId": "SPDXRef-RootPackage" - } - ], - "spdxVersion": "SPDX-2.2", - "dataLicense": "CC0-1.0", - "SPDXID": "SPDXRef-DOCUMENT", - "name": "AzureFunctions.PowerShell.Durable.SDK 152449", - "documentNamespace": "https://sbom.microsoft/1:vB_F0XdED0q5n_yQEwCaWA:kgyn5ihBn0OAEjgv541jlg/110:152449/zvvi4k5neU2-Hp8eZHDSOw", - "creationInfo": { - "created": "2023-09-11T21:08:38Z", - "creators": [ - "Organization: Microsoft", - "Tool: Microsoft.SBOMTool-2.1.31" - ] - }, - "documentDescribes": [ - "SPDXRef-RootPackage" - ] -} \ No newline at end of file diff --git a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/spdx_2.2/manifest.spdx.json.sha256 b/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/spdx_2.2/manifest.spdx.json.sha256 deleted file mode 100644 index bcbc6eb1b1b5..000000000000 Binary files a/Modules/AzureFunctions.PowerShell.Durable.SDK/1.0.2/_manifest/spdx_2.2/manifest.spdx.json.sha256 and /dev/null differ diff --git a/Modules/CIPPCore/Public/Entrypoints/Invoke-EditGroup.ps1 b/Modules/CIPPCore/Public/Entrypoints/Invoke-EditGroup.ps1 index 3a15a163aaa7..7e002adccdfe 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Invoke-EditGroup.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Invoke-EditGroup.ps1 @@ -28,14 +28,12 @@ Function Invoke-EditGroup { if ($userobj.groupType -eq 'Distribution list' -or $userobj.groupType -eq 'Mail-Enabled Security') { $Params = @{ Identity = $userobj.groupid; Member = $member; BypassSecurityGroupManagerCheck = $true } New-ExoRequest -tenantid $Userobj.tenantid -cmdlet 'Add-DistributionGroupMember' -cmdParams $params -UseSystemMailbox $true - } - else { + } else { New-GraphPostRequest -uri "https://graph.microsoft.com/beta/groups/$($userobj.groupid)" -tenantid $Userobj.tenantid -type patch -body $addmemberbody -Verbose } Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Added $member to $($userobj.groupName) group" -Sev 'Info' $body = $results.add("Success. $member has been added") - } - catch { + } catch { Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Failed to add member $member to $($userobj.groupName). Error:$($_.Exception.Message)" -Sev 'Error' $body = $results.add("Failed to add member $member to $($userobj.groupName): $($_.Exception.Message)") } @@ -53,13 +51,11 @@ Function Invoke-EditGroup { New-ExoRequest -tenantid $Userobj.tenantid -cmdlet 'Add-DistributionGroupMember' -cmdParams $params -UseSystemMailbox $true Write-LogMessage -API $APINAME -tenant $Userobj.tenantid -user $request.headers.'x-ms-client-principal' -message "Added $member to $($userobj.groupName) group" -Sev 'Info' $body = $results.add("Success. $member has been added") - } - else { + } else { Write-LogMessage -API $APINAME -tenant $Userobj.tenantid -user $request.headers.'x-ms-client-principal' -message 'You cannot add a contact to a security group' -Sev 'Error' $body = $results.add('You cannot add a contact to a security group') } - } - catch { + } catch { $body = $results.add("Failed to add member $member to $($userobj.groupName): $($_.Exception.Message)") } } @@ -74,8 +70,7 @@ Function Invoke-EditGroup { if ($userobj.groupType -eq 'Distribution list' -or $userobj.groupType -eq 'Mail-Enabled Security') { $Params = @{ Identity = $userobj.groupid; Member = $member ; BypassSecurityGroupManagerCheck = $true } New-ExoRequest -tenantid $Userobj.tenantid -cmdlet 'Remove-DistributionGroupMember' -cmdParams $params -UseSystemMailbox $true - } - else { + } else { $MemberInfo = (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/users/$($_)" -tenantid $Userobj.tenantid) New-GraphPostRequest -uri "https://graph.microsoft.com/beta/groups/$($userobj.groupid)/members/$($MemberInfo.id)/`$ref" -tenantid $Userobj.tenantid -type DELETE } @@ -83,8 +78,7 @@ Function Invoke-EditGroup { $body = $results.add("Success. Member $member has been removed") } } - } - catch { + } catch { Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Failed to remove $RemoveMembers from $($userobj.groupName). Error:$($_.Exception.Message)" -Sev 'Error' $body = $results.add("Could not remove $RemoveMembers from $($userobj.groupName). $($_.Exception.Message)") } @@ -99,16 +93,14 @@ Function Invoke-EditGroup { $AddOwner = New-GraphPostRequest -uri "https://graph.microsoft.com/beta/groups/$($userobj.groupid)/owners/`$ref" -tenantid $Userobj.tenantid -type POST -body ('{"@odata.id": "' + $ID + '"}') Write-LogMessage -API $APINAME -tenant $Userobj.tenantid -user $request.headers.'x-ms-client-principal' -message "Added owner $_ to $($userobj.groupName) group" -Sev 'Info' $body = $results.add("Success. $_ has been added") - } - catch { + } catch { $body = $results.add("Failed to add owner $_ to $($userobj.groupName): Error:$($_.Exception.Message)") } } } - } - catch { + } catch { Write-LogMessage -user $request.headers.'x-ms-client-principal' -tenant $Userobj.tenantid -API $APINAME -message "Add member API failed. $($_.Exception.Message)" -Sev 'Error' } @@ -121,14 +113,12 @@ Function Invoke-EditGroup { New-GraphPostRequest -uri "https://graph.microsoft.com/beta/groups/$($userobj.groupid)/owners/$($MemberInfo.id)/`$ref" -tenantid $Userobj.tenantid -type DELETE Write-LogMessage -API $APINAME -tenant $Userobj.tenantid -user $request.headers.'x-ms-client-principal' -message "Removed $($MemberInfo.UserPrincipalname) from $($userobj.displayname) group" -Sev 'Info' $body = $results.add("Success. Member $_ has been removed from $($userobj.groupName)") - } - catch { + } catch { $body = $results.add("Failed to remove $_ from $($userobj.groupName): $($_.Exception.Message)") } } } - } - catch { + } catch { Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Failed to remove $RemoveMembers from $($userobj.groupName). Error:$($_.Exception.Message)" -Sev 'Error' $body = $results.add("Could not remove $RemoveMembers from $($userobj.groupName). $($_.Exception.Message)") } @@ -138,16 +128,14 @@ Function Invoke-EditGroup { if ($userobj.groupType -eq 'Distribution list') { $Params = @{ Identity = $userobj.groupid; RequireSenderAuthenticationEnabled = $false } New-ExoRequest -tenantid $Userobj.tenantid -cmdlet 'Set-DistributionGroup' -cmdParams $params - } - else { + } else { $Params = @{ Identity = $userobj.groupid; RequireSenderAuthenticationEnabled = $false } New-ExoRequest -tenantid $Userobj.tenantid -cmdlet 'Set-UnifiedGroup' -cmdParams $params } $body = $results.add("Allowed external senders to send to $($userobj.groupName).") Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Allowed external senders to send to $($userobj.groupName)" -Sev 'Info' - } - catch { + } catch { $body = $results.add("Failed to allow external senders to send to $($userobj.groupName).") Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Failed to allow external senders for $($userobj.groupName). Error:$($_.Exception.Message)" -Sev 'Error' } @@ -170,8 +158,7 @@ Function Invoke-EditGroup { $body = $results.add("Send Copies of team emails and events to team members inboxes for $($userobj.mail) enabled.") Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Send Copies of team emails and events to team members inboxes for $($userobj.mail) enabled." -Sev 'Info' - } - catch { + } catch { $body = $results.add("Failed to Send Copies of team emails and events to team members inboxes for $($userobj.mail).") Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Userobj.tenantid -message "Failed to Send Copies of team emails and events to team members inboxes for $($userobj.mail). Error:$($_.Exception.Message)" -Sev 'Error' } diff --git a/Modules/CIPPCore/Public/Entrypoints/Invoke-ListSites.ps1 b/Modules/CIPPCore/Public/Entrypoints/Invoke-ListSites.ps1 index e9d932125744..9a0d7a228765 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Invoke-ListSites.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Invoke-ListSites.ps1 @@ -38,12 +38,8 @@ Function Invoke-ListSites { @{ Name = 'siteid'; Expression = { $_.'site Id' } } #Temporary workaround for url as report is broken. - if ($Type -eq 'SharePointSiteUsage') { - $URLs = (New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/sites?search=*&`$select=sharepointIds" -asapp $true -tenantid $TenantFilter).sharepointIds - } else { - #Get all OneDrive Urls - #$URLs = (New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/users?`$select=displayName,userPrincipalName" -tenantid $TenantFilter) - } + #This API is so stupid its great. + $URLs = (New-GraphGetRequest -uri 'https://graph.microsoft.com/v1.0/sites/getAllSites?$select=SharePointIds' -asapp $true -tenantid $TenantFilter).SharePointIds $GraphRequest = foreach ($site in $GraphRequest) { $site.URL = ($URLs | Where-Object { $_.siteId -eq $site.SiteId }).siteUrl diff --git a/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 b/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 index 65991c17a452..9e05e5f92bb5 100644 --- a/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 +++ b/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 @@ -92,6 +92,15 @@ function Invoke-CippWebhookProcessing { Proxy = "$Proxy" Hosting = "$hosting" ASName = "$ASName" + Region = "$($location.region)" + RegionName = "$($location.regionName)" + org = "$($location.org)" + zip = "$($location.zip)" + mobile = "$($location.mobile)" + lat = "$($location.lat)" + lon = "$($location.lon)" + isp = "$($location.isp)" + Country = "$($location.country)" } $null = Add-CIPPAzDataTableEntity @LocationTable -Entity $LocationInfo -Force } diff --git a/Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1 b/Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1 index 3c8c48347d2a..1eaeeda79a70 100644 --- a/Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1 +++ b/Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1 @@ -18,7 +18,7 @@ function New-CIPPAlertTemplate { $AfterButtonText = '' $RuleTable = '' $Table = '' - + $LocationInfo = $LocationInfo | Select-Object *, -excludeproperty Etag, PartitionKey, RowKey, TimeStamp switch ($Data.Operation) { 'New-InboxRule' { $Title = "$($TenantFilter) - New Rule Detected for $($data.UserId)" diff --git a/Modules/CIPPCore/Public/Set-CIPPOneDriveAccess.ps1 b/Modules/CIPPCore/Public/Set-CIPPOneDriveAccess.ps1 index a576f0b8257c..53cdaf9def8e 100644 --- a/Modules/CIPPCore/Public/Set-CIPPOneDriveAccess.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPOneDriveAccess.ps1 @@ -4,12 +4,12 @@ function Set-CIPPOnedriveAccess { $userid, $OnedriveAccessUser, $TenantFilter, - $APIName = "Manage OneDrive Access", + $APIName = 'Manage OneDrive Access', $ExecutingUser ) try { - $URL = (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/reports/getOneDriveUsageAccountDetail(period='D7')?`$format=application/json" -tenantid $TenantFilter | Where-Object -Property 'OwnerPrincipalName' -EQ $userid).siteUrl + $URL = (New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/users/$($UserId)/Drives" -asapp $true -tenantid $TenantFilter).WebUrl $OnMicrosoft = (New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/domains?$top=999' -tenantid $TenantFilter | Where-Object -Property isInitial -EQ $true).id.split('.') | Select-Object -First 1 $AdminUrl = "https://$($OnMicrosoft)-admin.sharepoint.com" $XML = @" @@ -31,16 +31,14 @@ function Set-CIPPOnedriveAccess { "@ $request = New-GraphPostRequest -scope "$AdminURL/.default" -tenantid $TenantFilter -Uri "$AdminURL/_vti_bin/client.svc/ProcessQuery" -Type POST -Body $XML -ContentType 'text/xml' if (!$request.ErrorInfo.ErrorMessage) { - Write-LogMessage -user $ExecutingUser -API $APIName -message "Gave $($OnedriveAccessUser) access to $($userid) OneDrive" -Sev "Info" -tenant $TenantFilter + Write-LogMessage -user $ExecutingUser -API $APIName -message "Gave $($OnedriveAccessUser) access to $($userid) OneDrive" -Sev 'Info' -tenant $TenantFilter return "User's OneDrive URL is $URL. Access has been given to $($OnedriveAccessUser)" - } - else { - Write-LogMessage -user $ExecutingUser -API $APIName -message "Failed to give OneDrive Access: $($request.ErrorInfo.ErrorMessage)" -Sev "Info" -tenant $TenantFilter + } else { + Write-LogMessage -user $ExecutingUser -API $APIName -message "Failed to give OneDrive Access: $($request.ErrorInfo.ErrorMessage)" -Sev 'Info' -tenant $TenantFilter return "Failed to give OneDrive Access: $($request.ErrorInfo.ErrorMessage)" } - } - catch { - Write-LogMessage -user $ExecutingUser -API $APIName -message "Could not add new owner to OneDrive $($OnedriveAccessUser) on $($userid)" -Sev "Error" -tenant $TenantFilter + } catch { + Write-LogMessage -user $ExecutingUser -API $APIName -message "Could not add new owner to OneDrive $($OnedriveAccessUser) on $($userid)" -Sev 'Error' -tenant $TenantFilter return "Could not add owner to OneDrive for $($userid). Error: $($_.Exception.Message)" } } diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableCustomerLockbox.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableCustomerLockbox.ps1 index 6e259bc1bead..da29718d1147 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableCustomerLockbox.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardEnableCustomerLockbox.ps1 @@ -5,28 +5,32 @@ function Invoke-CIPPStandardEnableCustomerLockbox { #> param($Tenant, $Settings) + $CustomerLockboxStatus = (New-ExoRequest -tenantid $Tenant -cmdlet 'Get-OrganizationConfig').CustomerLockboxEnabled if ($Settings.remediate) { try { - New-ExoRequest -tenantid $Tenant -cmdlet 'Set-OrganizationConfig' -cmdParams @{ CustomerLockboxEnabled = $true } -UseSystemMailbox $true - Write-LogMessage -API 'Standards' -tenant $tenant -message 'Successfully enabled Customer Lockbox' -sev Info - } catch { - Write-LogMessage -API 'Standards' -tenant $tenant -message "Failed to enable Customer Lockbox. Error: $($_.exception.message)" -sev Error - } - } - if ($Settings.alert -or $Settings.report) { - $CurrentInfo = New-ExoRequest -tenantid $Tenant -cmdlet 'Get-OrganizationConfig' - if ($Settings.alert) { - if ($CurrentInfo.CustomerLockboxEnabled) { - Write-LogMessage -API 'Standards' -tenant $tenant -message 'Customer Lockbox is enabled' -sev Info + if ($CustomerLockboxStatus) { + Write-LogMessage -API 'Standards' -tenant $tenant -message 'Customer Lockbox already enabled' -sev Info } else { - Write-LogMessage -API 'Standards' -tenant $tenant -message 'Customer Lockbox is not enabled' -sev Alert + New-ExoRequest -tenantid $Tenant -cmdlet 'Set-OrganizationConfig' -cmdParams @{ CustomerLockboxEnabled = $true } -UseSystemMailbox $true + Write-LogMessage -API 'Standards' -tenant $tenant -message 'Successfully enabled Customer Lockbox' -sev Info } + } catch [System.Management.Automation.RuntimeException] { + Write-LogMessage -API 'Standards' -tenant $tenant -message 'Failed to enable Customer Lockbox. E5 license required' -sev Error + } catch { + Write-LogMessage -API 'Standards' -tenant $tenant -message "Failed to enable Customer Lockbox. Error: $($_.Exception.Message)" -sev Error } - if ($Settings.report) { - Add-CIPPBPAField -FieldName 'CustomerLockboxEnabled' -FieldValue [bool]$CurrentInfo.CustomerLockboxEnabled -StoreAs bool -Tenant $tenant + } + + if ($Settings.alert) { + if ($CustomerLockboxStatus) { + Write-LogMessage -API 'Standards' -tenant $tenant -message 'Customer Lockbox is enabled' -sev Info + } else { + Write-LogMessage -API 'Standards' -tenant $tenant -message 'Customer Lockbox is not enabled' -sev Alert } } + if ($Settings.report) { + Add-CIPPBPAField -FieldName 'CustomerLockboxEnabled' -FieldValue [bool]$CustomerLockboxStatus -StoreAs bool -Tenant $tenant + } } - diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardcalDefault.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardcalDefault.ps1 index fc4c3adb78a0..a138f72f0d7f 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardcalDefault.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardcalDefault.ps1 @@ -6,8 +6,9 @@ function Invoke-CIPPStandardcalDefault { param($Tenant, $Settings, $QueueItem) If ($Settings.remediate) { - $Mailboxes = New-ExoRequest -tenantid $Tenant -cmdlet 'Get-Mailbox' - Write-LogMessage -API 'Standards' -tenant $Tenant -message "Started setting default calendar permissions for $($Mailboxes.Count) mailboxes." -sev Info + $Mailboxes = New-ExoRequest -tenantid $Tenant -cmdlet 'Get-Mailbox' | Sort-Object UserPrincipalName + $TotalMailboxes = $Mailboxes.Count + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Started setting default calendar permissions for $($TotalMailboxes) mailboxes." -sev Info # Retrieve the last run status $LastRunTable = Get-CIPPTable -Table StandardsLastRun @@ -15,54 +16,56 @@ function Invoke-CIPPStandardcalDefault { $LastRun = Get-CIPPAzDataTableEntity @LastRunTable -Filter $Filter $startIndex = 0 - if ($LastRun -and $LastRun.totalMailboxes -ne $LastRun.processedMailboxes) { + if ($LastRun -and $LastRun.processedMailboxes -lt $LastRun.totalMailboxes ) { $startIndex = $LastRun.processedMailboxes } - $SuccessCounter = if ($lastrun.currentSuccessCount) { [int64]$lastrun.currentSuccessCount } else { 0 } - $UserSuccesses = [HashTable]::Synchronized(@{Counter = $SuccessCounter }) + + $SuccessCounter = if ($startIndex -eq 0) { 0 } else { [int64]$LastRun.currentSuccessCount } $processedMailboxes = $startIndex - $mailboxes = $mailboxes[$startIndex..($mailboxes.Count)] + $Mailboxes = $Mailboxes[$startIndex..($TotalMailboxes - 1)] Write-Host "CalDefaults Starting at index $startIndex" + Write-Host "CalDefaults success counter starting at $SuccessCounter" + Write-Host "CalDefaults Processing $($Mailboxes.Count) mailboxes" $Mailboxes | ForEach-Object { $Mailbox = $_ try { New-ExoRequest -tenantid $Tenant -cmdlet 'Get-MailboxFolderStatistics' -cmdParams @{identity = $Mailbox.UserPrincipalName; FolderScope = 'Calendar' } -Anchor $Mailbox.UserPrincipalName | Where-Object { $_.FolderType -eq 'Calendar' } | - ForEach-Object { - try { - New-ExoRequest -tenantid $Tenant -cmdlet 'Set-MailboxFolderPermission' -cmdparams @{Identity = "$($Mailbox.UserPrincipalName):$($_.FolderId)"; User = 'Default'; AccessRights = $Settings.permissionlevel } -Anchor $Mailbox.UserPrincipalName - Write-LogMessage -API 'Standards' -tenant $Tenant -message "Set default folder permission for $($Mailbox.UserPrincipalName):\$($_.Name) to $($Settings.permissionlevel)" -sev Debug - $UserSuccesses.Counter++ - } catch { - Write-Host "Setting cal failed: $($_.exception.message)" - Write-LogMessage -API 'Standards' -tenant $Tenant -message "Could not set default calendar permissions for $($Mailbox.UserPrincipalName). Error: $($_.exception.message)" -sev Error + ForEach-Object { + try { + New-ExoRequest -tenantid $Tenant -cmdlet 'Set-MailboxFolderPermission' -cmdparams @{Identity = "$($Mailbox.UserPrincipalName):$($_.FolderId)"; User = 'Default'; AccessRights = $Settings.permissionlevel } -Anchor $Mailbox.UserPrincipalName + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Set default folder permission for $($Mailbox.UserPrincipalName):\$($_.Name) to $($Settings.permissionlevel)" -sev Debug + $SuccessCounter++ + } catch { + Write-Host "Setting cal failed: $($_.exception.message)" + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Could not set default calendar permissions for $($Mailbox.UserPrincipalName). Error: $($_.exception.message)" -sev Error + } } + } catch { + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Could not set default calendar permissions for $($Mailbox.UserPrincipalName). Error: $($_.exception.message)" -sev Error } - } catch { - Write-LogMessage -API 'Standards' -tenant $Tenant -message "Could not set default calendar permissions for $($Mailbox.UserPrincipalName). Error: $($_.exception.message)" -sev Error - } - $processedMailboxes++ - if ($processedMailboxes % 25 -eq 0) { - $LastRun = @{ - RowKey = 'calDefaults' - PartitionKey = $Tenant - totalMailboxes = $Mailboxes.count - processedMailboxes = $processedMailboxes - currentSuccessCount = $UserSuccesses.Counter + $processedMailboxes++ + if ($processedMailboxes % 25 -eq 0) { + $LastRun = @{ + RowKey = 'calDefaults' + PartitionKey = $Tenant + totalMailboxes = $TotalMailboxes + processedMailboxes = $processedMailboxes + currentSuccessCount = $SuccessCounter + } + Add-CIPPAzDataTableEntity @LastRunTable -Entity $LastRun -Force + Write-Host "Processed $processedMailboxes mailboxes" } - Add-CIPPAzDataTableEntity @LastRunTable -Entity $LastRun -Force - Write-Host "Processed $processedMailboxes mailboxes" } - } - $LastRun = @{ - RowKey = 'calDefaults' - PartitionKey = $Tenant - totalMailboxes = $Mailboxes.count - processedMailboxes = $processedMailboxes - currentSuccessCount = $UserSuccesses.Counter - } - Add-CIPPAzDataTableEntity @LastRunTable -Entity $LastRun -Force + $LastRun = @{ + RowKey = 'calDefaults' + PartitionKey = $Tenant + totalMailboxes = $TotalMailboxes + processedMailboxes = $processedMailboxes + currentSuccessCount = $SuccessCounter + } + Add-CIPPAzDataTableEntity @LastRunTable -Entity $LastRun -Force - Write-LogMessage -API 'Standards' -tenant $Tenant -message "Successfully set default calendar permissions for $($UserSuccesses.Counter) out of $($Mailboxes.Count) mailboxes." -sev Info + Write-LogMessage -API 'Standards' -tenant $Tenant -message "Successfully set default calendar permissions for $SuccessCounter out of $TotalMailboxes mailboxes." -sev Info + } } -} diff --git a/profile.ps1 b/profile.ps1 index f0507dec3db2..f30159db12cb 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -13,7 +13,7 @@ # Remove this if you are not planning on using MSI or Azure PowerShell. # Import modules -@('CippCore', 'CippExtensions', 'Az.KeyVault', 'Az.Accounts', 'AzureFunctions.PowerShell.Durable.SDK') | ForEach-Object { +@('CippCore', 'CippExtensions', 'Az.KeyVault', 'Az.Accounts') | ForEach-Object { try { Import-Module -Name $_ -ErrorAction Stop } catch { diff --git a/version_latest.txt b/version_latest.txt index efd4ffcab8d6..14d8a90bcd7a 100644 --- a/version_latest.txt +++ b/version_latest.txt @@ -1 +1 @@ -4.9.5 \ No newline at end of file +4.9.6 \ No newline at end of file