ElasticPool
Allows you to manage an Azure SQL Elastic Pool via the v3.0 API which allows for vCore and DTU based configurations.
Create a ElasticPool Resource
new ElasticPool(name: string, args: ElasticPoolArgs, opts?: CustomResourceOptions);def ElasticPool(resource_name, opts=None, license_type=None, location=None, max_size_bytes=None, max_size_gb=None, name=None, per_database_settings=None, resource_group_name=None, server_name=None, sku=None, tags=None, zone_redundant=None, __props__=None);func NewElasticPool(ctx *Context, name string, args ElasticPoolArgs, opts ...ResourceOption) (*ElasticPool, error)public ElasticPool(string name, ElasticPoolArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ElasticPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElasticPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ElasticPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ElasticPool resource accepts the following input properties:
- Per
Database ElasticSettings Pool Per Database Settings Args A
per_database_settingsblock as defined below.- Resource
Group stringName The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- Server
Name string The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- Sku
Elastic
Pool Sku Args A
skublock as defined below.- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Max
Size intBytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- Max
Size doubleGb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Zone
Redundant bool Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
- Per
Database ElasticSettings Pool Per Database Settings A
per_database_settingsblock as defined below.- Resource
Group stringName The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- Server
Name string The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- Sku
Elastic
Pool Sku A
skublock as defined below.- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Max
Size intBytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- Max
Size float64Gb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- Zone
Redundant bool Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
- per
Database ElasticSettings Pool Per Database Settings A
per_database_settingsblock as defined below.- resource
Group stringName The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- server
Name string The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- sku
Elastic
Pool Sku A
skublock as defined below.- license
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- max
Size numberBytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- max
Size numberGb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- zone
Redundant boolean Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
- per_
database_ Dict[Elasticsettings Pool Per Database Settings] A
per_database_settingsblock as defined below.- resource_
group_ strname The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- server_
name str The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- sku
Dict[Elastic
Pool Sku] A
skublock as defined below.- license_
type str Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- max_
size_ floatbytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- max_
size_ floatgb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- name str
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
- zone_
redundant bool Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticPool resource produces the following output properties:
Look up an Existing ElasticPool Resource
Get an existing ElasticPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ElasticPoolState, opts?: CustomResourceOptions): ElasticPoolstatic get(resource_name, id, opts=None, license_type=None, location=None, max_size_bytes=None, max_size_gb=None, name=None, per_database_settings=None, resource_group_name=None, server_name=None, sku=None, tags=None, zone_redundant=None, __props__=None);func GetElasticPool(ctx *Context, name string, id IDInput, state *ElasticPoolState, opts ...ResourceOption) (*ElasticPool, error)public static ElasticPool Get(string name, Input<string> id, ElasticPoolState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Max
Size intBytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- Max
Size doubleGb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Per
Database ElasticSettings Pool Per Database Settings Args A
per_database_settingsblock as defined below.- Resource
Group stringName The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- Server
Name string The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- Sku
Elastic
Pool Sku Args A
skublock as defined below.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Zone
Redundant bool Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Max
Size intBytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- Max
Size float64Gb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Per
Database ElasticSettings Pool Per Database Settings A
per_database_settingsblock as defined below.- Resource
Group stringName The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- Server
Name string The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- Sku
Elastic
Pool Sku A
skublock as defined below.- map[string]string
A mapping of tags to assign to the resource.
- Zone
Redundant bool Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
- license
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- max
Size numberBytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- max
Size numberGb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- per
Database ElasticSettings Pool Per Database Settings A
per_database_settingsblock as defined below.- resource
Group stringName The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- server
Name string The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- sku
Elastic
Pool Sku A
skublock as defined below.- {[key: string]: string}
A mapping of tags to assign to the resource.
- zone
Redundant boolean Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
- license_
type str Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- max_
size_ floatbytes The max data size of the elastic pool in bytes. Conflicts with
max_size_gb.- max_
size_ floatgb The max data size of the elastic pool in gigabytes. Conflicts with
max_size_bytes.- name str
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- per_
database_ Dict[Elasticsettings Pool Per Database Settings] A
per_database_settingsblock as defined below.- resource_
group_ strname The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server.
- server_
name str The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
- sku
Dict[Elastic
Pool Sku] A
skublock as defined below.- Dict[str, str]
A mapping of tags to assign to the resource.
- zone_
redundant bool Whether or not this elastic pool is zone redundant.
tierneeds to bePremiumforDTUbased orBusinessCriticalforvCorebasedsku. Defaults tofalse.
Supporting Types
ElasticPoolPerDatabaseSettings
- Max
Capacity double The maximum capacity any one database can consume.
- Min
Capacity double The minimum capacity all databases are guaranteed.
- Max
Capacity float64 The maximum capacity any one database can consume.
- Min
Capacity float64 The minimum capacity all databases are guaranteed.
- max
Capacity number The maximum capacity any one database can consume.
- min
Capacity number The minimum capacity all databases are guaranteed.
- max
Capacity float The maximum capacity any one database can consume.
- min_
capacity float The minimum capacity all databases are guaranteed.
ElasticPoolSku
- Capacity int
The scale up/out capacity, representing server’s compute units. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.
- Name string
Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either
vCorebasedtier+familypattern (e.g. GP_Gen4, BC_Gen5) or theDTUbasedBasicPool,StandardPool, orPremiumPoolpattern.- Tier string
The tier of the particular SKU. Possible values are
GeneralPurpose,BusinessCritical,Basic,Standard, orPremium. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.- Family string
The
familyof hardwareGen4orGen5.
- Capacity int
The scale up/out capacity, representing server’s compute units. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.
- Name string
Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either
vCorebasedtier+familypattern (e.g. GP_Gen4, BC_Gen5) or theDTUbasedBasicPool,StandardPool, orPremiumPoolpattern.- Tier string
The tier of the particular SKU. Possible values are
GeneralPurpose,BusinessCritical,Basic,Standard, orPremium. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.- Family string
The
familyof hardwareGen4orGen5.
- capacity number
The scale up/out capacity, representing server’s compute units. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.
- name string
Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either
vCorebasedtier+familypattern (e.g. GP_Gen4, BC_Gen5) or theDTUbasedBasicPool,StandardPool, orPremiumPoolpattern.- tier string
The tier of the particular SKU. Possible values are
GeneralPurpose,BusinessCritical,Basic,Standard, orPremium. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.- family string
The
familyof hardwareGen4orGen5.
- capacity float
The scale up/out capacity, representing server’s compute units. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.
- name str
Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either
vCorebasedtier+familypattern (e.g. GP_Gen4, BC_Gen5) or theDTUbasedBasicPool,StandardPool, orPremiumPoolpattern.- tier str
The tier of the particular SKU. Possible values are
GeneralPurpose,BusinessCritical,Basic,Standard, orPremium. For more information see the documentation for your Elasticpool configuration: vCore-based or DTU-based.- family str
The
familyof hardwareGen4orGen5.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.