MSDN Documentation

Creating Application Services

Creating Your First Application Service

This guide will walk you through the process of creating and configuring a new application service on the Microsoft Developer Network (MSDN) platform. Application services are the backbone of modern cloud-native applications, providing scalable and resilient infrastructure for your code.

Prerequisites

Before you begin, ensure you have the following:

Step-by-Step Creation

1. Access the Service Dashboard

Log in to your MSDN portal and navigate to the "Application Services" section. You'll see a dashboard displaying your existing services. Click on the "Create New Service" button.

2. Configure Service Basics

A form will appear asking for basic information:

3. Define Resources and Scaling

In this section, you specify the resources your application will need and how it should scale:

Important: Properly configuring auto-scaling is crucial for cost efficiency and performance. Start with conservative values and adjust based on monitoring data.

4. Configure Networking and Access

Define how your service will be accessed:

5. Advanced Options (Optional)

Depending on your needs, you can configure:

Example Configuration (YAML)

Here's a simplified example of how your service configuration might look in a YAML format:


apiVersion: v1
kind: AppService
metadata:
  name: my-web-app
  region: eastus
spec:
  runtime:
    language: nodejs
    version: "18"
  deployment:
    method: container
    image: "docker.io/myorg/my-web-app:latest"
  resources:
    cpu: 500m # 0.5 CPU core
    memory: 1024Mi # 1GB RAM
  scaling:
    minInstances: 2
    maxInstances: 10
    rules:
      - metric: cpu
        target: 70 # Scale up when CPU exceeds 70%
      - metric: memory
        target: 80 # Scale up when memory exceeds 80%
  networking:
    port: 3000
    publicAccess: true
  environment:
    NODE_ENV: production
    DATABASE_URL: &secret_db_url "secrets://my-db/connection_string"
  healthChecks:
    livenessProbe:
      path: "/healthz"
      intervalSeconds: 30

Next Steps

Once your service is created, you can:

Tip: For production deployments, consider using managed databases, message queues, and caching services offered by MSDN to complement your application services.