Skip to content

Commit b8a6db7

Browse files
authored
Use resourceManagementEndpoint for flex location API call (#4590)
1 parent 719fc4f commit b8a6db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/createFunctionApp/FunctionAppHostingPlanStep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function getFlexLocations(context: IAppServiceWizardContext): Promise<stri
8181
});
8282

8383
const options: AzExtRequestPrepareOptions = {
84-
url: `https://management.azure.com/subscriptions/${context.subscriptionId}/providers/Microsoft.Web/geoRegions?api-version=2023-01-01&sku=FlexConsumption`,
84+
url: `${context.environment.resourceManagerEndpointUrl}/subscriptions/${context.subscriptionId}/providers/Microsoft.Web/geoRegions?api-version=2023-01-01&sku=FlexConsumption`,
8585
method: 'GET',
8686
headers
8787
};

0 commit comments

Comments
 (0)