Skip to content

Instantly share code, notes, and snippets.

@asizikov
Last active January 28, 2021 10:15
Show Gist options
  • Save asizikov/f7c46cdc117a2f4fa8aa8709971ced5b to your computer and use it in GitHub Desktop.
Save asizikov/f7c46cdc117a2f4fa8aa8709971ced5b to your computer and use it in GitHub Desktop.
Octopus Deploy Deployment Target (Azure WebApp)
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/
resource "octopusdeploy_azure_service_principal" "azure" {
subscription_id = var.azure_subscription_id
name = "Azure Subscpription"
tenant_id = var.azure_tenant_id
application_id = var.azure_application_id
password = var.azure_password
}
resource "octopusdeploy_azure_web_app_deployment_target" "echo_function" {
account_id = octopusdeploy_azure_service_principal.azure.id
name = "Echo Api"
resource_group_name = var.azure_web_app_rg_name
roles = ["echo-api"]
tenanted_deployment_participation = "Untenanted"
web_app_name = var.azure_web_app_name
environments = [octopusdeploy_environment.test.id]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment