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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for