Skip to content

Commit de6b129

Browse files
committed
Remove MSI reference
1 parent 0f5dd09 commit de6b129

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

src/ResourceManager/Network/Commands.Network/ApplicationGateway/NewAzureApplicationGatewayCommand.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Commands.ManagedServiceIdentity.Models;
1615
using Microsoft.Azure.Commands.Network.Models;
1716
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1817
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
@@ -188,14 +187,9 @@ public class NewAzureApplicationGatewayCommand : ApplicationGatewayBaseCmdlet
188187
ValueFromPipelineByPropertyName = true,
189188
HelpMessage = "ResourceId of the user assigned identity to be assigned to Application Gateway.")]
190189
[ValidateNotNullOrEmpty]
190+
[Alias("UserAssignedIdentity")]
191191
public string UserAssignedIdentityId { get; set; }
192192

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; }
199193

200194
[Parameter(
201195
Mandatory = false,
@@ -336,11 +330,6 @@ private PSApplicationGateway CreateApplicationGateway()
336330
applicationGateway.Zones = this.Zone?.ToList();
337331
}
338332

339-
if (this.UserAssignedIdentity != null)
340-
{
341-
this.UserAssignedIdentityId = this.UserAssignedIdentity.Id;
342-
}
343-
344333
if (this.UserAssignedIdentityId != null)
345334
{
346335
applicationGateway.Identity = new PSManagedServiceIdentity

src/ResourceManager/Network/Commands.Network/Commands.Network.Netcore.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,4 @@
6868
<ItemGroup>
6969
<Content Include="help\**\*" CopyToOutputDirectory="PreserveNewest" />
7070
</ItemGroup>
71-
72-
<ItemGroup>
73-
<ProjectReference Include="..\..\ManagedServiceIdentity\Commands.ManagedServiceIdentity\Commands.ManagedServiceIdentity.Netcore.csproj" />
74-
</ItemGroup>
75-
</Project>
71+
</Project>

0 commit comments

Comments
 (0)