experimental Azure Web adapter

This commit is contained in:
Christian Tzolov
2023-03-02 13:53:24 +01:00
parent 79c39ab6ca
commit 0b4b1913f0
3 changed files with 11 additions and 8 deletions

View File

@@ -98,7 +98,7 @@
<hostJson>${project.basedir}/src/main/resources/host.json</hostJson>
<runtime>
<os>linux</os>
<os>linux</os>
<javaVersion>11</javaVersion>
</runtime>
@@ -126,7 +126,7 @@
- [Java Versions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-java?tabs=bash%2Cconsumption#java-versions)
- Specify [Deployment OS](https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-java?tabs=bash%2Cconsumption#specify-the-deployment-os)
* Build the project:
* Build the project:
```
./mvnw clean package
@@ -134,7 +134,7 @@
## Running Locally
NOTE: To run locally on top of `Azure Functions`, and to deploy to your live Azure environment, you will need `Azure Functions Core Tools` installed along with the Azure CLI (see [here](https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-java?tabs=bash%2Cazure-cli%2Cbrowser#configure-your-local-environment)).
NOTE: To run locally on top of `Azure Functions`, and to deploy to your live Azure environment, you will need `Azure Functions Core Tools` installed along with the Azure CLI (see [here](https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-java?tabs=bash%2Cazure-cli%2Cbrowser#configure-your-local-environment)).
For some configuration you would need the [Azurite emulator](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-emulator) as well.
Then build and run the sample:
@@ -162,7 +162,7 @@ Build and deploy
Run the function in debug mode.
```
./mvnw azure-functions:deploy -DenableDebug
./mvnw azure-functions:run -DenableDebug
```
Alternatively and the `JAVA_OPTS` value to your `local.settings.json` like this:
@@ -191,7 +191,7 @@ VS Code remote debug configuration:
"request": "attach",
"hostName": "localhost",
"port": "5005"
},
},
}
```