Skip to content

Commit

Permalink
Merge branch 'KelvinTegelaar:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
spinen-Earl authored Apr 29, 2024
2 parents 6034677 + 2c49359 commit 963412a
Show file tree
Hide file tree
Showing 285 changed files with 43,290 additions and 793 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dev_cippeln4y.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Powershell project to Azure Function App - cippeln4y

on:
push:
branches:
- dev
workflow_dispatch:

env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root

jobs:
deploy:
runs-on: windows-latest

steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4

- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'cippeln4y'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B82C66E0F3BD4BDD9FFFB32FA83A68C9 }}
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 963412a

Please sign in to comment.