Microsoft Azure

Deploy and manage Azure Virtual Machines, Blob Storage, and SQL Databases on Microsoft Azure.

Supported Services

Virtual Machines, Blob Storage, SQL Database, VNet Networking

Prerequisites

  • Azure subscription with billing enabled
  • Azure AD application (Service Principal)
  • Client ID, Client Secret, Tenant ID, and Subscription ID

1. Create Service Principal

  1. Go to Azure App Registrations
  2. Click New registration
  3. Enter a name (e.g., "docka-integration")
  4. Note the Application (client) ID and Directory (tenant) ID
  5. Go to Certificates & secrets → New client secret
  6. Save the secret value (shown only once)

2. Assign Permissions

  1. Go to your Azure Subscription
  2. Click Access control (IAM) → Add role assignment
  3. Assign Contributor role to your service principal
  4. For storage, also assign Storage Blob Data Contributor

3. Connect to Docka

  1. Navigate to Providers in Docka
  2. Click Connect Provider → Microsoft Azure
  3. Enter Tenant ID, Client ID, Client Secret, Subscription ID
  4. Click Connect

Virtual Machine Sizes

SizevCPUsMemoryUse Case
Standard_B1s11 GBDevelopment
Standard_B2s24 GBLight workloads
Standard_D2s_v328 GBGeneral purpose
Standard_D4s_v3416 GBProduction
Standard_D8s_v3832 GBHigh performance

Blob Storage Access Tiers

TierUse CasePrice/GB
HotFrequently accessed$0.0184
CoolInfrequently accessed$0.01
ColdRarely accessed$0.0036
ArchiveLong-term storage$0.00099

SQL Database Tiers

  • Basic/Standard: DTU-based pricing for predictable workloads
  • General Purpose: vCore-based for variable workloads
  • Business Critical: High-performance with built-in HA

API Example

curl -X POST https://api.docka.dev/v1/servers \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "name": "web-server",
    "provider_id": "azure-provider-id",
    "region": "eastus",
    "instance_type": "Standard_B2s"
  }'