New-AzCloudServiceRemoteDesktopExtensionObject
Create a in-memory object for Remote Desktop Extension
Syntax
New-AzCloudServiceRemoteDesktopExtensionObject
[-Name] <String>
[-Credential] <PSCredential>
[[-Expiration] <DateTime>]
[[-TypeHandlerVersion] <String>]
[[-RolesAppliedTo] <String[]>]
[[-AutoUpgradeMinorVersion] <Boolean>]
[<CommonParameters>]
Description
Create a in-memory object for Remote Desktop Extension
Examples
Example 1: Create remote desktop extension object
$credential = Get-Credential
$expiration = (Get-Date).AddYears(1)
$extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1'
This command creates remote desktop extension object which is used for creating or updating a cloud service. For more details see New-AzCloudService.
Parameters
-AutoUpgradeMinorVersion
Auto upgrade minor version.
Type: | Boolean |
Position: | 6 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Credential for Remote Desktop Extension.
Type: | PSCredential |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Expiration
Expiration for Remote Desktop Extension.
Type: | DateTime |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name of Remote Desktop Extension.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RolesAppliedTo
Roles applied to.
Type: | String[] |
Position: | 5 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TypeHandlerVersion
Remote Desktop Extension version.
Type: | String |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure PowerShell