< Back

Get-AzureWinRMUri

Wed Jan 30, 2019 5:47 pm

NAME Get-AzureWinRMUri



SYNOPSIS

Gets the URI to WinRM https listener to a virtual machine or a list of virtual machines in a hosted service.





SYNTAX

Get-AzureWinRMUri [-ServiceName] <String> [[-Name] <String>] [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable

<String>] [<CommonParameters>]





DESCRIPTION

The Get-AzureWinRMUri cmdlet gets the URI of the Windows Remote Management (WinRM) https listener to a virtual machine or a list of virtual machines in

a hosted service.





PARAMETERS

-ServiceName <String>

Specifies the name of the Microsoft Azure service that hosts the virtual machine.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

Specifies the name of the virtual machine to which the WinRM URI is generated.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- Example 1: Get the URI of the WinRM https listener to a virtual machine --------------------------



PS C:\\>Get-AzureWinRMUri -ServiceName MyService -Name MyVM



This command gets the UIR of the WinRM https listener to a virtual machine.

-------------------------- Example 2: Get the URI of the WinRM https listener to a virtual machine of a specific service --------------------------



PS C:\\>Get-AzureWinRMUri -ServiceName MyService



This command gets the UIR of the WinRM https listener to a virtual machine.



RELATED LINKS

New-AzureVM

New-AzureQuickVM