Skip to content

Commit 739b828

Browse files
committed
Removed Identity parameter from Update-Factory as backend doesn't support its update.
1 parent ae4cc8c commit 739b828

File tree

4 files changed

+5
-29
lines changed

4 files changed

+5
-29
lines changed

src/ResourceManager/DataFactories/Commands.DataFactoryV2/DataFactories/UpdateAzureDataFactoryCommand.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Management.Automation;
1818
using System.Security.Permissions;
1919
using Microsoft.Azure.Commands.DataFactoryV2.Models;
20-
using Microsoft.Azure.Management.DataFactory.Models;
2120
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2221

2322
namespace Microsoft.Azure.Commands.DataFactoryV2
@@ -51,10 +50,6 @@ public class UpdateAzureDataFactoryCommand : DataFactoryBaseCmdlet
5150
HelpMessage = Constants.HelpTagsForFactory)]
5251
public Hashtable Tag { get; set; }
5352

54-
[Parameter(Mandatory = false, ValueFromPipeline = true,
55-
HelpMessage = Constants.HelpIdentityForFactory)]
56-
public FactoryIdentity Identity { get; set; }
57-
5853
[EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
5954
public override void ExecuteCmdlet()
6055
{
@@ -74,8 +69,7 @@ public override void ExecuteCmdlet()
7469
{
7570
ResourceGroupName = ResourceGroupName,
7671
DataFactoryName = Name,
77-
Tags = Tag,
78-
Identity = Identity
72+
Tags = Tag
7973
};
8074

8175
if (ShouldProcess(Name))

src/ResourceManager/DataFactories/Commands.DataFactoryV2/Models/DataFactoryClient.DataFactories.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public PSDataFactory CreatePSDataFactory(CreatePSDataFactoryParameters parameter
169169

170170
public PSDataFactory UpdatePSDataFactory(UpdatePSDataFactoryParameters parameters)
171171
{
172-
var updateParams = new FactoryUpdateParameters(parameters.Tags?.ToDictionary(), parameters.Identity);
172+
var updateParams = new FactoryUpdateParameters(parameters.Tags?.ToDictionary());
173173
return new PSDataFactory(
174174
this.DataFactoryManagementClient.Factories.Update(
175175
parameters.ResourceGroupName,

src/ResourceManager/DataFactories/Commands.DataFactoryV2/Models/UpdatePSDataFactoryParameters.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ namespace Microsoft.Azure.Commands.DataFactoryV2
2020
public class UpdatePSDataFactoryParameters : DataFactoryParametersBase
2121
{
2222
public Hashtable Tags { get; set; }
23-
24-
public FactoryIdentity Identity { get; set; }
2523
}
2624
}

src/ResourceManager/DataFactories/Commands.DataFactoryV2/help/Update-AzureRmDataFactoryV2.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,18 @@ Updates the properties of a data factory.
1414
### ByFactoryName (Default)
1515
```
1616
Update-AzureRmDataFactoryV2 [-ResourceGroupName] <String> [-Name] <String> [[-Tag] <Hashtable>]
17-
[[-Identity] <FactoryIdentity>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
18-
[<CommonParameters>]
17+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
1918
```
2019

2120
### ByFactoryObject
2221
```
23-
Update-AzureRmDataFactoryV2 [-InputObject] <PSDataFactory> [[-Tag] <Hashtable>] [[-Identity] <FactoryIdentity>]
22+
Update-AzureRmDataFactoryV2 [-InputObject] <PSDataFactory> [[-Tag] <Hashtable>]
2423
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
2524
```
2625

2726
### ByResourceId
2827
```
29-
Update-AzureRmDataFactoryV2 [-ResourceId] <String> [[-Tag] <Hashtable>] [[-Identity] <FactoryIdentity>]
28+
Update-AzureRmDataFactoryV2 [-ResourceId] <String> [[-Tag] <Hashtable>]
3029
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
3130
```
3231

@@ -73,21 +72,6 @@ Accept pipeline input: False
7372
Accept wildcard characters: False
7473
```
7574
76-
### -Identity
77-
The identity for the data factory.
78-
79-
```yaml
80-
Type: FactoryIdentity
81-
Parameter Sets: (All)
82-
Aliases:
83-
84-
Required: False
85-
Position: 2
86-
Default value: None
87-
Accept pipeline input: True (ByValue)
88-
Accept wildcard characters: False
89-
```
90-
9175
### -InputObject
9276
The data factory object.
9377

0 commit comments

Comments
 (0)