commit 5de9ab325dfeceee9c3ad21cdaff3552bea2cc4b Author: Torsten Brendgen Date: Sun Feb 8 14:54:46 2026 +0100 Initial Commit diff --git a/Microsoft.SelfService.Portal.PowerShell.Deployment.psd1 b/Microsoft.SelfService.Portal.PowerShell.Deployment.psd1 new file mode 100644 index 0000000..8ca92ba --- /dev/null +++ b/Microsoft.SelfService.Portal.PowerShell.Deployment.psd1 @@ -0,0 +1,11 @@ +@{ + ModuleVersion = '1.0.0' + GUID = 'bb381d89-f5f3-42a9-b3a3-488fa230479a' + Author = 'Torsten Brendgen' + Description = 'Microsoft SelfService Portal Domain PowerShell Functions' + RootModule = 'Microsoft.SelfService.Portal.PowerShell.Deployment.psm1' + FunctionsToExport = '*' + CmdletsToExport = @() + VariablesToExport = @() + AliasesToExport = @() +} \ No newline at end of file diff --git a/Microsoft.SelfService.Portal.PowerShell.Deployment.psm1 b/Microsoft.SelfService.Portal.PowerShell.Deployment.psm1 new file mode 100644 index 0000000..b37c3a5 --- /dev/null +++ b/Microsoft.SelfService.Portal.PowerShell.Deployment.psm1 @@ -0,0 +1,13 @@ +Import-Module -Name "Microsoft.SelfService.Portal.PowerShell.Core" -Force + +function Get-SSPDeployments { + return $(Invoke-SSPRequest -Method Get -Endpoint "Deployment") +} + +function Get-SSPDeploymentById { + Param( + [System.Guid] $Id + ) + + return $(Invoke-SSPRequest -Method Get -Endpoint "Deployment" -Query "$Id") +} \ No newline at end of file