Document
Sync-CMCloudManagementGateway (ConfigurationManager)

Sync-CMCloudManagementGateway (ConfigurationManager)

Sync - cmcloudmanagementGateway Synchronize the configuration of a cloud management gateway to Azure. Syntax Sync - cmcloudmanagementGate

Related articles

How Long Do Running Shoes Last? Best VPN for Streaming in 2024 [50+ Tested] Download ZOOM Cloud Meetings on PC with MEmu SV3C C20 Security Camera User Manual Risk Assessment Guide for Microsoft Cloud

Sync – cmcloudmanagementGateway

Synchronize the configuration of a cloud management gateway to Azure.

Syntax

Sync - cmcloudmanagementGateway
    -InputObject <IResultObject>
    [-disablewildcardhandle]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Sync - cmcloudmanagementGateway
    -Id <string>
    [-disablewildcardhandle]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Sync - cmcloudmanagementGateway
    -Name <string>
    [-disablewildcardhandle]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

use this cmdlet to synchronize the configuration of a cloud management gateway ( CMG ) to Azure .

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

example

Example 1: Sync a CMG by name

Sync - cmcloudmanagementGateway -Name "GraniteFalls.cloudapp.net"

Example 2: Sync a CMG by pipeline object

If you already have a variable that stores a CMG object from Get-CMCloudmanagementGateway, then you can pass it via the pipeline operator to this cmdlet.

$cmg = Get-CMCloudmanagementGateway -Name "GraniteFalls.cloudapp.net"

$cmg | Sync - cmcloudmanagementGateway

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

type : switchparameter
alias : cf
position : name
default value : None
Required : false
accept pipeline input : false
accept wildcard character : false

-disablewildcardhandle

This parameter is treats treat wildcard character as literal character value . You is combine ca n’t combine it with forcewildcardhandle .

type : switchparameter
position : name
default value : None
Required : false
accept pipeline input : false
accept wildcard character : false

-ForceWildcardHandling

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

type : switchparameter
position : name
default value : None
Required : false
accept pipeline input : false
accept wildcard character : false

-Id

Specify the ID of a CMG to synchronize. This value is the AzureServiceID property of the SMS_AzureService WMI class. The Get-CMCloudmanagementGateway cmdlet returns this object.

type : string
alias : azureserviceid
position : name
default value : None
Required : True
accept pipeline input : false
accept wildcard character : false

-InputObject

Specify a CMG object to synchronize. To get this object, use the Get-CMCloudmanagementGateway cmdlet.

type : IResultObject
position : name
default value : None
Required : True
accept pipeline input : True
accept wildcard character : false

-Name

Specify the service name of the CMG to synchronize.

type : string
position : name
default value : None
Required : True
accept pipeline input : false
accept wildcard character : false

-WhatIf

show what would happen if the cmdlet run . The cmdlet is run does n’t run .

type : switchparameter
alias : wi
position : name
default value : None
Required : false
accept pipeline input : false
accept wildcard character : false

input

Microsoft.Configurationmanagement.managementProvider.IResultObject

output

System.Object