Skip to content

Instantly share code, notes, and snippets.

@davoodharun
Created February 15, 2017 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davoodharun/ed07eb83826c6389435911ce8d9d882b to your computer and use it in GitHub Desktop.
Save davoodharun/ed07eb83826c6389435911ce8d9d882b to your computer and use it in GitHub Desktop.
Create storage account, automation account, key vault for automation with Octopus Deploy
#Script needs to be run with elevated priveleges, as it interacts with the local file system (for generation of a certificate)
#Executes the initial setup script, creating a dedicated resource group, storage account, and azure automation account.
#Optionally uploads arm templtes and pss runbooks to created storage account (if path specified)
#Optionally publishes all ps runbooks in specified directory to azure automation account created by the process.
& "$($PSScriptRoot)\Orchestration_InitialSetup.ps1" -subscriptionId "<Subscription ID>" `
-resourceGroupName "<Resource Group Name>" `
-StorageAccountNAme "<Storage Account Name (3-15 charaters all lowercase)>" `
-automationAccountName "<Automation Account Name>" `
-keyVaultName "<Key Vault Name>" `
-serverPrincipalCertPassword "<Cert Password>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment