ElasticPool
Allows you to manage an Azure SQL Elastic Pool.
NOTE: - This version of the
Elasticpoolresource is being deprecated and should no longer be used. Please use the azure.mssql.ElasticPool version instead.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleSqlServer = new Azure.Sql.SqlServer("exampleSqlServer", new Azure.Sql.SqlServerArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Version = "12.0",
AdministratorLogin = "4dm1n157r470r",
AdministratorLoginPassword = "4-v3ry-53cr37-p455w0rd",
});
var exampleElasticPool = new Azure.Sql.ElasticPool("exampleElasticPool", new Azure.Sql.ElasticPoolArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
ServerName = exampleSqlServer.Name,
Edition = "Basic",
Dtu = 50,
DbDtuMin = 0,
DbDtuMax = 5,
PoolSize = 5000,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/sql"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West US"),
})
if err != nil {
return err
}
exampleSqlServer, err := sql.NewSqlServer(ctx, "exampleSqlServer", &sql.SqlServerArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Version: pulumi.String("12.0"),
AdministratorLogin: pulumi.String("4dm1n157r470r"),
AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"),
})
if err != nil {
return err
}
_, err = sql.NewElasticPool(ctx, "exampleElasticPool", &sql.ElasticPoolArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
ServerName: exampleSqlServer.Name,
Edition: pulumi.String("Basic"),
Dtu: pulumi.Int(50),
DbDtuMin: pulumi.Int(0),
DbDtuMax: pulumi.Int(5),
PoolSize: pulumi.Int(5000),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West US")
example_sql_server = azure.sql.SqlServer("exampleSqlServer",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
version="12.0",
administrator_login="4dm1n157r470r",
administrator_login_password="4-v3ry-53cr37-p455w0rd")
example_elastic_pool = azure.sql.ElasticPool("exampleElasticPool",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
server_name=example_sql_server.name,
edition="Basic",
dtu=50,
db_dtu_min=0,
db_dtu_max=5,
pool_size=5000)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleSqlServer = new azure.sql.SqlServer("exampleSqlServer", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
version: "12.0",
administratorLogin: "4dm1n157r470r",
administratorLoginPassword: "4-v3ry-53cr37-p455w0rd",
});
const exampleElasticPool = new azure.sql.ElasticPool("exampleElasticPool", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
serverName: exampleSqlServer.name,
edition: "Basic",
dtu: 50,
dbDtuMin: 0,
dbDtuMax: 5,
poolSize: 5000,
});Create a ElasticPool Resource
new ElasticPool(name: string, args: ElasticPoolArgs, opts?: CustomResourceOptions);def ElasticPool(resource_name, opts=None, db_dtu_max=None, db_dtu_min=None, dtu=None, edition=None, location=None, name=None, pool_size=None, resource_group_name=None, server_name=None, tags=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:
- Dtu int
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- Edition string
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- 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.
- Db
Dtu intMax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Db
Dtu intMin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Pool
Size int The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Dtu int
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- Edition string
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- 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.
- Db
Dtu intMax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Db
Dtu intMin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Pool
Size int The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- map[string]string
A mapping of tags to assign to the resource.
- dtu number
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- edition string
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- 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.
- db
Dtu numberMax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- db
Dtu numberMin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- pool
Size number The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- {[key: string]: string}
A mapping of tags to assign to the resource.
- dtu float
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- edition str
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- 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.
- db_
dtu_ floatmax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- db_
dtu_ floatmin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- pool_
size float The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticPool resource produces the following output properties:
- Creation
Date string The creation date of the SQL Elastic Pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- Creation
Date string The creation date of the SQL Elastic Pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- creation
Date string The creation date of the SQL Elastic Pool.
- id string
- The provider-assigned unique ID for this managed resource.
- creation_
date str The creation date of the SQL Elastic Pool.
- id str
- The provider-assigned unique ID for this managed resource.
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, creation_date=None, db_dtu_max=None, db_dtu_min=None, dtu=None, edition=None, location=None, name=None, pool_size=None, resource_group_name=None, server_name=None, tags=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:
- Creation
Date string The creation date of the SQL Elastic Pool.
- Db
Dtu intMax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Db
Dtu intMin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Dtu int
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- Edition string
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Pool
Size int The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- 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.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Creation
Date string The creation date of the SQL Elastic Pool.
- Db
Dtu intMax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Db
Dtu intMin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- Dtu int
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- Edition string
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- Pool
Size int The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- 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.
- map[string]string
A mapping of tags to assign to the resource.
- creation
Date string The creation date of the SQL Elastic Pool.
- db
Dtu numberMax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- db
Dtu numberMin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- dtu number
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- edition string
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- pool
Size number The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- 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.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- creation_
date str The creation date of the SQL Elastic Pool.
- db_
dtu_ floatmax The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
- db_
dtu_ floatmin The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
- dtu float
The total shared DTU for the elastic pool. Valid values depend on the
editionwhich has been defined. Refer to Azure SQL Database Service Tiers for valid combinations.- edition str
The edition of the elastic pool to be created. Valid values are
Basic,Standard, andPremium. Refer to Azure SQL Database Service Tiers for details. Changing this forces a new resource to be created.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
- pool_
size float The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of
editionanddtuand the limits documented in Azure SQL Database Service Tiers. If not defined when creating an elastic pool, the value is set to the size implied byeditionanddtu.- 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.
- Dict[str, str]
A mapping of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.