Skip to content

Commit 20315a6

Browse files
unknownunknown
authored andcommitted
Fix to the new subscription registiontaion with ADF RP issue.
1 parent a58af04 commit 20315a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ResourceManager/DataFactories/Commands.DataFactories/DataFactoryBaseCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal DataFactoryClient DataFactoryClient
4040
{
4141
if (this.dataFactoryClient == null)
4242
{
43-
this.dataFactoryClient = new DataFactoryClient(Profile.Context);
43+
this.dataFactoryClient = new DataFactoryClient(Profile);
4444
}
4545
return this.dataFactoryClient;
4646
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public partial class DataFactoryClient
2929
{
3030
public IDataPipelineManagementClient DataPipelineManagementClient { get; private set; }
3131

32-
public DataFactoryClient(AzureContext context)
32+
public DataFactoryClient(AzureProfile profile)
3333
{
3434
DataPipelineManagementClient = AzureSession.ClientFactory.CreateClient<DataPipelineManagementClient>(
35-
context, AzureEnvironment.Endpoint.ResourceManager);
35+
profile, AzureEnvironment.Endpoint.ResourceManager);
3636
}
3737

3838
/// <summary>

0 commit comments

Comments
 (0)