AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Update-ASAutoScalingGroup-AutoScalingGroupName <String>-LaunchConfigurationName <String>-MinSize <Int32>-MaxSize <Int32>-DesiredCapacity <Int32>-AvailabilityZone <String[]>-AvailabilityZoneDistribution_CapacityDistributionStrategy <CapacityDistributionStrategy>-CapacityRebalance <Boolean>-CapacityReservationTarget_CapacityReservationId <String[]>-CapacityReservationSpecification_CapacityReservationPreference <CapacityReservationPreference>-CapacityReservationTarget_CapacityReservationResourceGroupArn <String[]>-Context <String>-DefaultCooldown <Int32>-DefaultInstanceWarmup <Int32>-DesiredCapacityType <String>-HealthCheckGracePeriod <Int32>-HealthCheckType <String>-AvailabilityZoneImpairmentPolicy_ImpairedZoneHealthCheckBehavior <ImpairedZoneHealthCheckBehavior>-LaunchTemplate_LaunchTemplateId <String>-LaunchTemplate_LaunchTemplateName <String>-InstanceMaintenancePolicy_MaxHealthyPercentage <Int32>-MaxInstanceLifetime <Int32>-InstanceMaintenancePolicy_MinHealthyPercentage <Int32>-MixedInstancesPolicy <MixedInstancesPolicy>-NewInstancesProtectedFromScaleIn <Boolean>-PlacementGroup <String>-ServiceLinkedRoleARN <String>-SkipZonalShiftValidation <Boolean>-TerminationPolicy <String[]>-LaunchTemplate_Version <String>-VPCZoneIdentifier <String>-AvailabilityZoneImpairmentPolicy_ZonalShiftEnabled <Boolean>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonAutoScalingConfig>
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AvailabilityZones |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CapacityReservationSpecification_CapacityReservationTarget_CapacityReservationIds |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CapacityReservationSpecification_CapacityReservationTarget_CapacityReservationResourceGroupArns |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 5 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 2 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 4 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 3 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TerminationPolicies |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Update-ASAutoScalingGroup -AutoScalingGroupName my-asg -MaxSize 5 -MinSize 1This example updates the minimum and maximum size of the specified Auto Scaling group.
Update-ASAutoScalingGroup -AutoScalingGroupName my-asg -DefaultCooldown 10This example updates the default cooldown period of the specified Auto Scaling group.
Update-ASAutoScalingGroup -AutoScalingGroupName my-asg -AvailabilityZone @("us-west-2a", "us-west-2b")This example updates the Availability Zones of the specified Auto Scaling group.
Update-ASAutoScalingGroup -AutoScalingGroupName my-asg -HealthCheckType ELB -HealthCheckGracePeriod 60This example updates the specified Auto Scaling group to use Elastic Load Balancing health checks.
AWS Tools for PowerShell: 2.x.y.z