KEMBAR78
Azure App Configuration with .NET applications | PDF
Azure App Configuration mit
.NET Applications
Christian Nagel
https://csharp.christiannagel.com
Christian Nagel
• Training
• Coaching
• Consulting
• Development
• Microsoft MVP
• www.cninnovation.com
• csharp.christiannagel.com
• @christiannagel
Topics
• .NET Configuration
• Azure App Configuration
• Integration with .NET
.NET Configuration
• Host Class
• Dependency Injection Container
• Logging
• Configuration
Configuration
Flexiblity
• JSON Files
• Environment-specific JSON Files
• Environment variables
• Command-line arguments
• User Secrets
Configuration
and Microsoft
Azure
• Azure App Services
• Azure Functions
• …
Technologies
• Database Connection Strings
• Links to APIs
• …
• Common Configuration for Solutions?
Settings
Azure App Configuration
• Managed Configuration Store
• Central for the Solution / Subscription
• SKUs
• Free (1,000 requests per day, no SLA)
• Standard (20,000 requests per hour, 99.9% SLA)
Managed Identites
• System-Assigned Managed Identity
• Managed by the service instance
• User-Assigned Managed Identity
• Standalone Azure resource
Refresh Settings
• Without Application-Restart
• Use a Sentinel key, refresh settings if the sentinel changes
• Use IOptionsSnapshot
• Alternative to polling: Notifications via Azure Event Grid
Mapping the Environment
• Production / Staging
• Test / Developer
• Use Labels with Azure App Configuration
• Isolation between environments: use separate stores
Feature Flags
• New deployment patterns
• Offer features for early adopters
• Features based on timings
• Percentage of users
• Custom feature filters
Secrets in the Cloud
• Add Key Vault to Azure App Configuration
• Hardware-level encryption
• Granular access policies
• Management operations (certificate rotation)
Azure Key Vault
Administrator
Developer
Security Officer
Summary
.NET Configuration – flexible
and easy to use
Azure App Configuration – a
central store
Managed Identities for easier
deployment configuration
For action
• Use .NET Configuration
• Azure App Configuration – a central store
• https://github.com/christiannagel/bastaspring2021
Thank you!

Azure App Configuration with .NET applications

  • 1.
    Azure App Configurationmit .NET Applications Christian Nagel https://csharp.christiannagel.com
  • 2.
    Christian Nagel • Training •Coaching • Consulting • Development • Microsoft MVP • www.cninnovation.com • csharp.christiannagel.com • @christiannagel
  • 3.
    Topics • .NET Configuration •Azure App Configuration • Integration with .NET
  • 4.
    .NET Configuration • HostClass • Dependency Injection Container • Logging • Configuration
  • 5.
    Configuration Flexiblity • JSON Files •Environment-specific JSON Files • Environment variables • Command-line arguments • User Secrets
  • 6.
    Configuration and Microsoft Azure • AzureApp Services • Azure Functions • … Technologies • Database Connection Strings • Links to APIs • … • Common Configuration for Solutions? Settings
  • 7.
    Azure App Configuration •Managed Configuration Store • Central for the Solution / Subscription • SKUs • Free (1,000 requests per day, no SLA) • Standard (20,000 requests per hour, 99.9% SLA)
  • 8.
    Managed Identites • System-AssignedManaged Identity • Managed by the service instance • User-Assigned Managed Identity • Standalone Azure resource
  • 9.
    Refresh Settings • WithoutApplication-Restart • Use a Sentinel key, refresh settings if the sentinel changes • Use IOptionsSnapshot • Alternative to polling: Notifications via Azure Event Grid
  • 10.
    Mapping the Environment •Production / Staging • Test / Developer • Use Labels with Azure App Configuration • Isolation between environments: use separate stores
  • 11.
    Feature Flags • Newdeployment patterns • Offer features for early adopters • Features based on timings • Percentage of users • Custom feature filters
  • 12.
    Secrets in theCloud • Add Key Vault to Azure App Configuration • Hardware-level encryption • Granular access policies • Management operations (certificate rotation) Azure Key Vault Administrator Developer Security Officer
  • 13.
    Summary .NET Configuration –flexible and easy to use Azure App Configuration – a central store Managed Identities for easier deployment configuration
  • 14.
    For action • Use.NET Configuration • Azure App Configuration – a central store • https://github.com/christiannagel/bastaspring2021
  • 15.