1. Packages
  2. Azure Native v2
  3. API Docs
  4. azuredata
  5. getSqlServer
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.azuredata.getSqlServer

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets a SQL Server. Azure REST API version: 2019-07-24-preview.

Using getSqlServer

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSqlServer(args: GetSqlServerArgs, opts?: InvokeOptions): Promise<GetSqlServerResult>
function getSqlServerOutput(args: GetSqlServerOutputArgs, opts?: InvokeOptions): Output<GetSqlServerResult>
Copy
def get_sql_server(expand: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   sql_server_name: Optional[str] = None,
                   sql_server_registration_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSqlServerResult
def get_sql_server_output(expand: Optional[pulumi.Input[str]] = None,
                   resource_group_name: Optional[pulumi.Input[str]] = None,
                   sql_server_name: Optional[pulumi.Input[str]] = None,
                   sql_server_registration_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetSqlServerResult]
Copy
func LookupSqlServer(ctx *Context, args *LookupSqlServerArgs, opts ...InvokeOption) (*LookupSqlServerResult, error)
func LookupSqlServerOutput(ctx *Context, args *LookupSqlServerOutputArgs, opts ...InvokeOption) LookupSqlServerResultOutput
Copy

> Note: This function is named LookupSqlServer in the Go SDK.

public static class GetSqlServer 
{
    public static Task<GetSqlServerResult> InvokeAsync(GetSqlServerArgs args, InvokeOptions? opts = null)
    public static Output<GetSqlServerResult> Invoke(GetSqlServerInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSqlServerResult> getSqlServer(GetSqlServerArgs args, InvokeOptions options)
public static Output<GetSqlServerResult> getSqlServer(GetSqlServerArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:azuredata:getSqlServer
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
SqlServerName
This property is required.
Changes to this property will trigger replacement.
string
Name of the SQL Server.
SqlServerRegistrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the SQL Server registration.
Expand string
The child resources to include in the response.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
SqlServerName
This property is required.
Changes to this property will trigger replacement.
string
Name of the SQL Server.
SqlServerRegistrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the SQL Server registration.
Expand string
The child resources to include in the response.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
sqlServerName
This property is required.
Changes to this property will trigger replacement.
String
Name of the SQL Server.
sqlServerRegistrationName
This property is required.
Changes to this property will trigger replacement.
String
Name of the SQL Server registration.
expand String
The child resources to include in the response.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
sqlServerName
This property is required.
Changes to this property will trigger replacement.
string
Name of the SQL Server.
sqlServerRegistrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the SQL Server registration.
expand string
The child resources to include in the response.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
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_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the SQL Server.
sql_server_registration_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the SQL Server registration.
expand str
The child resources to include in the response.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
sqlServerName
This property is required.
Changes to this property will trigger replacement.
String
Name of the SQL Server.
sqlServerRegistrationName
This property is required.
Changes to this property will trigger replacement.
String
Name of the SQL Server registration.
expand String
The child resources to include in the response.

getSqlServer Result

The following output properties are available:

Id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Cores int
Cores of the Sql Server.
Edition string
Sql Server Edition.
PropertyBag string
Sql Server Json Property Bag.
RegistrationID string
ID for Parent Sql Server Registration.
Version string
Version of the Sql Server.
Id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Cores int
Cores of the Sql Server.
Edition string
Sql Server Edition.
PropertyBag string
Sql Server Json Property Bag.
RegistrationID string
ID for Parent Sql Server Registration.
Version string
Version of the Sql Server.
id String
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
cores Integer
Cores of the Sql Server.
edition String
Sql Server Edition.
propertyBag String
Sql Server Json Property Bag.
registrationID String
ID for Parent Sql Server Registration.
version String
Version of the Sql Server.
id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name string
The name of the resource
type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
cores number
Cores of the Sql Server.
edition string
Sql Server Edition.
propertyBag string
Sql Server Json Property Bag.
registrationID string
ID for Parent Sql Server Registration.
version string
Version of the Sql Server.
id str
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name str
The name of the resource
type str
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
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.
version str
Version of the Sql Server.
id String
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
cores Number
Cores of the Sql Server.
edition String
Sql Server Edition.
propertyBag String
Sql Server Json Property Bag.
registrationID String
ID for Parent Sql Server Registration.
version String
Version of the Sql Server.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi