https://github.com/spboyer/azdev-functions-deployment
Uses ARM Template and Azure CLI 2.0 to create and Azure Function linked to GitHub repository for CI/CD deployments
https://github.com/spboyer/azdev-functions-deployment
arm-templates azdev azure azure-functions devops serverless
Last synced: 12 months ago
JSON representation
Uses ARM Template and Azure CLI 2.0 to create and Azure Function linked to GitHub repository for CI/CD deployments
- Host: GitHub
- URL: https://github.com/spboyer/azdev-functions-deployment
- Owner: spboyer
- Created: 2017-03-23T19:44:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T05:02:13.000Z (almost 5 years ago)
- Last Synced: 2025-02-14T20:46:42.332Z (about 1 year ago)
- Topics: arm-templates, azdev, azure, azure-functions, devops, serverless
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy Azure Function linked to GitHub Repo
[Docs](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy-cli)
Example parameters
```javascript
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"value": "myappname"
},
"storageAccountName": {
"value": "myStorage"
},
"storageAccountType": {
"value": "Standard_LRS"
},
"repoURL": {
"value": "https://github.com/spboyer/azdev-superhero-api.git"
},
"branch": {
"value": "master"
},
"location": {
"value": "East US"
}
}
}
```
Deploy using parameters file
```bash
az group create --name MyResourceGroup --location "East US"
az group deployment create --name MyDeployment --resource-group MyResourceGroup --template-file azuredeploy.json --parameters @parameters.json
```
Deploy using command line parameters
```bash
az group create --name MyResourceGroup --location "East US"
az group deployment create --name MyDeployment --resource-group MyResourceGroup --template-file azuredeploy.json \
--parameters '{"appName":{"value":"myfunckytestdeploy"},"storageAccountName":{"value":"myStorageName"},"storageAccountType":{"value":"Standard_LRS"},"repoURL":{"value":"https://github.com/spboyer/azdev-superhero-api.git"},"branch":{"value":"master"},"location":{"value":"East US"}}'
```
---
> [tattoocoder.com](https://tattoocoder.com) ·
> GitHub [@spboyer](https://github.com/spboyer) ·
> Twitter [@spboyer](https://twitter.com/spboyer)