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.
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"]
}
-
AZURE_RG_COMMAND
– Optional.-
If
AZURE_RG_COMMAND
is not specified or is "create"AZURE_RESOURCE_GROUP
– MandatoryAZURE_TEMPLATE_LOCATION
– Mandatory - Can be a URL or relative path in your github repositoryAZURE_TEMPLATE_PARAM_LOCATION
– Mandatory - Can be a URL or relative path in your github repository
-
If
AZURE_RG_COMMAND
is "delete"AZURE_RESOURCE_GROUP
– Mandatory
-