Microsoft Azure Import Export API

The Import Export API from Microsoft Azure, for import export.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import Import a bacpac into a new SQL database · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a new Azure SQL database from a bacpac file in storage?”
“Which edition and service objective must I choose when importing a bacpac?”
Tell an agent
Import bacpac {storageUri} into new database {databaseName} on server {serverName} as {edition} {serviceObjectiveName}, max {maxSizeBytes} bytes.
Restore {storageUri} as a brand-new database {databaseName} on SQL server {serverName} using admin {administratorLogin}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName} Import a bacpac into an existing empty database · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I load a bacpac into a SQL database that already exists?”
“Does the target database need to be empty before an import extension runs?”
Tell an agent
Import into existing empty database {databaseName} on server {serverName} via extension {extensionName}.
Load a bacpac into the empty SQL database {databaseName} on {serverName} with import extension {extensionName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export Export a SQL database to a bacpac · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I export an Azure SQL database to a bacpac file in blob storage?”
“What storage key and admin credentials does a database export need?”
Tell an agent
Export database {databaseName} on server {serverName} to {storageUri}.
Back up SQL database {databaseName} from {serverName} as a bacpac at {storageUri} using admin {administratorLogin}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-import-export-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-import-export-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure SQL Database Import/Export spec…
  description: Provides create and read functionality for Import/Export operations on Azure SQL databases.
  version: '2014-04-01'
servers:
- url: https://management.azure.com
tags:
- name: Import Export
paths:
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import:
    post:
      tags:
      - Import Export
      operationId: microsoftAzureDatabasesImport
      description: Imports a bacpac into a new database.
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportExportResponse'
        '202':
          description: Accepted
      x-ms-examples:
        Import bacpac into new database Max with storage key:
          $ref: ./examples/DatabaseCreateImportMaxStorageKey.json
        Import bacpac into new database Min with storage key:
          $ref: ./examples/DatabaseCreateImportMinStorageKey.json
        Import bacpac into new database Max with SAS key:
          $ref: ./examples/DatabaseCreateImportMaxSasKey.json
        Import bacpac into new database Min with SAS key:
          $ref: ./examples/DatabaseCreateImportMinSasKey.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportRequest'
        description: The required parameters for importing a Bacpac into a database.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}
  : put:
      tags:
      - Import Export
      operationId: microsoftAzureDatabasesCreateimportoperation
      description: Creates an import operation that imports a bacpac into an existing database. The existing database must be empty.
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database to import into
        schema:
          type: string
      - name: extensionName
        in: path
        required: true
        description: The name of the operation to perform
        x-ms-enum:
          name: ExtensionName
          modelAsString: true
        schema:
          type: string
          enum:
          - import
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportExportResponse'
        '202':
          description: Accepted
      x-ms-examples:
        Import bacpac into an existing database Max with storage key:
          $ref: ./examples/DatabaseUpdateImportMaxStorageKey.json
        Import bacpac into an existing database Min with storage key:
          $ref: ./examples/DatabaseUpdateImportMinStorageKey.json
        Import bacpac into an existing database Max with SAS key:
          $ref: ./examples/DatabaseUpdateImportMaxSasKey.json
        Import bacpac into an existing database Min with SAS key:
          $ref: ./examples/DatabaseUpdateImportMinSasKey.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportExtensionRequest'
        description: The required parameters for importing a Bacpac into a database.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export
  : post:
      tags:
      - Import Export
      operationId: microsoftAzureDatabasesExport
      description: Exports a database to a bacpac.
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database to be exported.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportExportResponse'
        '202':
          description: Accepted
      x-ms-examples:
        Export a database into a new bacpac file with storage key:
          $ref: ./examples/DatabaseExportStorageKey.json
        Export a database into a new bacpac file with SAS key:
          $ref: ./examples/DatabaseExportSasKey.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportRequest'
        description: The required parameters for exporting a database.
        required: true
components:
  schemas:
    ExportRequest:
      properties:
        storageKeyType:
          type: string
          description: The type of the storage key to use.
          enum:
          - StorageAccessKey
          - SharedAccessKey
          x-ms-enum:
            name: StorageKeyType
        storageKey:
          type: string
          description: The storage key to use.  If storage key type is SharedAccessKey, it must be preceded with a "?."
        storageUri:
          type: string
          description: The storage uri to use.
        administratorLogin:
          type: string
          description: The name of the SQL administrator.
        administratorLoginPassword:
          type: string
          description: The password of the SQL administrator.
        authenticationType:
          type: string
          description: The authentication type.
          enum:
          - SQL
          - ADPassword
          x-ms-enum:
            name: AuthenticationType
          default: SQL
      required:
      - storageKeyType
      - storageKey
      - storageUri
      - administratorLogin
      - administratorLoginPassword
      description: Export database parameters.
    ImportExportResponseProperties:
      properties:
        requestType:
          type: string
          readOnly: true
          description: The request type of the operation.
        requestId:
          type: string
          format: uuid
          readOnly: true
          description: The request type of the operation.
        serverName:
          type: string
          readOnly: true
          description: The name of the server.
        databaseName:
          type: string
          readOnly: true
          description: The name of the database.
        status:
          type: string
          readOnly: true
          description: The status message returned from the server.
        lastModifiedTime:
          type: string
          readOnly: true
          description: The operation status last modified time.
        queuedTime:
          type: string
          readOnly: true
          description: The operation queued time.
        blobUri:
          type: string
          readOnly: true
          description: The blob uri.
        errorMessage:
          type: string
          readOnly: true
          description: The error message returned from the server.
      description: Response for Import/Export Status operation.
    ImportExtensionRequest:
      properties:
        name:
          type: string
          description: The name of the extension.
        type:
          type: string
          description: The type of the extension.
        properties:
          $ref: '#/components/schemas/ImportExtensionProperties'
          x-ms-client-flatten: true
          description: Represents the properties of the resource.
      description: Import database parameters.
    ImportExtensionProperties:
      properties:
        operationMode:
          type: string
          description: The type of import operation being performed. This is always Import.
          enum:
          - Import
          x-ms-enum:
            name: ImportOperationMode
      required:
      - operationMode
      allOf:
      - $ref: '#/components/schemas/ExportRequest'
      description: Represents the properties for an import operation
    ImportExportResponse:
      properties:
        properties:
          $ref: '#/components/schemas/ImportExportResponseProperties'
          x-ms-client-flatten: true
          description: The import/export operation properties.
      allOf:
      - $ref: ../../../common/v1/types.json#/definitions/ProxyResource
      description: Response for Import/Export Get operation.
    ImportRequest:
      properties:
        databaseName:
          type: string
          description: The name of the database to import.
        edition:
          type: string
          description: 'The edition for the database being created.


            The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:


            ```azurecli

            az sql db list-editions -l <location> -o table

            ````


            ```powershell

            Get-AzSqlServerServiceObjective -Location <location>

            ````

            '
          enum:
          - Web
          - Business
          - Basic
          - Standard
          - Premium
          - PremiumRS
          - Free
          - Stretch
          - DataWarehouse
          - System
          - System2
          - GeneralPurpose
          - BusinessCritical
          - Hyperscale
          x-ms-enum:
            name: DatabaseEdition
            modelAsString: true
        serviceObjectiveName:
          type: string
          description: The name of the service objective to assign to the database.
          enum:
          - System
          - System0
          - System1
          - System2
          - System3
          - System4
          - System2L
          - System3L
          - System4L
          - Free
          - Basic
          - S0
          - S1
          - S2
          - S3
          - S4
          - S6
          - S7
          - S9
          - S12
          - P1
          - P2
          - P3
          - P4
          - P6
          - P11
          - P15
          - PRS1
          - PRS2
          - PRS4
          - PRS6
          - DW100
          - DW200
          - DW300
          - DW400
          - DW500
          - DW600
          - DW1000
          - DW1200
          - DW1000c
          - DW1500
          - DW1500c
          - DW2000
          - DW2000c
          - DW3000
          - DW2500c
          - DW3000c
          - DW6000
          - DW5000c
          - DW6000c
          - DW7500c
          - DW10000c
          - DW15000c
          - DW30000c
          - DS100
          - DS200
          - DS300
          - DS400
          - DS500
          - DS600
          - DS1000
          - DS1200
          - DS1500
          - DS2000
          - ElasticPool
          x-ms-enum:
            modelAsString: true
            name: ServiceObjectiveName
        maxSizeBytes:
          type: string
          description: The maximum size for the newly imported database.
      allOf:
      - $ref: '#/components/schemas/ExportRequest'
      required:
      - databaseName
      - edition
      - serviceObjectiveName
      - maxSizeBytes
      description: Import database parameters.
  parameters:
    ServerNameParameter:
      name: serverName
      in: path
      required: true
      description: The name of the server.
      x-ms-parameter-location: method
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/importExport.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)