Skip to content

Commit

Permalink
Merge pull request #65 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
BNWEIN authored Apr 29, 2024
2 parents d5c9398 + a53ac4c commit d0a7a53
Show file tree
Hide file tree
Showing 276 changed files with 43,037 additions and 760 deletions.
6 changes: 5 additions & 1 deletion DomainAnalyser_OrchestrationStarter/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ using namespace System.Net
param($Request, $TriggerMetadata)

$Results = [pscustomobject]@{'Results' = 'Domain Analyser started' }
$TenantList = Get-Tenants -IncludeAll
$Queue = New-CippQueueEntry -Name 'Domain Analyser' -TotalTasks ($TenantList | Measure-Object).Count
$InputObject = [PSCustomObject]@{
QueueFunction = [PSCustomObject]@{
FunctionName = 'GetTenants'
DurableName = 'DomainAnalyserTenant'
DurableName = 'DomainAnalyserTenant'
QueueId = $Queue.RowKey
TenantParams = @{
IncludeAll = $true
}
}
OrchestratorName = 'DomainAnalyser_Tenants'
SkipLog = $true
DurableMode = 'Sequence'
}
Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject ($InputObject | ConvertTo-Json -Compress -Depth 5)

Expand Down
3 changes: 3 additions & 0 deletions Domain_OrchestrationStarterTimer/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ try {
Write-LogMessage -API 'DomainAnalyser' -message 'Starting Domain Analyser' -sev Info
$Results = [pscustomobject]@{'Results' = 'Starting Domain Analyser' }

$TenantList = Get-Tenants -IncludeAll
$Queue = New-CippQueueEntry -Name 'Domain Analyser' -TotalTasks ($TenantList | Measure-Object).Count
$InputObject = [PSCustomObject]@{
QueueFunction = [PSCustomObject]@{
FunctionName = 'GetTenants'
DurableName = 'DomainAnalyserTenant'
QueueId = $Queue.RowKey
TenantParams = @{
IncludeAll = $true
}
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
@{
# Version number of this module.
ModuleVersion = '1.1.0'

# 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',
'Suspend-DurableOrchestration',
'Resume-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
}
Loading

0 comments on commit d0a7a53

Please sign in to comment.