azure-native.azuredata.SqlServer
Explore with Pulumi AI
A SQL server.
Uses Azure REST API version 2019-07-24-preview. In version 2.x of the Azure Native provider, it used API version 2019-07-24-preview.
Create SqlServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlServer(name: string, args: SqlServerArgs, opts?: CustomResourceOptions);
@overload
def SqlServer(resource_name: str,
args: SqlServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sql_server_registration_name: Optional[str] = None,
cores: Optional[int] = None,
edition: Optional[str] = None,
property_bag: Optional[str] = None,
registration_id: Optional[str] = None,
sql_server_name: Optional[str] = None,
version: Optional[str] = None)
func NewSqlServer(ctx *Context, name string, args SqlServerArgs, opts ...ResourceOption) (*SqlServer, error)
public SqlServer(string name, SqlServerArgs args, CustomResourceOptions? opts = null)
public SqlServer(String name, SqlServerArgs args)
public SqlServer(String name, SqlServerArgs args, CustomResourceOptions options)
type: azure-native:azuredata:SqlServer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SqlServerArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. SqlServerArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SqlServerArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SqlServerArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. SqlServerArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlServerResource = new AzureNative.AzureData.SqlServer("sqlServerResource", new()
{
ResourceGroupName = "string",
SqlServerRegistrationName = "string",
Cores = 0,
Edition = "string",
PropertyBag = "string",
RegistrationID = "string",
SqlServerName = "string",
Version = "string",
});
example, err := azuredata.NewSqlServer(ctx, "sqlServerResource", &azuredata.SqlServerArgs{
ResourceGroupName: pulumi.String("string"),
SqlServerRegistrationName: pulumi.String("string"),
Cores: pulumi.Int(0),
Edition: pulumi.String("string"),
PropertyBag: pulumi.String("string"),
RegistrationID: pulumi.String("string"),
SqlServerName: pulumi.String("string"),
Version: pulumi.String("string"),
})
var sqlServerResource = new SqlServer("sqlServerResource", SqlServerArgs.builder()
.resourceGroupName("string")
.sqlServerRegistrationName("string")
.cores(0)
.edition("string")
.propertyBag("string")
.registrationID("string")
.sqlServerName("string")
.version("string")
.build());
sql_server_resource = azure_native.azuredata.SqlServer("sqlServerResource",
resource_group_name="string",
sql_server_registration_name="string",
cores=0,
edition="string",
property_bag="string",
registration_id="string",
sql_server_name="string",
version="string")
const sqlServerResource = new azure_native.azuredata.SqlServer("sqlServerResource", {
resourceGroupName: "string",
sqlServerRegistrationName: "string",
cores: 0,
edition: "string",
propertyBag: "string",
registrationID: "string",
sqlServerName: "string",
version: "string",
});
type: azure-native:azuredata:SqlServer
properties:
cores: 0
edition: string
propertyBag: string
registrationID: string
resourceGroupName: string
sqlServerName: string
sqlServerRegistrationName: string
version: string
SqlServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlServer resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Sql
Server Registration Name This property is required. Changes to this property will trigger replacement.
- Name of the SQL Server registration.
- Cores int
- Cores of the Sql Server.
- Edition string
- Sql Server Edition.
- Property
Bag string - Sql Server Json Property Bag.
- Registration
ID string - ID for Parent Sql Server Registration.
- Sql
Server Name Changes to this property will trigger replacement.
- Name of the SQL Server.
- Version string
- Version of the Sql Server.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Sql
Server Registration Name This property is required. Changes to this property will trigger replacement.
- Name of the SQL Server registration.
- Cores int
- Cores of the Sql Server.
- Edition string
- Sql Server Edition.
- Property
Bag string - Sql Server Json Property Bag.
- Registration
ID string - ID for Parent Sql Server Registration.
- Sql
Server Name Changes to this property will trigger replacement.
- Name of the SQL Server.
- Version string
- Version of the Sql Server.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- sql
Server Registration Name This property is required. Changes to this property will trigger replacement.
- Name of the SQL Server registration.
- cores Integer
- Cores of the Sql Server.
- edition String
- Sql Server Edition.
- property
Bag String - Sql Server Json Property Bag.
- registration
ID String - ID for Parent Sql Server Registration.
- sql
Server Name Changes to this property will trigger replacement.
- Name of the SQL Server.
- version String
- Version of the Sql Server.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- sql
Server Registration Name This property is required. Changes to this property will trigger replacement.
- Name of the SQL Server registration.
- cores number
- Cores of the Sql Server.
- edition string
- Sql Server Edition.
- property
Bag string - Sql Server Json Property Bag.
- registration
ID string - ID for Parent Sql Server Registration.
- sql
Server Name Changes to this property will trigger replacement.
- Name of the SQL Server.
- version string
- Version of the Sql Server.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- sql_
server_ registration_ name This property is required. Changes to this property will trigger replacement.
- Name of the SQL Server registration.
- cores int
- Cores of the Sql Server.
- edition str
- Sql Server Edition.
- property_
bag str - Sql Server Json Property Bag.
- registration_
id str - ID for Parent Sql Server Registration.
- sql_
server_ name Changes to this property will trigger replacement.
- Name of the SQL Server.
- version str
- Version of the Sql Server.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- sql
Server Registration Name This property is required. Changes to this property will trigger replacement.
- Name of the SQL Server registration.
- cores Number
- Cores of the Sql Server.
- edition String
- Sql Server Edition.
- property
Bag String - Sql Server Json Property Bag.
- registration
ID String - ID for Parent Sql Server Registration.
- sql
Server Name Changes to this property will trigger replacement.
- Name of the SQL Server.
- version String
- Version of the Sql Server.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlServer resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- type str
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azuredata:SqlServer testsqlserver /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}/sqlServers/{sqlServerName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0