Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,978 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
While running a azure function with spring cloud function on local with the below command
mvn azure-functions:run -Dspring.profiles.active=local
Active profile for spring is not getting saved it still point to default profile. Is there a way to set spring active profile for azure function?
SPRING_PROFILES_ACTIVE
with the value of the active profile you want to use.@Profile
annotation to specify the beans that should be activated for the active profile. For example, if you have a bean that should only be active for the "dev" profile, you can annotate it like this: @Bean
@Profile("dev")
public MyBean myBean() {
return new MyBean();
}
```