This Terraform module creates an Azure Service Plan
Please check the examples folder in this repo
Name | Version |
---|---|
terraform | >= 1.1 |
azurerm | ~> 3.22 |
random | 3.4.3 |
Name | Version |
---|---|
azurerm | ~> 3.22 |
random | 3.4.3 |
No modules.
Name | Type |
---|---|
azurerm_monitor_diagnostic_setting.diagnostics | resource |
azurerm_service_plan.this | resource |
random_string.random | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
diag_log_analytics_workspace_id | Log Analytics Workspace Id for logs and metrics diagnostics destination | string |
n/a | yes |
environment | Project environment | string |
n/a | yes |
landing_zone_slug | Landing zone acronym,it will used to generate the resource nae | string |
n/a | yes |
location | Azure location. | string |
n/a | yes |
location_short | Short string for Azure location. | string |
n/a | yes |
os_type | The O/S type for the App Services to be hosted in this plan. Possible values include Windows , Linux , and WindowsContainer . |
string |
n/a | yes |
resource_group_name | Resource group name | string |
n/a | yes |
sku_name | The SKU for the plan. Possible values include B1, B2, B3, D1, F1, FREE, I1, I2, I3, I1v2, I2v2, I3v2, P1v2, P2v2, P3v2, P1v3, P2v3, P3v3, S1, S2, S3, SHARED, Y1, EP1, EP2, EP3, WS1, WS2, and WS3. | string |
n/a | yes |
stack | Project stack name | string |
n/a | yes |
app_service_environment_id | The ID of the App Service Environment to create this Service Plan in. Requires an Isolated SKU. Use one of I1, I2, I3 for azurerm_app_service_environment, or I1v2, I2v2, I3v2 for azurerm_app_service_environment_v3 | string |
null |
no |
custom_name | Custom Azure Static Site name, it will overide the generate name if set | string |
"" |
no |
default_tags | Base tags to add. | map(string) |
{} |
no |
default_tags_enabled | Option to enable or disable default tags. | bool |
true |
no |
diag_default_setting_name | Name of the diagnostics settings, name will be 'default' if not set. | string |
"default" |
no |
diag_log_categories | List of categories to enable in the diagnostic settings | list(string) |
[] |
no |
diag_metric_categories | List of metric categories to enable in the diagnostic settings | list(string) |
[ |
no |
diag_retention_days | The number of days for which the Retention Policy should apply | number |
30 |
no |
diag_storage_account_id | Storage Account Id for logs and metrics diagnostics destination | string |
null |
no |
extra_tags | Extra tags to add. | map(string) |
{} |
no |
log_analytics_destination_type | Possible values are AzureDiagnostics and Dedicated. Recommended value is Dedicated | string |
"Dedicated" |
no |
maximum_elastic_worker_count | The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU. | number |
null |
no |
per_site_scaling_enabled | Should Per Site Scaling be enabled. | bool |
false |
no |
worker_count | The number of Workers (instances) to be allocated. | number |
1 |
no |
workload_info | Workload additional info to be used in the resource name | string |
"" |
no |
zone_balancing_enabled | Should the Service Plan balance across Availability Zones in the region. Changing this forces a new resource to be created. If this setting is set to true and the worker_count value is specified, it should be set to a multiple of the number of availability zones in the region |
bool |
false |
no |
Name | Description |
---|---|
service_plan_id | ID of the created Service Plan |
service_plan_kind | Service Plan Kind |
service_plan_location | Azure location of the created Service Plan |
service_plan_name | Name of the created Service Plan |
service_plan_reserved | Is service plan reserved. True if the plan is for Linux |
Microsoft Azure documentation: docs.microsoft.com/en-us/azure/app-service/overview-hosting-plans