1. Packages
  2. Packages
  3. Azure Native
  4. API Docs
  5. web
  6. getStaticSiteBuildDatabaseConnection
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi

    Returns overview of a database connection for a static site build by name

    Uses Azure REST API version 2025-05-01.

    Other available API versions: 2022-09-01, 2023-01-01, 2023-12-01, 2024-04-01, 2024-11-01, 2025-03-01, 2026-03-01-preview, 2026-03-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native web [ApiVersion]. See the version guide for details.

    Using getStaticSiteBuildDatabaseConnection

    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 getStaticSiteBuildDatabaseConnection(args: GetStaticSiteBuildDatabaseConnectionArgs, opts?: InvokeOptions): Promise<GetStaticSiteBuildDatabaseConnectionResult>
    function getStaticSiteBuildDatabaseConnectionOutput(args: GetStaticSiteBuildDatabaseConnectionOutputArgs, opts?: InvokeOptions): Output<GetStaticSiteBuildDatabaseConnectionResult>
    def get_static_site_build_database_connection(database_connection_name: Optional[str] = None,
                                                  environment_name: Optional[str] = None,
                                                  name: Optional[str] = None,
                                                  resource_group_name: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetStaticSiteBuildDatabaseConnectionResult
    def get_static_site_build_database_connection_output(database_connection_name: pulumi.Input[Optional[str]] = None,
                                                  environment_name: pulumi.Input[Optional[str]] = None,
                                                  name: pulumi.Input[Optional[str]] = None,
                                                  resource_group_name: pulumi.Input[Optional[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetStaticSiteBuildDatabaseConnectionResult]
    func LookupStaticSiteBuildDatabaseConnection(ctx *Context, args *LookupStaticSiteBuildDatabaseConnectionArgs, opts ...InvokeOption) (*LookupStaticSiteBuildDatabaseConnectionResult, error)
    func LookupStaticSiteBuildDatabaseConnectionOutput(ctx *Context, args *LookupStaticSiteBuildDatabaseConnectionOutputArgs, opts ...InvokeOption) LookupStaticSiteBuildDatabaseConnectionResultOutput

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

    public static class GetStaticSiteBuildDatabaseConnection 
    {
        public static Task<GetStaticSiteBuildDatabaseConnectionResult> InvokeAsync(GetStaticSiteBuildDatabaseConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetStaticSiteBuildDatabaseConnectionResult> Invoke(GetStaticSiteBuildDatabaseConnectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStaticSiteBuildDatabaseConnectionResult> getStaticSiteBuildDatabaseConnection(GetStaticSiteBuildDatabaseConnectionArgs args, InvokeOptions options)
    public static Output<GetStaticSiteBuildDatabaseConnectionResult> getStaticSiteBuildDatabaseConnection(GetStaticSiteBuildDatabaseConnectionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:web:getStaticSiteBuildDatabaseConnection
      arguments:
        # arguments dictionary
    data "azure-native_web_get_static_site_build_database_connection" "name" {
        # arguments
    }

    The following arguments are supported:

    DatabaseConnectionName string
    Name of the database connection.
    EnvironmentName string
    The stage site identifier.
    Name string
    Name of the static site
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DatabaseConnectionName string
    Name of the database connection.
    EnvironmentName string
    The stage site identifier.
    Name string
    Name of the static site
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    database_connection_name string
    Name of the database connection.
    environment_name string
    The stage site identifier.
    name string
    Name of the static site
    resource_group_name string
    The name of the resource group. The name is case insensitive.
    databaseConnectionName String
    Name of the database connection.
    environmentName String
    The stage site identifier.
    name String
    Name of the static site
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    databaseConnectionName string
    Name of the database connection.
    environmentName string
    The stage site identifier.
    name string
    Name of the static site
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    database_connection_name str
    Name of the database connection.
    environment_name str
    The stage site identifier.
    name str
    Name of the static site
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    databaseConnectionName String
    Name of the database connection.
    environmentName String
    The stage site identifier.
    name String
    Name of the static site
    resourceGroupName String
    The name of the resource group. The name is case insensitive.

    getStaticSiteBuildDatabaseConnection Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    ConfigurationFiles List<Pulumi.AzureNative.Web.Outputs.StaticSiteDatabaseConnectionConfigurationFileOverviewResponse>
    A list of configuration files associated with this database connection.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    Region string
    The region of the database resource.
    ResourceId string
    The resource id of the database.
    SystemData Pulumi.AzureNative.Web.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ConnectionIdentity string
    If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
    ConnectionString string
    The connection string to use to connect to the database.
    Kind string
    Kind of resource.
    AzureApiVersion string
    The Azure API version of the resource.
    ConfigurationFiles []StaticSiteDatabaseConnectionConfigurationFileOverviewResponse
    A list of configuration files associated with this database connection.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    Region string
    The region of the database resource.
    ResourceId string
    The resource id of the database.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ConnectionIdentity string
    If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
    ConnectionString string
    The connection string to use to connect to the database.
    Kind string
    Kind of resource.
    azure_api_version string
    The Azure API version of the resource.
    configuration_files list(object)
    A list of configuration files associated with this database connection.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    region string
    The region of the database resource.
    resource_id string
    The resource id of the database.
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    connection_identity string
    If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
    connection_string string
    The connection string to use to connect to the database.
    kind string
    Kind of resource.
    azureApiVersion String
    The Azure API version of the resource.
    configurationFiles List<StaticSiteDatabaseConnectionConfigurationFileOverviewResponse>
    A list of configuration files associated with this database connection.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    region String
    The region of the database resource.
    resourceId String
    The resource id of the database.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    connectionIdentity String
    If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
    connectionString String
    The connection string to use to connect to the database.
    kind String
    Kind of resource.
    azureApiVersion string
    The Azure API version of the resource.
    configurationFiles StaticSiteDatabaseConnectionConfigurationFileOverviewResponse[]
    A list of configuration files associated with this database connection.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    region string
    The region of the database resource.
    resourceId string
    The resource id of the database.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    connectionIdentity string
    If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
    connectionString string
    The connection string to use to connect to the database.
    kind string
    Kind of resource.
    azure_api_version str
    The Azure API version of the resource.
    configuration_files Sequence[StaticSiteDatabaseConnectionConfigurationFileOverviewResponse]
    A list of configuration files associated with this database connection.
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name str
    The name of the resource
    region str
    The region of the database resource.
    resource_id str
    The resource id of the database.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    connection_identity str
    If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
    connection_string str
    The connection string to use to connect to the database.
    kind str
    Kind of resource.
    azureApiVersion String
    The Azure API version of the resource.
    configurationFiles List<Property Map>
    A list of configuration files associated with this database connection.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    region String
    The region of the database resource.
    resourceId String
    The resource id of the database.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    connectionIdentity String
    If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
    connectionString String
    The connection string to use to connect to the database.
    kind String
    Kind of resource.

    Supporting Types

    StaticSiteDatabaseConnectionConfigurationFileOverviewResponse

    Contents string
    The Base64 encoding of the file contents.
    FileName string
    The name of the configuration file.
    Type string
    The type of configuration file.
    Contents string
    The Base64 encoding of the file contents.
    FileName string
    The name of the configuration file.
    Type string
    The type of configuration file.
    contents string
    The Base64 encoding of the file contents.
    file_name string
    The name of the configuration file.
    type string
    The type of configuration file.
    contents String
    The Base64 encoding of the file contents.
    fileName String
    The name of the configuration file.
    type String
    The type of configuration file.
    contents string
    The Base64 encoding of the file contents.
    fileName string
    The name of the configuration file.
    type string
    The type of configuration file.
    contents str
    The Base64 encoding of the file contents.
    file_name str
    The name of the configuration file.
    type str
    The type of configuration file.
    contents String
    The Base64 encoding of the file contents.
    fileName String
    The name of the configuration file.
    type String
    The type of configuration file.

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.23.0
    published on Saturday, Jul 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial