Data Source: azurermServicePlan
Use this data source to access information about an existing Service Plan.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermServicePlanExample =
new azurerm.dataAzurermServicePlan.DataAzurermServicePlan(this, "example", {
name: "existing",
resource_group_name: "existing",
});
new cdktf.TerraformOutput(this, "id", {
value: dataAzurermServicePlanExample.id,
});
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name of this Service Plan. -
resourceGroupName
- (Required) The name of the Resource Group where the Service Plan exists.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Service Plan. -
appServiceEnvironmentId
- The ID of the App Service Environment this Service Plan is part of. -
kind
- A string representing the Kind of Service Plan. -
location
- The Azure Region where the Service Plan exists. -
maximumElasticWorkerCount
- The maximum number of workers in use in an Elastic SKU Plan. -
workerCount
- The number of Workers (instances) allocated. -
osType
- The O/S type for the App Services hosted in this plan. -
perSiteScalingEnabled
- Is Per Site Scaling be enabled? -
reserved
- Whether this is a reserved Service Plan Type.true
ifosType
islinux
, otherwisefalse
. -
skuName
- The SKU for the Service Plan. -
zoneBalancingEnabled
- Is the Service Plan balance across Availability Zones in the region? -
tags
- A mapping of tags assigned to the Service Plan.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Service Plan.