GitHub Action
Azure Resource Manager (ARM) Template Deployment JS
A GitHub Action to deploy ARM templates.
- Azure Login Login with your Azure credentials
- Checkout To checks-out your repository so the workflow can access any specified ARM template.
-
scope
: Required Provide the scope of the deployment. Valid values are:resourcegroup
,managementgroup
,subscription
-
subscriptionId
Required Provide the Id of the subscription which should be used. -
location
Provide the target region, only required for Management Group or Subscription deployments. -
resourceGroupName
Provide the name of a resource group. -
templateLocation
Required Specify the path or URL to the Azure Resource Manager template. -
deploymentMode
Incremental (only add resources to resource group) or Complete (remove extra resources from resource group). Default:Incremental
. -
deploymentName
Specifies the name of the resource group deployment to create. -
parameters
Supply deployment parameter values or local as well as remote value files.
(See also examples/Advanced.md) -
managementGroupId
Specify the Id for the Management Group, only required for Management Group Deployments. -
validationOnly
Whenether the template should only be validated or also deployed. Valid values are:true
,false
Every template output will be exported as output. For example the output is called containerName
then it will be available with ${{ steps.STEP.outputs.containerName }}
For more Information see examples/Advanced.md.
- uses: whiteducksoftware/azure-arm-action-js@v4.1
with:
scope: resourcegroup
subscriptionId: <YourSubscriptionId>
resourceGroupName: <YourResourceGroup>
templateLocation: <path/to/azuredeploy.json>
on: [push]
name: AzureLoginSample
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: whiteducksoftware/azure-arm-action-js@v4.1
with:
scope: resourcegroup
subscriptionId: e1046c08-7072-****-****-************
resourceGroupName: github-action-arm-rg
templateLocation: ./azuredeploy.json
parameters: storageAccountType=Standard_LRS
For more advanced workflows see examples/Advanced.md.