File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 44 *--------------------------------------------------------------------------------------------*/
55
66import { type NameValuePair } from "@azure/arm-appservice" ;
7+ import { nonNullValueAndProp } from "@microsoft/vscode-azext-utils" ;
78import { type IFunctionAppWizardContext } from "../commands/createFunctionApp/IFunctionAppWizardContext" ;
89import { ConnectionKey } from "../constants" ;
910
@@ -23,6 +24,14 @@ export function createAzureWebJobsStorageManagedIdentitySettings(context: IFunct
2324 name : `${ ConnectionKey . Storage } __tableServiceUri` ,
2425 value : `https://${ storageAccountName } .table.core.windows.net`
2526 } ) ;
27+ appSettings . push ( {
28+ name : `${ ConnectionKey . Storage } __clientId` ,
29+ value : nonNullValueAndProp ( context . managedIdentity , 'clientId' )
30+ } ) ;
31+ appSettings . push ( {
32+ name : `${ ConnectionKey . Storage } __credential` ,
33+ value : 'managedIdentity'
34+ } ) ;
2635 }
2736
2837 return appSettings ;
You can’t perform that action at this time.
0 commit comments