Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-CMAzureService

Get an Azure service.

Syntax

SearchByName (Default)

Get-CMAzureService
 [-Name <String>]
 [-DisableWildcardHandling]
 [-ForceWildcardHandling]
 [<CommonParameters>]

SearchByIdMandatory

Get-CMAzureService
 -Id <Int32>
 [-DisableWildcardHandling]
 [-ForceWildcardHandling]
 [<CommonParameters>]

Description

Use this cmdlet to get the Azure service. For more information, see Configure Azure services.

Note

This cmdlet might work with other Azure services, but it's only tested with the Cloud management connection to support the cloud management gateway (CMG).

Examples

Example 1: Get the Azure service by name

The following example gets the Azure service from the site by its name.

Get-CMAzureService -Name "Contoso"

Example 2: Get the Azure service by ID

The following example gets the Azure services from the site by its ID.

Get-CMAzureService -Id 2

Parameters

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Id

Specify the site's ID for the Azure service. The Id is the integer value stored in the site database for the service. For example, run the following SQL query, and look at the ID column: select * from Azure_CloudService.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureServiceId

Parameter sets

-Name

Specify the site's name for the Azure service. The Name is the same value as in the Azure Services node in the console.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

IResultObject

Related Links


Feedback

Was this page helpful?