Skip to content

Latest commit

 

History

History
 
 

deploy-dev-ops

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Deploy a Continuous Delivery pipeline Build Status

This script deploys a DevOps pipeline targeting either a Kubernetes cluster or VM Scale Sets. It deploys an instance of Jenkins and Spinnaker on an Ubuntu 14.04 VM in Azure.

Arguments

Name Description
--subscription_id
-s
Subscription id, optional if a default is already set in the Azure CLI
--deploy_target
-dt
Deployment target for Spinnaker (either 'k8s' for a Kubernetes cluster or 'vmss' for VM Scale Sets), defaulted to 'k8s'
--username
-u
Username for the DevOps VM, defaulted to 'azureuser'
--dns_prefix
-dp
DNS prefix for the DevOps VM, defaulted to a generated string
--resource_group
-rg
Resource group to deploy to, defaulted to a generated string
--location
-l
Location to deploy to, e.g. 'westus', optional if a default is already set in the Azure CLI
--app_id
-ai
Service Principal App Id (also called client id), defaulted to a generated Service Principal
--app_key
-ak
Service Principal App Key (also called client secret), defaulted to a generated Service Principal
--tenant_id
-ti
Tenant Id (only necessary if you want this script to log in to the cli with the Service Principal credentials)
--password
-p
Password for the DevOps VM (only used for the 'vmss' scenario)
--ssh_public_key
-spk
SSH Public Key for the DevOps VM (only used for the 'k8s' scenario), defaulted to '~/.ssh/id_rsa.pub'
--git_repository
-gr
Git repository with a Dockerfile at the root (only used for the 'k8s' scenario), defaulted to 'https://github.com/azure-devops/spin-kub-demo'
--quiet
-q
If this flag is passed, the script will not prompt for any values. An error will be thrown if a required parameter is not specified.

Example usage

To run interactively:

bash <(curl -sL https://aka.ms/DeployDevOps)

To run non-interactively:

curl -sL https://aka.ms/DeployDevOps | bash -s -- <insert parameters here>

Questions/Comments? [email protected]