Skip to content

Commit 19e40c9

Browse files
committed
Merge branch 'crp2' of https://github.com/huangpf/azure-powershell-pr into crp2
2 parents 29a3d62 + 8c801cc commit 19e40c9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ServiceManagement/RemoteApp/Commands.RemoteApp/Collection/NewAzureRemoteAppCollection.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ public class NewAzureRemoteAppCollection : RdsCmdlet
127127
[ValidateNotNullOrEmpty]
128128
public string CustomRdpProperty { get; set; }
129129

130+
[Parameter(Mandatory = false,
131+
ValueFromPipelineByPropertyName = true,
132+
HelpMessage = "Sets the resource type of the collection."
133+
)]
134+
public CollectionMode? ResourceType { get; set; }
135+
130136
public override void ExecuteCmdlet()
131137
{
132138
// register the subscription for this service if it has not been before
@@ -142,10 +148,11 @@ public override void ExecuteCmdlet()
142148
PlanName = Plan,
143149
Description = Description,
144150
CustomRdpProperty = CustomRdpProperty,
145-
Mode = CollectionMode.Apps
151+
Mode = (ResourceType == null || ResourceType == CollectionMode.Unassigned) ? CollectionMode.Apps : ResourceType.Value
146152
};
147153
OperationResultWithTrackingId response = null;
148154

155+
149156
switch (ParameterSetName)
150157
{
151158
case DomainJoined:

0 commit comments

Comments
 (0)