8000 GitHub - whiteducksoftware/azure-arm-action-js: A GitHub Action for easy deployment of ARM templates. 🚀
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

whiteducksoftware/azure-arm-action-js

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for Azure Resource Manager (ARM) deployment

archived

We did it 🎉🥳. Microsoft / GitHub decided to rehost our GitHub Action within the official Azure repostory. This means that this repository should no longer be used.


A GitHub Action to deploy ARM templates.

build and publish

white duck logo

Dependencies

  • Azure Login Login with your Azure credentials
  • Checkout To checks-out your repository so the workflow can access any specified ARM template.

Inputs

  • 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

Outputs

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.

Usage

- uses: whiteducksoftware/azure-arm-action-js@v4.1
  with:
    scope: resourcegroup
    subscriptionId: <YourSubscriptionId>
    resourceGroupName: <YourResourceGroup>
    templateLocation: <path/to/azuredeploy.json>

Example

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.

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0