ArmLabServicesModelFactory.LabVirtualMachineConnectionProfile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of LabVirtualMachineConnectionProfile.
public static Azure.ResourceManager.LabServices.Models.LabVirtualMachineConnectionProfile LabVirtualMachineConnectionProfile (System.Net.IPAddress privateIPAddress = default, string sshAuthority = default, Uri sshInBrowserUri = default, string rdpAuthority = default, Uri rdpInBrowserUri = default, string adminUsername = default, string nonAdminUsername = default);
static member LabVirtualMachineConnectionProfile : System.Net.IPAddress * string * Uri * string * Uri * string * string -> Azure.ResourceManager.LabServices.Models.LabVirtualMachineConnectionProfile
Public Shared Function LabVirtualMachineConnectionProfile (Optional privateIPAddress As IPAddress = Nothing, Optional sshAuthority As String = Nothing, Optional sshInBrowserUri As Uri = Nothing, Optional rdpAuthority As String = Nothing, Optional rdpInBrowserUri As Uri = Nothing, Optional adminUsername As String = Nothing, Optional nonAdminUsername As String = Nothing) As LabVirtualMachineConnectionProfile
Parameters
- privateIPAddress
- IPAddress
The private IP address of the virtual machine.
- sshAuthority
- String
Port and host name separated by semicolon for connecting via SSH protocol to the virtual machine.
- sshInBrowserUri
- Uri
URL for connecting via SSH protocol to the virtual machine in browser.
- rdpAuthority
- String
Port and host name separated by semicolon for connecting via RDP protocol to the virtual machine.
- rdpInBrowserUri
- Uri
URL for connecting via RDP protocol to the virtual machine in browser.
- adminUsername
- String
The username used to log on to the virtual machine as admin.
- nonAdminUsername
- String
The username used to log on to the virtual machine as non-admin, if one exists.
Returns
A new LabVirtualMachineConnectionProfile instance for mocking.