private void Run()
        {
            // AgentPoolProfiles
            if (this.ContainerService.AgentPoolProfiles == null)
            {
                this.ContainerService.AgentPoolProfiles = new List<Microsoft.Azure.Management.Compute.Models.ContainerServiceAgentPoolProfile>();
            }

            var vAgentPoolProfiles = new Microsoft.Azure.Management.Compute.Models.ContainerServiceAgentPoolProfile();

            vAgentPoolProfiles.Name = this.MyInvocation.BoundParameters.ContainsKey("Name") ? this.Name : null;
            vAgentPoolProfiles.Count = this.Count;
            vAgentPoolProfiles.VmSize = this.MyInvocation.BoundParameters.ContainsKey("VmSize") ? (ContainerServiceVMSizeTypes) this.VmSize : null;
            vAgentPoolProfiles.DnsPrefix = this.MyInvocation.BoundParameters.ContainsKey("DnsPrefix") ? this.DnsPrefix : null;
            this.ContainerService.AgentPoolProfiles.Add(vAgentPoolProfiles);
            WriteObject(this.ContainerService);
        }
        protected override void ProcessRecord()
        {
            // AgentPoolProfiles
            if (this.ContainerService.AgentPoolProfiles == null)
            {
                this.ContainerService.AgentPoolProfiles = new List<Microsoft.Azure.Management.Compute.Models.ContainerServiceAgentPoolProfile>();
            }

            var vAgentPoolProfiles = new Microsoft.Azure.Management.Compute.Models.ContainerServiceAgentPoolProfile();

            vAgentPoolProfiles.Name = this.Name;
            vAgentPoolProfiles.Count = this.Count;
            vAgentPoolProfiles.VmSize = this.VmSize;
            vAgentPoolProfiles.DnsPrefix = this.DnsPrefix;
            this.ContainerService.AgentPoolProfiles.Add(vAgentPoolProfiles);
            WriteObject(this.ContainerService);
        }
Exemplo n.º 3
0
        protected override void ProcessRecord()
        {
            // AgentPoolProfiles
            if (this.ContainerService.AgentPoolProfiles == null)
            {
                this.ContainerService.AgentPoolProfiles = new List <Microsoft.Azure.Management.Compute.Models.ContainerServiceAgentPoolProfile>();
            }

            var vAgentPoolProfiles = new Microsoft.Azure.Management.Compute.Models.ContainerServiceAgentPoolProfile();

            vAgentPoolProfiles.Name      = this.Name;
            vAgentPoolProfiles.Count     = this.Count;
            vAgentPoolProfiles.VmSize    = this.VmSize;
            vAgentPoolProfiles.DnsPrefix = this.DnsPrefix;
            this.ContainerService.AgentPoolProfiles.Add(vAgentPoolProfiles);
            WriteObject(this.ContainerService);
        }