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, I recommend using azlogin Action.
- uses: segraef/azdeploy@v1
with:
resourceGroupName: ${{ secrets.resourceGroupName }}
templateFile: ${{ secrets.templateFile }}
parametersFile: ${{ secrets.parametersFile }}
resourceGroupCommand: ${{ secrets.resourceGroupCommand }}
-
resourceGroupCommand
– Optional.-
If
resourceGroupCommand
is not specified or is "create"resourceGroupName
– MandatorytemplateFile
– Mandatory - Can be a URL or relative path in your github repositoryparametersFile
– Mandatory - Can be a URL or relative path in your github repository
-
If
resourceGroupCommand
is "delete"resourceGroupName
– Mandatory
-