Technical interview questions with detailed answers—organized by course, like Dot Net Tutorials interview sections. Original content for Toolliyo Academy.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Trigger)
Scenario: When a customer places an order, the backend pushes a message to Azure
Storage Queue.
Azure Function processes it asynchronously.
Trigger: QueueTrigger
Use Case: Payment processing, inventory updates, email notifications.
Code Example (C#)
public class OrderProcessor
[FunctionName("ProcessOrder")]
public void Run(
[QueueTrigger("orders", Connection = "StorageConn")] string
orderJson,
ILogger log)
var order = JsonSerializer.Deserialize<Order>(orderJson);
log.LogInformation($"Processing order #{order.Id}");
// Call payment gateway
// Update inventory
// Send confirmation email
public record Order(int Id, string Product, int Qty);
✅ 2. Schedule Daily Database Backup
(Timer Trigger)
Scenario: Run SQL backup, archive logs, or clean old data every night.
Trigger: TimerTrigger
Use Case: Automation jobs, scheduled cleanups, maintenance tasks.
Code Example
public static class DailyBackup
[FunctionName("DailyDatabaseBackup")]
public static async Task Run(
[TimerTrigger("0 0 2 * * *")] TimerInfo timer,
ILogger log)
log.LogInformation("Starting daily database backup...");
// Call SQL API / storage account to create backup
await BackupService.RunBackupAsync();
log.LogInformation("Backup completed.");
⏰ "0 0 2 * * *" → runs daily at 2 AM
✅ 3. Generate Thumbnails for Uploaded
Images (Blob Trigger)
Scenario: When a user uploads an image, automatically create a thumbnail and store it.
Trigger: BlobTrigger
Use Case: Photo apps, e-commerce product images, document
workflows.
Code Example
[FunctionName("GenerateThumbnail")]
public static async Task Run(
[BlobTrigger("uploads/{name}", Connection = "StorageConn")]
Stream input,
string name,
[Blob("thumbnails/{name}", FileAccess.Write, Connection =
"StorageConn")] Stream output,
ILogger log)
log.LogInformation($"Creating thumbnail for {name}");
using var image = Image.Load(input);
image.Mutate(x => x.Resize(200, 200)); // resize
image.SaveAsJpeg(output);
✅ 4. Send Email Notifications from
Event Grid (Event Grid Trigger)
Scenario: A new user signs up → Event Grid sends event → Function triggers email.
Trigger: EventGridTrigger
Use Case: User signup, audit logs, subscription events.
Code Example
[FunctionName("UserSignupEmail")]
public static async Task Run(
[EventGridTrigger] EventGridEvent eventGridEvent,
ILogger log)
var data = eventGridEvent.Data.ToObjectFromJson<UserEvent>();
log.LogInformation($"New user signup: {data.Email}");
await EmailService.SendWelcomeEmail(data.Email);
✅ 5. Serverless REST API (HTTP
Trigger)
Scenario: Build lightweight APIs without using App Services.
Trigger: HttpTrigger
Use Case: Microservices, webhooks, backend-for-frontend APIs.
Code Example
[FunctionName("GetUserById")]
public static IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "get", Route =
"users/{id}")] HttpRequest req,
string id,
ILogger log)
var user = UserDb.GetUser(id);
if (user == null)
return new NotFoundResult();
return new OkObjectResult(user);
✅ 6. Process Messages from Service
Bus (Service Bus Trigger)
Scenario: Enterprise integration between microservices.
Trigger: ServiceBusTrigger
Use Case: Order processing, billing, messaging between systems.
Code Example
[FunctionName("ProcessPayment")]
public static async Task Run(
[ServiceBusTrigger("payments", Connection = "ServiceBusConn")]
string message,
ILogger log)
var payment = JsonSerializer.Deserialize<Payment>(message);
log.LogInformation($"Processing payment {payment.Id}");
await PaymentService.CompleteAsync(payment);
✅ 7. Auto-Delete Expired Files (Blob +
Timer + Logic)
Scenario: Remove files older than 30 days to reduce storage costs.
Trigger: TimerTrigger
Use Case: Data lifecycle automation.
Code Example
[FunctionName("DeleteOldFiles")]
public static async Task Run(
[TimerTrigger("0 */30 * * * *")] TimerInfo timer,
ILogger log)
var client = new BlobContainerClient(
Environment.GetEnvironmentVariable("StorageConn"), "logs");
await foreach (var blob in client.GetBlobsAsync())
if (blob.Properties.CreatedOn <
DateTimeOffset.UtcNow.AddDays(-30))
await client.DeleteBlobAsync(blob.Name);
log.LogInformation($"Deleted old file: {blob.Name}");
🔹 Section 1: Azure for .NET Developers – General
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Example: Deploying an ASP.NET Core app to App Service via Visual Studio:
public class Startup
public void ConfigureServices(IServiceCollection services)
services.AddControllers();
services.AddDbContext<MyDbContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DefaultConne
ction")));
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Model Description Example for .NET
IaaS
(Infrastructure)
Provides virtual machines,
networking, storage
Azure VM running Windows + IIS
hosting ASP.NET app
PaaS (Platform) Managed hosting environment
for apps
Azure App Service, Azure Functions
SaaS (Software) Fully managed software
accessible via browser
Office 365, Dynamics 365
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
using Azure.Storage.Blobs;
var blobServiceClient = new
BlobServiceClient("<connection_string>");
var containerClient =
blobServiceClient.GetBlobContainerClient("mycontainer");
await containerClient.UploadBlobAsync("sample.txt", new
BinaryData("Hello Azure!"));
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Interactive Login.
Example using DefaultAzureCredential:
using Azure.Identity;
using Azure.Storage.Blobs;
var credential = new DefaultAzureCredential();
var blobServiceClient = new BlobServiceClient(new
Uri("
credential);
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
environment variables.
Example:
// appsettings.Production.json
"ConnectionStrings": {
"DefaultConnection":
"Server=tcp:myserver.database.windows.net;Database=prodDB;..."
var connectionString =
Configuration.GetConnectionString("DefaultConnection");
🔹 Section 2: Azure App Services – .NET Developer
Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
APIs, and mobile backends.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
select existing → Publish.
az webapp up --name myapp --resource-group myResourceGroup --runtime
"DOTNET:6.0"
Microsoft Azure Microsoft Azure Tutorial · Azure
authentication features.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
same App Service.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Redeploy.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Update DNS.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
public class Program
public static void Main(string[] args)
var host = CreateHostBuilder(args).Build();
// Custom startup logic here
host.Run();
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 3: Deploying ASP.NET Core Web Apps –
Azure Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Method Description Use Case
Zip Deploy Upload a zip file; replaces app
content
Quick automated
deployments
FTP/FTPS Manual file upload via FTP client Small apps or manual
updates
WebDeploy
(MSDeploy)
Incremental deployment with config
& db sync
Complex apps with
dependencies
Microsoft Azure Microsoft Azure Tutorial · Azure
name: Build and Deploy ASP.NET Core
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
run: dotnet publish -c Release -o publish
uses: azure/webapps-deploy@v2
with:
app-name: 'my-azure-app'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ./publish
Microsoft Azure Microsoft Azure Tutorial · Azure
builder.Configuration.AddAzureKeyVault(
new Uri("
new
DefaultAzureCredential());
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
dotnet ef database update
using (var scope = app.Services.CreateScope())
var db =
scope.ServiceProvider.GetRequiredService<MyDbContext>();
db.Database.Migrate();
Microsoft Azure Microsoft Azure Tutorial · Azure
key-value pairs.
environment-specific configs.
Microsoft Azure Microsoft Azure Tutorial · Azure
var builder = WebApplication.CreateBuilder(args);
builder.Configuration
.AddJsonFile("appsettings.json")
.AddJsonFile($"appsettings.{builder.Environment.EnvironmentName}.jso
n", optional: true);
🔹 Section 4: Slot Deployment – Azure App Service
Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
testing, QA, or production.
and settings.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Example using Azure CLI:
az webapp deployment slot swap \
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
correct.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
tier:
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 5: Azure Functions / Serverless Computing
Microsoft Azure Microsoft Azure Tutorial · Azure
event-driven code without managing infrastructure.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
6/7
[FunctionName("HelloFunction")]
public static IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "get", "post")]
HttpRequest req,
ILogger log)
log.LogInformation("C# HTTP trigger function processed a
request.");
string name = req.Query["name"];
return new OkObjectResult($"Hello, {name ?? "World"}!");
Microsoft Azure Microsoft Azure Tutorial · Azure
to runtime APIs.
isolation and .NET version flexibility.
Microsoft Azure Microsoft Azure Tutorial · Azure
message).
Cosmos DB).
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
[FunctionName("QueueProcessor")]
public static void Run(
[QueueTrigger("myqueue", Connection = "AzureWebJobsStorage")]
string message,
ILogger log)
log.LogInformation($"Queue message received: {message}");
Microsoft Azure Microsoft Azure Tutorial · Azure
manually.
Example:
[FunctionName("OrchestratorFunction")]
public static async Task RunOrchestrator(
[OrchestrationTrigger] IDurableOrchestrationContext context)
await context.CallActivityAsync("HelloActivity", "Tokyo");
await context.CallActivityAsync("HelloActivity", "Seattle");
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
[FunctionName("QueueRetryFunction")]
[FixedDelayRetry(3, "00:00:10")]
public static void Run([QueueTrigger("retryqueue")] string message,
ILogger log)
log.LogInformation($"Processing message: {message}");
Microsoft Azure Microsoft Azure Tutorial · Azure
Publish
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
func start
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 6: Triggers and Bindings in Azure Functions
Microsoft Azure Microsoft Azure Tutorial · Azure
Example (HTTP trigger):
[FunctionName("HttpTriggerFunction")]
public static IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "get", "post")]
HttpRequest req,
ILogger log)
log.LogInformation("HTTP trigger executed.");
return new OkObjectResult("Hello from Azure Function!");
Microsoft Azure Microsoft Azure Tutorial · Azure
message, blob content).
DB, Storage Queue).
Example:
[FunctionName("QueueToBlobFunction")]
public static void Run(
[QueueTrigger("myqueue")] string queueMessage,
[Blob("output-container/{rand-guid}.txt", FileAccess.Write)] out
string blobContent,
ILogger log)
log.LogInformation($"Processing queue message: {queueMessage}");
blobContent = queueMessage; // Write to blob
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Example (input blob):
[FunctionName("BlobProcessor")]
public static void Run(
[BlobTrigger("input-container/{name}")] Stream blobStream,
string name,
ILogger log)
log.LogInformation($"Processing blob: {name}");
Example (output blob):
[Blob("output-container/output.txt", FileAccess.Write)] out string
outputBlob
Microsoft Azure Microsoft Azure Tutorial · Azure
Example (input Cosmos DB trigger):
[FunctionName("CosmosDBTriggerFunction")]
public static void Run(
[CosmosDBTrigger(
databaseName: "MyDatabase",
collectionName: "MyCollection",
ConnectionStringSetting = "CosmosDBConnection",
LeaseCollectionName = "leases")] IReadOnlyList<Document>
input,
ILogger log)
foreach (var doc in input)
log.LogInformation($"Document received: {doc.Id}");
Example (output Cosmos DB binding):
[CosmosDB(
databaseName: "MyDatabase",
collectionName: "MyCollection",
ConnectionStringSetting = "CosmosDBConnection")] out dynamic
outputDoc
outputDoc = new { id = Guid.NewGuid(), Name = "New Item" };
Microsoft Azure Microsoft Azure Tutorial · Azure
multiple.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
"type": "queueTrigger",
"direction": "in",
"name": "myQueueItem",
"queueName": "myqueue",
"connection": "AzureWebJobsStorage"
Microsoft Azure Microsoft Azure Tutorial · Azure
[QueueTrigger("myqueue", Connection = "AzureWebJobsStorage")]
Microsoft Azure Microsoft Azure Tutorial · Azure
Example (dynamic blob output):
[Blob("container/{name}-{datetime}.txt", FileAccess.Write)] out
string outputBlob
🔹 Section 7: Azure SQL / Cosmos DB – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Feature Azure SQL Cosmos DB
Type Relational NoSQL, multi-model
Schema Fixed Schema-less
Scaling Vertical/Horizontal Horizontal, automatic
Consistenc
ACID Multiple consistency levels (Strong, Eventual, etc.)
Use Case OLTP, structured
data
Global apps, unstructured data, IoT
Microsoft Azure Microsoft Azure Tutorial · Azure
"ConnectionStrings": {
"DefaultConnection":
"Server=tcp:myserver.database.windows.net,1433;Initial
Catalog=MyDb;Persist Security Info=False;User
ID=myuser;Password=mypassword;MultipleActiveResultSets=False;Encrypt
=True;TrustServerCertificate=False;Connection Timeout=30;"
builder.Services.AddDbContext<MyDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("Defa
ultConnection")));
Microsoft Azure Microsoft Azure Tutorial · Azure
credentials.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
services.AddDbContext<MyDbContext>(options =>
options.UseSqlServer(connectionString));
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
var cosmosClient = new CosmosClient(endpointUri, primaryKey);
var container = cosmosClient.GetContainer("DatabaseId",
"ContainerId");
Microsoft Azure Microsoft Azure Tutorial · Azure
var query = new QueryDefinition("SELECT * FROM c");
var iterator = container.GetItemQueryIterator<MyItem>(query,
requestOptions: new QueryRequestOptions { MaxItemCount = 10 });
while (iterator.HasMoreResults)
foreach (var item in await iterator.ReadNextAsync())
Console.WriteLine(item.Id);
Microsoft Azure Microsoft Azure Tutorial · Azure
Eventual.
var clientOptions = new CosmosClientOptions
ConsistencyLevel = ConsistencyLevel.Session
var cosmosClient = new CosmosClient(endpointUri, primaryKey,
clientOptions);
Microsoft Azure Microsoft Azure Tutorial · Azure
"indexingMode": "consistent",
"includedPaths": [
{"path": "/name/?"},
{"path": "/age/?"}
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 8: Azure Key Vault – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
keys, and certificates.
and encryption keys.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
secrets into IConfiguration.
var builder = new ConfigurationBuilder()
.AddAzureKeyVault(new Uri("
new DefaultAzureCredential());
var configuration = builder.Build();
var secretValue = configuration["MySecret"];
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Feature Secret Key Certificate
Data type Any string Cryptographic key X.509 certificate
Use case Passwords, connection
strings
Encryption, signing SSL/TLS or client auth
Managed
Secret store Key store Certificate store
Microsoft Azure Microsoft Azure Tutorial · Azure
var client = new SecretClient(new
Uri("
new
DefaultAzureCredential());
KeyVaultSecret secret = client.GetSecret("MySecret");
string value = secret.Value;
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Example using SDK:
var client = new SecretClient(new
Uri("
new
DefaultAzureCredential());
client.SetSecret("MySecret", "NewValue");
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
integration.
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 9: Azure Storage – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Upload example:
var blobServiceClient = new BlobServiceClient(connectionString);
var containerClient =
blobServiceClient.GetBlobContainerClient("mycontainer");
var blobClient = containerClient.GetBlobClient("file.txt");
using var fileStream = File.OpenRead("localfile.txt");
await blobClient.UploadAsync(fileStream, overwrite: true);
Download example:
var downloadPath = "downloaded.txt";
await blobClient.DownloadToAsync(downloadPath);
Microsoft Azure Microsoft Azure Tutorial · Azure
await blobClient.SetAccessTierAsync(AccessTier.Cool);
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Send message:
var queueClient = new QueueClient(connectionString, "myqueue");
await queueClient.CreateIfNotExistsAsync();
await queueClient.SendMessageAsync("Hello, Azure Queue!");
Receive message:
var message = await queueClient.ReceiveMessageAsync();
Console.WriteLine(message.Value.MessageText);
await queueClient.DeleteMessageAsync(message.Value.MessageId,
message.Value.PopReceipt);
Microsoft Azure Microsoft Azure Tutorial · Azure
Feature Azure Queue Service Bus Queue
Protocol HTTP/REST AMQP
Features Simple FIFO Advanced (sessions, transactions,
dead-letter)
Scalability High High but more complex
Use Case Simple decoupling Enterprise messaging with reliability
Microsoft Azure Microsoft Azure Tutorial · Azure
Example:
var tableClient = new TableClient(connectionString, "MyTable");
await tableClient.CreateIfNotExistsAsync();
var entity = new TableEntity("partition1", "row1")
{ "Name", "John" },
{ "Age", 30 }
await tableClient.AddEntityAsync(entity);
Microsoft Azure Microsoft Azure Tutorial · Azure
Azure.Storage.Files.Shares.
Microsoft Azure Microsoft Azure Tutorial · Azure
Example:
var shareClient = new ShareClient(connectionString, "myfileshare");
await shareClient.CreateIfNotExistsAsync();
Microsoft Azure Microsoft Azure Tutorial · Azure
az storage cors add --methods GET POST --origins
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Example:
var sasToken = blobClient.GenerateSasUri(BlobSasPermissions.Read,
DateTimeOffset.UtcNow.AddHours(1));
Console.WriteLine(sasToken);
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 10: Azure DevOps – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
test, and deploy applications.
management in one platform.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
trigger:
pool:
vmImage: 'windows-latest'
steps:
inputs:
packageType: 'sdk'
version: '7.x'
displayName: 'Build project'
displayName: 'Run tests'
Microsoft Azure Microsoft Azure Tutorial · Azure
Feature Classic
Pipeline
YAML Pipeline
Definition GUI-based Code-based (in repo)
Versioning Manual Versioned with code
CI/CD Supported Supported,
recommended
Reusability Limited High
Microsoft Azure Microsoft Azure Tutorial · Azure
inputs:
azureSubscription: 'MyAzureConnection'
appName: 'my-webapp'
package: '$(System.DefaultWorkingDirectory)/drop/*.zip'
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
variables:
value: $(MySecretFromVault)
isSecret: true
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
inputs:
command: push
packagesToPush: '**/*.nupkg'
publishVstsFeed: 'MyFeed'
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
stages:
jobs:
steps:
dependsOn: Build
jobs:
environment: 'Production'
strategy:
runOnce:
deploy:
steps:
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 11: Azure Active Directory & Identity – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
management service.
(MFA), and identity protection for apps and services.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Feature Azure AD Azure AD B2C
Target Employees/internal Customers/external
Features SSO, MFA, RBAC Customizable login, social logins
Protocol
OAuth, SAML, OpenID OAuth, OpenID, social authentication
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationS
cheme)
.AddMicrosoftIdentityWebApi(builder.Configuration.GetSection("AzureA
d"));
app.UseAuthentication();
app.UseAuthorization();
Microsoft Azure Microsoft Azure Tutorial · Azure
acquire tokens.
Example: acquiring token in .NET:
var app = ConfidentialClientApplicationBuilder.Create(clientId)
.WithClientSecret(clientSecret)
.WithAuthority(new
Uri($"
.Build();
string[] scopes = { "
var result = await app.AcquireTokenForClient(scopes).ExecuteAsync();
Console.WriteLine(result.AccessToken);
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
credentials.
Vault or SQL Database.
Microsoft Azure Microsoft Azure Tutorial · Azure
Feature System-assigne
User-assigned
Lifecycle Tied to resource Independent
Reusabl
No Yes
Example App Service Shared across multiple
resources
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationS
cheme)
.AddJwtBearer(options =>
options.Authority =
options.Audience = clientId;
});
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 12: Azure API Management – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
analyzing APIs.
developers.
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
parameters.
Example – API key header:
GET
Header: Ocp-Apim-Subscription-Key: <your-subscription-key>
Microsoft Azure Microsoft Azure Tutorial · Azure
Example – Rate limit policy:
<rate-limit calls="10" renewal-period="60" />
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
<set-header name="X-Custom-Header" exists-action="override">
<value>API Managed</value>
</set-header>
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Section 13: Monitoring, Logging, and
Troubleshooting – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
apps.
Example – Integrating with ASP.NET Core:
builder.Services.AddApplicationInsightsTelemetry(builder.Configurati
on["APPINSIGHTS_INSTRUMENTATIONKEY"]);
Microsoft Azure Microsoft Azure Tutorial · Azure
builder.Services.AddApplicationInsightsTelemetry(options =>
options.EnableDependencyTrackingTelemetryModule = true;
});
Microsoft Azure Microsoft Azure Tutorial · Azure
Services, Functions, SQL, etc.
Example query:
requests
| where success == false
| summarize count() by operation_Name
Microsoft Azure Microsoft Azure Tutorial · Azure
var telemetry = new TelemetryClient();
telemetry.TrackMetric("ItemsProcessed", 100);
Microsoft Azure Microsoft Azure Tutorial · Azure
telemetry across Azure resources.
Microsoft Azure Microsoft Azure Tutorial · Azure
Metric: ServerResponseTime
Condition: > 1000ms
Action: Email, Webhook, Logic App
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
streaming
🔹 Section 14: Best Practices & Real-World Scenarios –
Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Example – Azure DevOps pipeline:
inputs:
azureSubscription: 'MyServiceConnection'
KeyVaultName: 'MyKeyVault'
SecretsFilter: '*'
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Example in .NET:
if (_featureManager.IsEnabledAsync("NewCheckout"))
// Execute new feature code
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
cost-effective for sporadic workloads
Microsoft Azure Microsoft Azure Tutorial · Azure
var container = cosmosClient.GetContainer("db", "container");
var query = new QueryDefinition("SELECT * FROM c WHERE c.status =
@status")
.WithParameter("@status", "Active");
var iterator = container.GetItemQueryIterator<MyItem>(query);
Microsoft Azure Microsoft Azure Tutorial · Azure
Example in ASP.NET Core:
services.AddStackExchangeRedisCache(options =>
options.Configuration = Configuration["Redis:ConnectionString"];
});
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
🔹 Bonus Section: Advanced Azure Topics – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
Azure resources.
Example – Deploy an Azure Storage Account:
resource storageAccount
'Microsoft.Storage/storageAccounts@2022-09-01' = {
name: 'mystorageacct'
location: resourceGroup().location
sku: {
name: 'Standard_LRS'
kind: 'StorageV2'
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
communication.
Example – Azure CLI login:
az login --service-principal -u <appId> -p <password> --tenant
<tenantId>
Microsoft Azure Microsoft Azure Tutorial · Azure
Administrator, Global Admin)
Owner)
🔹 Final Questions for Interviews – Q&A
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
production logs.
Microsoft Azure Microsoft Azure Tutorial · Azure
access policies.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
uploads.
workflow.
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Microsoft Azure Microsoft Azure Tutorial · Azure
Review the concept and prepare a concise verbal explanation with a real project example.