< Back

Get-ProvAzureServiceMapMachineGroup

Sun Jan 19, 2020 5:37 pm

NAME Get-ProvAzureServiceMapMachineGroup



SYNOPSIS

Retrieves the list of Azure Service Map Groups.





SYNTAX

Get-ProvAzureServiceMapMachineGroup -AuthContext <object> -OMSContext <object> [-ApiVersion <string>]

[-DisplayName <string>] [<CommonParameters>]





DESCRIPTION

This commandlet retrieves all servcie map groups of a Service Map workspace.



The output can be limited by filtering by name of Service Map Group.





PARAMETERS

-AuthContext <object>

The authorization context obtain with "Get-ProvAzureAuthContext".



Store the output of this command in a variable and use it as input value for this parameter"



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OMSContext <object>

The OMS Workspace where the ResourceManager Solution resided, needs to be defined first.



Use the command Set-ProvAzueOMSWorkspace, store the output in a variable (i.e. $OmsWorkspace) and take this

variable as input for this parameter.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ApiVersion <string>

The version of the Azure REST API to use.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DisplayName <string>

"Filter the Service Map Machine Groups by Display Name. "



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

"Filter the Service Map Machine Groups by Display Name. "





OUTPUTS

Provance.Azure.Common.Model.ServiceMapMachineGroup





---------- EXAMPLE 1 ----------



Retrieve all Machine Groups beginning with "W"





$MachineGroupDisplayName = "Hardware"





Get-ProvAzureServiceMapMachineGroup -AuthContext $token -OMSContext $smWrkSpc -DisplayName

$MachineGroupDisplayName



The $token object shall be generated with "Get-ProvAzureAuthContext" first





RELATED LINKS