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
- Go to Azure App Registrations
- Click New registration
- Enter a name (e.g., "docka-integration")
- Note the Application (client) ID and Directory (tenant) ID
- Go to Certificates & secrets → New client secret
- Save the secret value (shown only once)
2. Assign Permissions
- Go to your Azure Subscription
- Click Access control (IAM) → Add role assignment
- Assign Contributor role to your service principal
- For storage, also assign Storage Blob Data Contributor
3. Connect to Docka
- Navigate to Providers in Docka
- Click Connect Provider → Microsoft Azure
- Enter Tenant ID, Client ID, Client Secret, Subscription ID
- Click Connect
Virtual Machine Sizes
| Size | vCPUs | Memory | Use Case |
|---|---|---|---|
| Standard_B1s | 1 | 1 GB | Development |
| Standard_B2s | 2 | 4 GB | Light workloads |
| Standard_D2s_v3 | 2 | 8 GB | General purpose |
| Standard_D4s_v3 | 4 | 16 GB | Production |
| Standard_D8s_v3 | 8 | 32 GB | High performance |
Blob Storage Access Tiers
| Tier | Use Case | Price/GB |
|---|---|---|
| Hot | Frequently accessed | $0.0184 |
| Cool | Infrequently accessed | $0.01 |
| Cold | Rarely accessed | $0.0036 |
| Archive | Long-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"
}'