44 *--------------------------------------------------------------------------------------------*/
55
66import type { SiteConfigResource } from '@azure/arm-appservice' ;
7- import { deploy as innerDeploy , getDeployFsPath , getDeployNode , IDeployContext , IDeployPaths , showDeployConfirmation } from '@microsoft/vscode-azext-azureappservice' ;
7+ import { IDeployContext , IDeployPaths , getDeployFsPath , getDeployNode , deploy as innerDeploy , showDeployConfirmation } from '@microsoft/vscode-azext-azureappservice' ;
88import { DialogResponses , IActionContext , nonNullValue } from '@microsoft/vscode-azext-utils' ;
99import * as vscode from 'vscode' ;
10- import { CodeAction , ConnectionType , deploySubpathSetting , DurableBackend , DurableBackendValues , functionFilter , ProjectLanguage , remoteBuildSetting , ScmType } from '../../constants' ;
10+ import { CodeAction , ConnectionType , DurableBackend , DurableBackendValues , ProjectLanguage , ScmType , deploySubpathSetting , functionFilter , remoteBuildSetting } from '../../constants' ;
1111import { ext } from '../../extensionVariables' ;
1212import { addLocalFuncTelemetry } from '../../funcCoreTools/getLocalFuncCoreToolsVersion' ;
1313import { localize } from '../../localize' ;
@@ -19,9 +19,8 @@ import { isPathEqual } from '../../utils/fs';
1919import { treeUtils } from '../../utils/treeUtils' ;
2020import { getWorkspaceSetting } from '../../vsCodeConfig/settings' ;
2121import { verifyInitForVSCode } from '../../vsCodeConfig/verifyInitForVSCode' ;
22- import { validateStorageConnection } from '../appSettings/connectionSettings/azureWebJobsStorage/validateStorageConnection' ;
23- import { validateEventHubsConnection } from '../appSettings/connectionSettings/eventHubs/validateEventHubsConnection' ;
2422import { ISetConnectionSettingContext } from '../appSettings/connectionSettings/ISetConnectionSettingContext' ;
23+ import { validateEventHubsConnection } from '../appSettings/connectionSettings/eventHubs/validateEventHubsConnection' ;
2524import { validateSqlDbConnection } from '../appSettings/connectionSettings/sqlDatabase/validateSqlDbConnection' ;
2625import { tryGetFunctionProjectRoot } from '../createNewProject/verifyIsProject' ;
2726import { notifyDeployComplete } from './notifyDeployComplete' ;
@@ -97,12 +96,9 @@ async function deploy(actionContext: IActionContext, arg1: vscode.Uri | string |
9796 const durableStorageType : DurableBackendValues | undefined = await durableUtils . getStorageTypeFromWorkspace ( language , context . projectPath ) ;
9897 context . telemetry . properties . projectDurableStorageType = durableStorageType ;
9998
100- const { shouldValidateStorage , shouldValidateEventHubs, shouldValidateSqlDb } = await shouldValidateConnections ( durableStorageType , client , context . projectPath ) ;
99+ const { shouldValidateEventHubs, shouldValidateSqlDb } = await shouldValidateConnections ( durableStorageType , client , context . projectPath ) ;
101100
102101 // Preliminary local validation done to ensure all required resources have been created and are available. Final deploy writes are made in 'verifyAppSettings'
103- if ( shouldValidateStorage ) {
104- await validateStorageConnection ( context , context . projectPath , { preselectedConnectionType : ConnectionType . Azure } ) ;
105- }
106102 if ( shouldValidateEventHubs ) {
107103 await validateEventHubsConnection ( context , context . projectPath , { preselectedConnectionType : ConnectionType . Azure } ) ;
108104 }
0 commit comments