Beispiel #1
0
 public AzureProvisioningConfigInfo(string linuxUser, string password = null, bool noSshEndpoint = false,
                                    bool disableSSH = false, LinuxProvisioningConfigurationSet.SSHKeyPairList sSHKeyPairList       = null,
                                    LinuxProvisioningConfigurationSet.SSHPublicKeyList sSHPublicKeyList = null, bool noSSHPassword = false)
 {
     this.OS            = OS.Linux;
     this.LinuxUser     = linuxUser;
     this.DisableSSH    = disableSSH;
     this.NoSSHEndpoint = noSshEndpoint;
     if (!string.IsNullOrEmpty(password))
     {
         this.Password = password;
     }
     if (sSHKeyPairList != null)
     {
         this.SSHKeyPairs = sSHKeyPairList;
     }
     if (sSHPublicKeyList != null)
     {
         this.SshPublicKeys = sSHPublicKeyList;
     }
     if (noSSHPassword)
     {
         this.NoSSHPassword = noSSHPassword;
     }
 }
 public AzureProvisioningConfigInfo(string linuxUser, string password = null, bool noSshEndpoint = false,
     bool disableSSH = false, LinuxProvisioningConfigurationSet.SSHKeyPairList sSHKeyPairList = null,
     LinuxProvisioningConfigurationSet.SSHPublicKeyList sSHPublicKeyList = null, bool noSSHPassword = false)
 {
     this.OS = OS.Linux;
     this.LinuxUser = linuxUser;
     this.DisableSSH = disableSSH;
     this.NoSSHEndpoint = noSshEndpoint;
     if (!string.IsNullOrEmpty(password))
     {
         this.Password = password;
     }
     if (sSHKeyPairList != null)
     {
         this.SSHKeyPairs = sSHKeyPairList;
     }
     if (sSHPublicKeyList != null)
     {
         this.SshPublicKeys = sSHPublicKeyList;
     }
     if (noSSHPassword)
     {
         this.NoSSHPassword = noSSHPassword;
     }
 }
Beispiel #3
0
        public NewAzureQuickVMCmdletInfo(

            OS os,
            string userName,
            string affinityGroup,
            string availabilitySetName,
            CertificateSettingList certificates,
            DnsServer[] dnsSettings,
            string hostCaching,
            string imageName,
            string instanceSize,
            string location,
            string mediaLocation,
            string name,
            string password,
            string serviceName,
            LinuxProvisioningConfigurationSet.SSHKeyPairList sshKeyPairs,
            LinuxProvisioningConfigurationSet.SSHPublicKeyList sshPublicKeys,
            string[] subnetNames,
            string vnetName)
            : this(os, name, serviceName, imageName, userName, password, location, instanceSize)
        {
            if (!string.IsNullOrEmpty(affinityGroup))
            {
                cmdletParams.Add(new CmdletParam("AffinityGroup", affinityGroup));
            }
            if (!string.IsNullOrEmpty(availabilitySetName))
            {
                cmdletParams.Add(new CmdletParam("AvailabilitySetName", availabilitySetName));
            }
            if (certificates != null)
            {
                cmdletParams.Add(new CmdletParam("Certificates", certificates));
            }
            if (dnsSettings != null)
            {
                cmdletParams.Add(new CmdletParam("DnsSettings", dnsSettings));
            }
            if (!string.IsNullOrEmpty(hostCaching))
            {
                cmdletParams.Add(new CmdletParam("HostCaching", hostCaching));
            }
            if (!string.IsNullOrEmpty(mediaLocation))
            {
                cmdletParams.Add(new CmdletParam("MediaLocation", mediaLocation));
            }
            if (sshKeyPairs != null)
            {
                cmdletParams.Add(new CmdletParam("SSHKeyPairs", sshKeyPairs));
            }
            if (sshPublicKeys != null)
            {
                cmdletParams.Add(new CmdletParam("SSHPublicKeys", sshPublicKeys));
            }
            if (subnetNames != null)
            {
                cmdletParams.Add(new CmdletParam("SubnetNames", subnetNames));
            }
            if (!string.IsNullOrEmpty(vnetName))
            {
                cmdletParams.Add(new CmdletParam("VNetName", vnetName));
            }
        }