From 937221390f4fbda7e2b70979cff541dc3d056bc3 Mon Sep 17 00:00:00 2001 From: RupengLiu Date: Tue, 8 Sep 2020 14:52:07 -0700 Subject: [PATCH] Fix OpenAPI host url and provisioning (#116) --- CHANGELOG.md | 6 ++++++ package-lock.json | 2 +- package.json | 2 +- src/commands/createService/ServiceCreateStep.ts | 3 ++- src/openApi/OpenApiParser.ts | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index adb12c9..2b7c31b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to the "Azure Api Managment VS Code" extension will be documented in this file. + +## [0.1.5 - 2020-09-08] + +- Fixed OpenAPI host URL +- Fixed provisioning APIM instance error + ## [0.1.4 - 2020-07-27] - Migrate Vscode Extesion to latest APIM Arm SDK diff --git a/package-lock.json b/package-lock.json index e059c02..230ca2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vscode-apimanagement", - "version": "0.1.4", + "version": "0.1.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5ac6049..c6d9edb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-apimanagement", "displayName": "Azure API Management", "description": "An Azure API Management extension for Visual Studio Code.", - "version": "0.1.4", + "version": "0.1.5", "publisher": "ms-azuretools", "icon": "resources/azure-apim.png", "aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217", diff --git a/src/commands/createService/ServiceCreateStep.ts b/src/commands/createService/ServiceCreateStep.ts index 3ca3a5f..1758325 100644 --- a/src/commands/createService/ServiceCreateStep.ts +++ b/src/commands/createService/ServiceCreateStep.ts @@ -22,7 +22,8 @@ export class ServiceCreateStep extends AzureWizardExecuteStep{ location: nonNullValueAndProp(wizardContext.location, 'name'), sku: { - name: nonNullValueAndProp(wizardContext, 'sku') + name: nonNullValueAndProp(wizardContext, 'sku'), + capacity: wizardContext.sku === 'Consumption' ? 0 : 1 }, publisherEmail: nonNullValueAndProp(wizardContext, 'email'), publisherName: nonNullValueAndProp(wizardContext, 'email') diff --git a/src/openApi/OpenApiParser.ts b/src/openApi/OpenApiParser.ts index 13c26b9..3b69d4f 100644 --- a/src/openApi/OpenApiParser.ts +++ b/src/openApi/OpenApiParser.ts @@ -59,7 +59,7 @@ export class OpenApiParser { if (version === "2.0") { const oai20 = source; - oai20.host = proxyHostName; + //oai20.host = proxyHostName; if (basePath) { oai20.basePath = basePath;