{"id":22317998,"url":"https://github.com/adampaternostro/github-azure-function-proxy-for-arm-template","last_synced_at":"2026-04-10T23:33:00.077Z","repository":{"id":69583486,"uuid":"162494251","full_name":"AdamPaternostro/GitHub-Azure-Function-Proxy-for-ARM-Template","owner":"AdamPaternostro","description":"Allows you to use your private GitHub repo for Azure Linked ARM templates.","archived":false,"fork":false,"pushed_at":"2019-01-07T18:09:47.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T04:32:18.143Z","etag":null,"topics":["azure","azure-arm","azure-functions","github"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdamPaternostro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-19T21:47:06.000Z","updated_at":"2019-06-14T14:27:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"9244210c-b3f9-4c1c-94b5-7f3dd36ed8f4","html_url":"https://github.com/AdamPaternostro/GitHub-Azure-Function-Proxy-for-ARM-Template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamPaternostro%2FGitHub-Azure-Function-Proxy-for-ARM-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamPaternostro%2FGitHub-Azure-Function-Proxy-for-ARM-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamPaternostro%2FGitHub-Azure-Function-Proxy-for-ARM-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamPaternostro%2FGitHub-Azure-Function-Proxy-for-ARM-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdamPaternostro","download_url":"https://codeload.github.com/AdamPaternostro/GitHub-Azure-Function-Proxy-for-ARM-Template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585798,"owners_count":20639671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-arm","azure-functions","github"],"created_at":"2024-12-03T23:12:01.047Z","updated_at":"2025-10-03T23:18:55.099Z","avatar_url":"https://github.com/AdamPaternostro.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub-Azure-Function-Proxy-for-ARM-Template\nARM templates expect a public URL to download your templates.  This allows you to use your private GitHub repo for Azure Linked ARM templates.  The Azure Function is basically a proxy to GitHub.  You can edit the Azure Function for your source control provider of choice.\n\n## Create the Azure Function\n1. Create an Azure Function of type .NET named {Organization}GitHubProxy  (the function name needs to be globally unique)\n2. Paste the Azure-Function.cs into a new function\n3. Login into GitHub\n   - Click on your name (top right)\n   - Select Settings\n   - Go to Developer Settings\n   - Go to Personal Access Token\n   - Click Generate New Token\n   - Give it name\n   - Select repo scope access\n4. Paste your Personal Access Token into the Azure Function \n   - string personalAcccessToken = \"{REMOVED}\"; \n\n## To call the Azuze Function\n- Press the \"Get function URL\" in the Azure Portal\n- e.g. https://{functionAppName}.azurewebsites.net/api/{functionName}\n- Add the query string \u0026location={raw url in GitHub}\n- Sample: https://{functionAppName}.azurewebsites.net/api/{functionName}?location=https://raw.githubusercontent.com/AdamPaternostro/GitHub-Azure-Function-Proxy-for-ARM-Template/master/README.md\n- You can test this in a browser window\n\n## To Run via command line (Linux)\n- You need to change the URL in the azuredeploy.json\n```\n# Login\naz login\n\n# Select Subscription\naz account set -s REPLACE_ME\n\n# Script parameters\nresourceGroup=\"Azure-Function-Proxy\"\nlocation=\"eastus\"\ntoday=`date +%Y-%m-%d-%H-%M-%S`\ndeploymentName=\"MyDeployment-$today\"\n\n# Create resource group\naz group create \\\n  --name        $resourceGroup \\\n  --location    $location\n\n# Deploy the ARM template\naz group deployment create \\\n  --name                 $deploymentName \\\n  --resource-group       $resourceGroup \\\n  --template-file        azuredeploy.json\n\n# Clean up resource group\naz group delete --name $resourceGroup\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadampaternostro%2Fgithub-azure-function-proxy-for-arm-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadampaternostro%2Fgithub-azure-function-proxy-for-arm-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadampaternostro%2Fgithub-azure-function-proxy-for-arm-template/lists"}