Sign inSign up

projectnebula/azureresourcemanager-deployer

By projectnebula

•Updated over 6 years ago

This task deploys an Azure Resource Manager deployment using a provided template.

Image
0

3.1K

projectnebula/azureresourcemanager-deployer repository overview

⁠Azure Resource Manager deployer

This Azure Resource Manager step container deploys an Azure Resource Manager deployment using a provided template.

Before you use this workflow, upload your Azure Resource Manager template to a directory in your repository. For more information, see Azure Resource Manager templates⁠.

⁠Specifications

SettingChild settingData typeDescriptionDefaultRequired
azuremappingA mapping of your Azure account configuration.NoneTrue
tenantIDstringThe tenant ID for the Service Principal.NoneTrue
usernamestringThe URI name of the Service Principal.NoneTrue
passwordstringThe Service Principal password. Pass the string into Nebula as a secret. See the example below.NoneIf azure.cert is not present
certstringThe Azure Service Principal PEM certificate block. Encode the certificate using base64 encoding and pass the it into Nebula as a secret. See the example below.Noneif azure.password is not present
deploymentNamestringThe name of the deployment to create or update.NoneTrue
resourceGroupstringA resource group name to deploy to, if any. Will perform a resource-group deployment.NoneIf location is not present
locationstringA location to deploy to, if any. Will perform a subscription deployment.NoneIf resourceGroup is not present
templatestringThe body of the ARM template as a string in JSON.NoneIf templateFile is not present
templateFilestringThe relative path, within the Git repository given in the git parameters, to the template file to deploy.NoneIf template is not present
gitmappingA map of git configuration. If you're using HTTPS, only name and repository are required.NoneIf templateFile is present
ssh_keystringThe SSH key to use when cloning the git repository. You can pass the key to Nebula as a secret. See the example below.NoneTrue
known_hostsstringSSH known hosts file. Use a Nebula secret to pass the contents of the file into the workflow as a base64-encoded string. See the example below.NoneTrue
namestringA directory name for the git clone.NoneTrue
branchstringThe Git branch to clone.masterFalse
repositorystringThe git repository URL.NoneTrue
parametersmappingA key-value mapping of parameters needed by the template.NoneFalse

Note: The value you set for a secret must be a string. If you have multiple key-value pairs to pass into the secret, or your secret is the contents of a file, you must encode the values using base64 encoding, and use the encoded string as the secret value.

⁠Examples

Here is an example of the step in a Nebula workflow:

steps:

...

- name: azureresourcemanager-deployer
  image: projectnebula/azureresourcemanager-deployer:latest
  spec:
    azure:
      tenantID: 12345678-1234-1234-1234-123456789012
      username: http://my-username
      password: 
        $type: Secret
        name: password
      cert:
        $type: Secret
        name: cert
    deploymentName: my-deployment
    location: westus2 
    templateFile: templates/my-deployment.json
    git: 
      ssh_key:
        $type: Secret
        name: ssh_key
      known_hosts:
        $type: Secret
        name: known_hosts
      name: my-git-repo
      branch: dev
      repository: path/to/your/repo
    parameters:
      first: example-1
      second: example-2   

Tag summary

Content type

Image

Digest

Size

121.7 MB

Last updated

over 6 years ago

docker pull projectnebula/azureresourcemanager-deployer