Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Moving web-app from draft to published (#99)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodrigo Santos <[email protected]>
  • Loading branch information
rodrigosantosms and Rodrigo Santos authored Sep 25, 2023
1 parent fd5406f commit 3c142dc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ resources
| extend zoneRedundant = tobool(properties.zoneRedundant)
| extend sku_tier = tostring(sku.tier)
| where sku_tier !in ("Free", "LinuxFree", "Basic", "WorkflowStandard", "ElasticPremium", "Dynamic", "Shared", "", "Isolated", "Standard") and zoneRedundant == false
| project name, subscriptionId, sku_tier, zoneRedundant
| project recommendationid="asp-1", name, id, sku_tier, zoneRedundant
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ resources
| where type =~ 'microsoft.web/serverfarms'
| extend sku_tier = tostring(sku.tier)
| where sku_tier !contains 'premium' and sku_tier !contains 'standard'
| project name, sku_tier
| project recommendationid="asp-2", name, id, sku_tier
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Azure Resource Graph Query
// The query filters the resources based on the type "microsoft.web/serverfarms" i.e. App Service Plans that are not setup to use standard or premium SKUs.
// TODO: Extend this query to show automatic scaling or App level automatic scale
// Azure Resource Graph
// App Service Plans that are not setup to use standard or premium SKUs.
// TODO: Extend this query to show automatic scaling or App level automatic scale
resources
| where type =~ "microsoft.insights/autoscalesettings"
| where properties.targetResourceUri contains "microsoft.web/serverfarms"
| project AppServicePlan = split(properties.targetResourceUri, '/')[8], ResourceGroup = split(properties.targetResourceUri, '/')[4]
| project AppServicePlan, ResourceGroup
| project AppServicePlan = split(properties.targetResourceUri, '/')[8], ResourceGroup = split(properties.targetResourceUri, '/')[4],id=properties.targetResourceUri
| project recommendationid="asp-5", ["name"]=AppServicePlan, ["id"]=id
20 changes: 10 additions & 10 deletions docs/content/services/web/web-app/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Best practices and resiliency recommendations for Web App and ass
date = "6/27/23"
author = "kunalbabre"
msAuthor = "kunalbabre"
draft = true
draft = false
+++

The presented resiliency recommendations in this guidance include Web App and associated settings.
Expand Down Expand Up @@ -60,6 +60,14 @@ Enable monitoring on your web applications based on ASP.NET, ASP.NET Core, Java,
- [Application Insights](https://learn.microsoft.com/azure/application-insights/app-insights-overview)
- [Application monitoring for Azure App Service](https://learn.microsoft.com/azure/azure-monitor/app/azure-web-apps)

**Resource Graph Query/Scripts**

{{< collapse title="Show/Hide Query/Script" >}}

{{< code lang="sql" file="code/app-2/app-2.kql" >}} {{< /code >}}

{{< /collapse >}}

<br><br>

### App-3 - Separate web apps from web APIs
Expand All @@ -74,14 +82,6 @@ If your solution has both a web front end and a web API, consider decomposing th

- [Resiliency checklist for specific Azure services](https://learn.microsoft.com/azure/architecture/checklist/resiliency-per-service#app-service)

**Resource Graph Query/Scripts**

{{< collapse title="Show/Hide Query/Script" >}}

{{< code lang="sql" file="code/app-2/app-2.kql" >}} {{< /code >}}

{{< /collapse >}}

<br><br>

### App-4 - Create a separate storage account for logs
Expand Down Expand Up @@ -115,7 +115,7 @@ Consider creating a deployment slot to hold the last-known-good (LKG) deployment

{{< collapse title="Show/Hide Query/Script" >}}

{{< code lang="sql" file="code/app-2/app-5.kql" >}} {{< /code >}}
{{< code lang="sql" file="code/app-5/app-5.kql" >}} {{< /code >}}

{{< /collapse >}}

Expand Down

0 comments on commit 3c142dc

Please sign in to comment.