{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5bee8dcf-f0ed-448d-b7e2-1f9a216d9b55",
    "slug": "wcAazg",
    "name": "Microsoft SQL Server",
    "description": "A relational model database server produced by Microsoft",
    "url": "https://railway.com/deploy/wcAazg",
    "upstream": {
      "repo_url": "https://github.com/railwayapp-templates/microsoft-sql-server"
    }
  },
  "services": [
    {
      "name": "MicrosoftSQL",
      "source": {
        "repo": "https://github.com/railwayapp-templates/microsoft-sql-server"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/mssql",
      "tcp_ports": [
        1433
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MSSQL_PID",
      "service": "MicrosoftSQL",
      "description": "Sets the SQL Server edition or product key",
      "secret": false,
      "strategy": "default",
      "default": "Developer"
    },
    {
      "key": "MSSQL_URL",
      "service": "MicrosoftSQL",
      "description": "Private SQL server URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACCEPT_EULA",
      "service": "MicrosoftSQL",
      "description": "By deploying this template you are confirming your acceptance of [Microsoft's End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388)",
      "secret": false,
      "strategy": "default",
      "default": "Y"
    },
    {
      "key": "MSSQL_SERVER",
      "service": "MicrosoftSQL",
      "description": "Private server domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MSSQL_TCP_PORT",
      "service": "MicrosoftSQL",
      "description": "Private database port",
      "secret": false,
      "strategy": "default",
      "default": "1433"
    },
    {
      "key": "MSSQL_USERNAME",
      "service": "MicrosoftSQL",
      "description": "Default system administor username - **Can not be changed**",
      "secret": false,
      "strategy": "default",
      "default": "sa"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "MicrosoftSQL",
      "description": "Allows read and write volume access",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "MSSQL_URL_PUBLIC",
      "service": "MicrosoftSQL",
      "description": "Public SQL server URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MSSQL_SA_PASSWORD",
      "service": "MicrosoftSQL",
      "description": "Default password for user `sa`",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MSSQL_SERVER_PUBLIC",
      "service": "MicrosoftSQL",
      "description": "Public server domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MSSQL_TCP_PORT_PUBLIC",
      "service": "MicrosoftSQL",
      "description": "Public database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wcAazg"
      }
    },
    "cli": "railway deploy --template wcAazg",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5bee8dcf-f0ed-448d-b7e2-1f9a216d9b55",
            "serializedConfig": {
              "services": {
                "ca1c1caa-b6f5-48dd-b08e-2534c04606c5": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1712791646/Microsoft_SQL_Server_Logo_refined_gat88v.svg",
                  "name": "MicrosoftSQL",
                  "source": {
                    "repo": "railwayapp-templates/microsoft-sql-server",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "MSSQL_PID": {
                      "description": "Sets the SQL Server edition or product key",
                      "defaultValue": "Developer"
                    },
                    "MSSQL_URL": {
                      "description": "Private SQL server URL",
                      "defaultValue": "sqlserver://${{MSSQL_USERNAME}}:${{MSSQL_SA_PASSWORD}}@${{MSSQL_SERVER}}:${{MSSQL_TCP_PORT}}"
                    },
                    "ACCEPT_EULA": {
                      "description": "By deploying this template you are confirming your acceptance of [Microsoft's End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388)",
                      "defaultValue": "Y"
                    },
                    "MSSQL_SERVER": {
                      "description": "Private server domain",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MSSQL_TCP_PORT": {
                      "description": "Private database port",
                      "defaultValue": "1433"
                    },
                    "MSSQL_USERNAME": {
                      "description": "Default system administor username - **Can not be changed**",
                      "defaultValue": "sa"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Allows read and write volume access",
                      "defaultValue": "0"
                    },
                    "MSSQL_URL_PUBLIC": {
                      "description": "Public SQL server URL",
                      "defaultValue": "sqlserver://${{MSSQL_USERNAME}}:${{MSSQL_SA_PASSWORD}}@${{MSSQL_SERVER_PUBLIC}}:${{MSSQL_TCP_PORT_PUBLIC}}"
                    },
                    "MSSQL_SA_PASSWORD": {
                      "description": "Default password for user `sa`",
                      "defaultValue": "{{MSSQL_SA_PASSWORD}}"
                    },
                    "MSSQL_SERVER_PUBLIC": {
                      "description": "Public server domain",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "MSSQL_TCP_PORT_PUBLIC": {
                      "description": "Public database port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "1433": {}
                    }
                  },
                  "volumeMounts": {
                    "ca1c1caa-b6f5-48dd-b08e-2534c04606c5": {
                      "mountPath": "/var/opt/mssql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T13:38:27.760Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_af4f8fb660d646218485",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 22,
    "typical_start_seconds": 21,
    "slowest_service": "MicrosoftSQL"
  }
}
