Add-​Azure​Rm​Container​Service​Agent​Pool​Profile

Adds a container service agent pool profile.

Syntax

Add-AzureRmContainerServiceAgentPoolProfile
   [-ContainerService] <ContainerService>
   [[-Name] <String>]
   [[-Count] <Int32>]
   [[-VmSize] <String>]
   [[-DnsPrefix] <String>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Add-AzureRmContainerServiceAgentPoolProfile cmdlet adds a container service agent pool profile to a local container service object.

Examples

Example 1: Add a profile

PS C:\> Add-AzureRmContainerServiceAgentPoolProfile -Name "AgentPool01" -VmSize "Standard_A1" -DnsPrefix "APResourceGroup17"

This command adds a container service agent pool profile to the local container service object.

Required Parameters

-ContainerService

Specifies the container service object to which this cmdlet adds an agent pool profile. To obtain a ContainerService object, use the New-AzureRmContainerServiceConfig cmdlet.

Type:ContainerService
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Specifies the number of agents that host containers. The acceptable values for this parameter are: integers from 1 to 100. The default value is 1.

Type:Int32
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DnsPrefix

Specifies the DNS prefix that this cmdlet uses to create the fully qualified domain name for this agent pool.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the agent pool profile. This value must be unique in the context of the subscription and resource group.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-VmSize

Specifies the size of the virtual machines for the agents.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False