Skip to content

Commit

Permalink
Fix microsoft#133 - Update Step classes to pass baseUri in LogicAppsM…
Browse files Browse the repository at this point in the history
…anagementClient
  • Loading branch information
Michael Boucher committed Mar 31, 2020
1 parent 0e08904 commit c0df0d5
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IAgreementWizardContext } from "./createAgreementWizard";

export class AgreementCreateStep extends AzureWizardExecuteStep<IAgreementWizardContext> {
public async execute(wizardContext: IAgreementWizardContext): Promise<IAgreementWizardContext> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

const newAgreement: IntegrationAccountAgreement = await client.integrationAccountAgreements.createOrUpdate(wizardContext.resourceGroup!.name!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class AgreementNameStep extends AzureWizardPromptStep<IAgreementWizardCon
}

private async isNameAvailable(name: string, wizardContext: IAgreementWizardContext): Promise<boolean> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

let agreements = await client.integrationAccountAgreements.list(wizardContext.resourceGroup!.name!, wizardContext.integrationAccountName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IIntegrationAccountWizardContext } from "./createIntegrationAccountWiza

export class IntegrationAccountCreateStep extends AzureWizardExecuteStep<IIntegrationAccountWizardContext> {
public async execute(wizardContext: IIntegrationAccountWizardContext): Promise<IIntegrationAccountWizardContext> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

const newIntegrationAccount: IntegrationAccount = await client.integrationAccounts.createOrUpdate(wizardContext.resourceGroup!.name!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class IntegrationAccountNameStep extends AzureWizardPromptStep<IIntegrati
resourceGroupName = wizardContext.resourceGroup!.name!;
}

const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

let integrationAccounts = await client.integrationAccounts.listByResourceGroup(resourceGroupName);
Expand Down
2 changes: 1 addition & 1 deletion src/wizard/integration-account/maps/mapCreateStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IMapWizardContext } from "./createMapWizard";

export class MapCreateStep extends AzureWizardExecuteStep<IMapWizardContext> {
public async execute(wizardContext: IMapWizardContext): Promise<IMapWizardContext> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

const newMap: IntegrationAccountMap = await client.integrationAccountMaps.createOrUpdate(wizardContext.resourceGroup!.name!,
Expand Down
2 changes: 1 addition & 1 deletion src/wizard/integration-account/maps/mapNameStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class MapNameStep extends AzureWizardPromptStep<IMapWizardContext> {
}

private async isNameAvailable(name: string, wizardContext: IMapWizardContext): Promise<boolean> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

let maps = await client.integrationAccountMaps.list(wizardContext.resourceGroup!.name!, wizardContext.integrationAccountName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IPartnerWizardContext } from "./createPartnerWizard";

export class PartnerCreateStep extends AzureWizardExecuteStep<IPartnerWizardContext> {
public async execute(wizardContext: IPartnerWizardContext): Promise<IPartnerWizardContext> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

const newPartner: IntegrationAccountPartner = await client.integrationAccountPartners.createOrUpdate(wizardContext.resourceGroup!.name!,
Expand Down
2 changes: 1 addition & 1 deletion src/wizard/integration-account/schemas/schemaCreateStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ISchemaWizardContext } from "./createSchemaWizard";

export class SchemaCreateStep extends AzureWizardExecuteStep<ISchemaWizardContext> {
public async execute(wizardContext: ISchemaWizardContext): Promise<ISchemaWizardContext> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

const newSchema: IntegrationAccountSchema = await client.integrationAccountSchemas.createOrUpdate(wizardContext.resourceGroup!.name!,
Expand Down
2 changes: 1 addition & 1 deletion src/wizard/integration-account/schemas/schemaNameStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class SchemaNameStep extends AzureWizardPromptStep<ISchemaWizardContext>
}

private async isNameAvailable(name: string, wizardContext: ISchemaWizardContext): Promise<boolean> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

let schemas = await client.integrationAccountSchemas.list(wizardContext.resourceGroup!.name!, wizardContext.integrationAccountName);
Expand Down
2 changes: 1 addition & 1 deletion src/wizard/logic-app/LogicAppCreateStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { IAzureLogicAppWizardContext } from "./createLogicApp";

export class LogicAppCreateStep extends AzureWizardExecuteStep<IAzureLogicAppWizardContext> {
public async execute(wizardContext: IAzureLogicAppWizardContext): Promise<IAzureLogicAppWizardContext> {
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

const location = wizardContext.location!.name!;
Expand Down
2 changes: 1 addition & 1 deletion src/wizard/logic-app/LogicAppNameStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class LogicAppNameStep extends AzureWizardPromptStep<IAzureLogicAppWizard
resourceGroupName = wizardContext.resourceGroup!.name!;
}

const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId);
const client = new LogicAppsManagementClient(wizardContext.credentials, wizardContext.subscriptionId, wizardContext.environment.resourceManagerEndpointUrl);
addExtensionUserAgent(client);

let workflows = await client.workflows.listByResourceGroup(resourceGroupName);
Expand Down

0 comments on commit c0df0d5

Please sign in to comment.