Set-AzureRmDeploymentManagerService

Updates a service in service topology.

Syntax

Set-AzureRmDeploymentManagerService
   [-Service] <PSServiceResource>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-AzureRmDeploymentManagerService cmdlet updates a service with the specified service object. The cmdlet returns the updated service object.

Examples

Example 1

PS C:\> Set-AzureRmDeploymentManagerService -Service $serviceObject

This command updates a service whose name, service topology name and ResourceGroup match the Name, ServiceTopologyName and ResourceGroupName properties of the $serviceObject, respectively. The service would be updated to the properties set in the $serviceObject.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Service

The service object.

Type:Microsoft.Azure.Commands.DeploymentManager.Models.PSServiceResource
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.DeploymentManager.Models.PSServiceResource

Outputs

Microsoft.Azure.Commands.DeploymentManager.Models.PSServiceResource