Skip to content

Latest commit

 

History

History
 
 

arm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

GitHub Action for Managing Azure Resources

This action can be used to create or update a resource group in Azure using the Azure Resource Manager templates One can also use this to delete a resource group, including all the resources within the resource group.

To log into a Azure, we recommend using the Azure Login Action.

Usage


action "Manage Azure Resources" {
  uses = "Azure/github-actions/arm@master"
  env = {
    AZURE_RESOURCE_GROUP = "<Resource Group Name"
    AZURE_TEMPLATE_LOCATION = "<URL or Relative path in your repository>"
    AZURE_TEMPLATE_PARAM_FILE = "<URL or Relative path in your repository>"
  }
  needs = ["Azure Login"]
}

Environment variables

  • AZURE_RG_COMMANDOptional.

    • If AZURE_RG_COMMAND is not specified or is "create"

      • AZURE_RESOURCE_GROUPMandatory
      • AZURE_TEMPLATE_LOCATIONMandatory - Can be a URL or relative path in your github repository
      • AZURE_TEMPLATE_PARAM_LOCATIONMandatory - Can be a URL or relative path in your github repository
    • If AZURE_RG_COMMAND is "delete"

      • AZURE_RESOURCE_GROUPMandatory