Set-​Azure​RM​Managed​Location

Modifies an existing managed location.

Syntax

Set-AzureRMManagedLocation
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Location <Location>
   [-PipelineVariable <String>]
   [<CommonParameters>]

Description

The Set-AzureRMManagedLocation cmdlet modifies an existing managed location.

Examples

Example 1: Change a property of an existing managed location

$locationToUpdate = Get-AzureRMManagedLocation -Name "Chicago"
$locationToUpdate.Longitude = 80.5
Set-AzureRMManagedLocation -Location $locationToUpdate

This example modifies the Longitude property of the managed location named "Chicago". The first statement gets the managed location named "Chicago" and stores the object in the $locationToUpdate variable. After the Longitude property is changed, the updated object is passed in the Location parameter of the Set-AzureRMManagedLocation cmdlet.

Required Parameters

-Location

Specifies an updated Location object to be used for updating the existing location data.

Type:Location
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies a variable that is used for storing an informational message.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PipelineVariable

Specifies a variable that stores the value of the current pipeline element.

Type:String
Aliases:pv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.Location