A simple Azure Function App built with TypeScript that returns "hello manish".
- TypeScript-based Azure Function
- HTTP trigger with anonymous access
- Returns simple text response: "hello manish"
- GitHub Actions workflow for automatic deployment
- Node.js 18.x or later
- Azure Functions Core Tools 4.x
- Azure CLI (for deployment setup)
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Start the function locally:
npm start
-
Test the function:
curl http://localhost:7071/api/HelloManish
- Create an Azure Function App in the Azure portal
- Download the publish profile from the Azure portal
- Add the following secrets to your GitHub repository:
AZURE_FUNCTIONAPP_NAME: Your Azure Function App nameAZURE_FUNCTIONAPP_PUBLISH_PROFILE: The content of the publish profile file
func azure functionapp publish <your-function-app-name>├── .github/workflows/
│ └── deploy.yml # GitHub Actions workflow
├── src/functions/
│ └── HelloManish.ts # Main function implementation
├── host.json # Function app configuration
├── local.settings.json # Local development settings
├── package.json # Node.js dependencies and scripts
└── tsconfig.json # TypeScript configuration
Once deployed, the function will be available at:
https://<your-function-app-name>.azurewebsites.net/api/HelloManish
The function returns a simple text response:
hello manish