As this module uses PowerShell it requires that PowerShell Core and the following modules are installed on the deployment agent:
- PowerShell Core (~>7.0)
- PS Module:
AzureHelpers
(~>0.2.1) - Please also install any dependencies of
AzureHelpers
Install-Module "AzureHelpers"
provider "shell" {
environment = {
AzureClientId = var.client_id
AzureTenantId = var.tenant_id
AzureSubscription = var.subscription_id
}
sensitive_environment = {
AzureClientSecret = var.client_secret
}
interpreter = ["pwsh", "-Command"]
}
module "webappcert" {
source = "AdamCoulterOz/webappcert/azurerm"
resource_group = "myresourcegroup"
location = "australiaeast"
app_service_plan_id = "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/myresourcegroup2/providers/Microsoft.Web/serverfarms/myappserviceplan"
name = "mycertdomain.com"
}