Table of Contents
This project contains an Azure Function App written in C# with one function: an HTTP trigger. It also includes infrastructure as code using Bicep and a CI/CD pipeline with GitHub Actions.
Major cloud technologies/frameworks/libraries are listed here:
To get a local copy up and running follow these simple steps.
-
Pre-Requisites:
Ensure you have the following installed if you choose to run the project locally:
-
Clone the Repository:
git clone https://github.com/rohit-lakhanpal/azure-function-csharp.git cd azure-function-csharp
-
Start Azurite:
Ensure you're running the Azurite emulator for local Azure Storage development. This will be used by the Azure Function App.My preference is to use the Visual Studio Code extension for Azurrite.
Ctrl + Shift + P -> Azurite: Start
Remember to stop and clear the Azurite data after you're done:
Ctrl + Shift + P -> Azurite: Stop Ctrl + Shift + P -> Azurite: Clear Data
-
Start the Azure Function App:
cd src/App func start
For deploying the Azure Function App and its infrastructure, you can use the azd
tool for a streamlined process.
-
Run the following command to deploy:
azd login azd up
This command will handle the deployment of both the infrastructure (using Bicep) and the function app.
- Add local debugging support
- Add devcontainer support
- Add more Azure Functions
- Improve error handling
- Add unit tests
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project: Fork the repo you want to contribute to by clicking the Fork button on the top right corner of the repo page.
- Clone the Repo: Clone the forked repo to your local machine using the command (
git clone URL_OF_FORK
). - Branch: Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit: Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch: (
git push origin feature/AmazingFeature
) - Open a Pull Request: Go to your forked repo on GitHub and click Contribute and then Open a pull request. Fill out the details of your pull request and submit it.
Learn more about contributing to projects here.
This template is provided "as is" without warranty of any kind, whether express or implied. Use at your own risk! The author will not be liable for any losses or damages associated with the use of this template.
It is intended to be used as a starting point for your own project and not as a final product.
Distributed under the MIT License. See LICENSE.txt
for more information.
- Rohit Lakhanpal | @github | rohit@try-it.dev
- Project Link: https://github.com/rohit-lakhanpal/azure-function-csharp
These toolkits are never the result of solitary efforts. I wish to extend my heartfelt thanks to my friends, colleagues, and fellow community members for their exceptional contributions. We have built upon your work, and it is your efforts that have laid the foundation for our success. Your work is not only recognised but deeply valued.
TODO: Add acknowledgements.
Documentation generated by AI, edited by humans. ❤️