DSCResources/MmaAgent/MmaAgent.schema.psm1
configuration MmaAgent { param ( [Parameter(Mandatory = $true)] [string] $WorkspaceId, [Parameter(Mandatory = $true)] [pscredential] $WorkspaceKey, [Parameter()] [string] $ProxyUri, [Parameter()] [pscredential] $ProxyCredential ) Import-DscResource -ModuleName PSDesiredStateConfiguration Import-DscResource -ModuleName MmaDsc if ($PSBoundParameters.ContainsKey('InstanceName')) { $PSBoundParameters.Remove('InstanceName') } (Get-DscSplattedResource -ResourceName WorkspaceConfiguration -ExecutionName MmaConfig -Properties $PSBoundParameters -NoInvoke).Invoke($PSBoundParameters) } |