File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/ServiceManagement/RemoteApp/Commands.RemoteApp/Collection Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,12 @@ public class NewAzureRemoteAppCollection : RdsCmdlet
127
127
[ ValidateNotNullOrEmpty ]
128
128
public string CustomRdpProperty { get ; set ; }
129
129
130
+ [ Parameter ( Mandatory = false ,
131
+ ValueFromPipelineByPropertyName = true ,
132
+ HelpMessage = "Sets the resource type of the collection."
133
+ ) ]
134
+ public CollectionMode ? ResourceType { get ; set ; }
135
+
130
136
public override void ExecuteCmdlet ( )
131
137
{
132
138
// register the subscription for this service if it has not been before
@@ -142,10 +148,11 @@ public override void ExecuteCmdlet()
142
148
PlanName = Plan ,
143
149
Description = Description ,
144
150
CustomRdpProperty = CustomRdpProperty ,
145
- Mode = CollectionMode . Apps
151
+ Mode = ( ResourceType == null || ResourceType == CollectionMode . Unassigned ) ? CollectionMode . Apps : ResourceType . Value
146
152
} ;
147
153
OperationResultWithTrackingId response = null ;
148
154
155
+
149
156
switch ( ParameterSetName )
150
157
{
151
158
case DomainJoined :
You can’t perform that action at this time.
0 commit comments