File tree 2 files changed +2
-17
lines changed
src/ResourceManager/Network/Commands.Network 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
- using Microsoft . Azure . Commands . ManagedServiceIdentity . Models ;
16
15
using Microsoft . Azure . Commands . Network . Models ;
17
16
using Microsoft . Azure . Commands . ResourceManager . Common . ArgumentCompleters ;
18
17
using Microsoft . Azure . Commands . ResourceManager . Common . Tags ;
@@ -188,14 +187,9 @@ public class NewAzureApplicationGatewayCommand : ApplicationGatewayBaseCmdlet
188
187
ValueFromPipelineByPropertyName = true ,
189
188
HelpMessage = "ResourceId of the user assigned identity to be assigned to Application Gateway." ) ]
190
189
[ ValidateNotNullOrEmpty ]
190
+ [ Alias ( "UserAssignedIdentity" ) ]
191
191
public string UserAssignedIdentityId { get ; set ; }
192
192
193
- [ Parameter (
194
- Mandatory = false ,
195
- ValueFromPipelineByPropertyName = true ,
196
- HelpMessage = "user assigned identity to be assigned to Application Gateway." ) ]
197
- [ ValidateNotNullOrEmpty ]
198
- public PsUserAssignedIdentity UserAssignedIdentity { get ; set ; }
199
193
200
194
[ Parameter (
201
195
Mandatory = false ,
@@ -336,11 +330,6 @@ private PSApplicationGateway CreateApplicationGateway()
336
330
applicationGateway . Zones = this . Zone ? . ToList ( ) ;
337
331
}
338
332
339
- if ( this . UserAssignedIdentity != null )
340
- {
341
- this . UserAssignedIdentityId = this . UserAssignedIdentity . Id ;
342
- }
343
-
344
333
if ( this . UserAssignedIdentityId != null )
345
334
{
346
335
applicationGateway . Identity = new PSManagedServiceIdentity
Original file line number Diff line number Diff line change 68
68
<ItemGroup >
69
69
<Content Include =" help\**\*" CopyToOutputDirectory =" PreserveNewest" />
70
70
</ItemGroup >
71
-
72
- <ItemGroup >
73
- <ProjectReference Include =" ..\..\ManagedServiceIdentity\Commands.ManagedServiceIdentity\Commands.ManagedServiceIdentity.Netcore.csproj" />
74
- </ItemGroup >
75
- </Project >
71
+ </Project >
You can’t perform that action at this time.
0 commit comments