Skip to content

Commit 532564e

Browse files
committed
Change scope of the dts role
1 parent 36ef45c commit 532564e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/appSettings/connectionSettings/durableTaskScheduler/azure/DurableTaskSchedulerListStep.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class DurableTaskSchedulerListStep<T extends IDTSAzureConnectionWizardCon
5353
}
5454

5555
const dtsContributorRole: Role = {
56-
scopeId: context.dts?.id,
56+
scopeId: context.dtsHub?.id,
5757
roleDefinitionId: createRoleId(context.subscriptionId, CommonRoleDefinitions.durableTaskDataContributor),
5858
roleDefinitionName: CommonRoleDefinitions.durableTaskDataContributor.roleName,
5959
};
@@ -69,7 +69,7 @@ export class DurableTaskSchedulerListStep<T extends IDTSAzureConnectionWizardCon
6969
...role,
7070
// This id may be missing when the role is initially passed in,
7171
// but by the time we run the step, we should have the populated id ready.
72-
scopeId: context.dts?.id,
72+
scopeId: context.dtsHub?.id,
7373
};
7474

7575
if (!roleAssignment.scopeId) {

0 commit comments

Comments
 (0)