Skip to content

Commit 82e402d

Browse files
authored
Automatically enable full monitoring for Java Elastic Premium (#3887)
* Automatically enable full monitoring for Java Elastic Premium * Missed a brace
1 parent 3c77f18 commit 82e402d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/commands/createFunctionApp/FunctionAppCreateStep.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,18 @@ export class FunctionAppCreateStep extends AzureWizardExecuteStep<IFunctionAppWi
153153
name: 'APPINSIGHTS_INSTRUMENTATIONKEY',
154154
value: context.appInsightsComponent.instrumentationKey
155155
});
156+
157+
if (isElasticPremium && context.newSiteStack?.stack.value === 'java') {
158+
// turn on full monitoring for Java on Elastic Premium
159+
appSettings.push({
160+
name: 'APPLICATIONINSIGHTS_ENABLE_AGENT',
161+
value: 'true'
162+
});
163+
}
164+
156165
}
157166

158167
newSiteConfig.appSettings = appSettings;
159-
160168
return newSiteConfig;
161169
}
162170
}

0 commit comments

Comments
 (0)