An open API service indexing awesome lists of open source software.

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

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)