Initial Commit
This commit is contained in:
11
Microsoft.SelfService.Portal.PowerShell.Deployment.psd1
Normal file
11
Microsoft.SelfService.Portal.PowerShell.Deployment.psd1
Normal file
@@ -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 = @()
|
||||||
|
}
|
||||||
13
Microsoft.SelfService.Portal.PowerShell.Deployment.psm1
Normal file
13
Microsoft.SelfService.Portal.PowerShell.Deployment.psm1
Normal file
@@ -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")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user