Skip to main content

โญ Repository โ†’ ๐Ÿ“ Compliance Engine โ†’ ๐Ÿ“ CloudAware โ†’ ๐Ÿ“ Azure โ†’ ๐Ÿ“ App Service

๐Ÿ›ก๏ธ Azure App Service Plan has no Apps assigned๐ŸŸข

  • Contextual name: ๐Ÿ›ก๏ธ App Service Plan has no Apps assigned๐ŸŸข
  • ID: /ce/ca/azure/app-service/plan-without-apps
  • Tags:
  • Policy Type: COMPLIANCE_POLICY
  • Policy Categories: COST

Logicโ€‹

Descriptionโ€‹

Open File

Descriptionโ€‹

Ensure that each Azure App Service Plan is actively utilized and has assigned at least one App to it. App Service Plans provide the necessary infrastructure for hosting Apps, and unassigned plans represent idle resources that clutter the inventory and are still incurring costs.

Rationaleโ€‹

App Service Plans consume computing resources, generate costs, and increase complexity in managing cloud resources even in the absence of active Apps. Identifying and remediating unassigned App Service Plans optimizes resource allocation, reduces unnecessary expenditures.

Auditโ€‹

This policy flags an Azure App Service Plan as INCOMPLIANT if the Number Of Sites field is either empty or has a value of 0.

Remediationโ€‹

Open File

Remediationโ€‹

From Command Lineโ€‹

To Delete an Azure App Service Planโ€‹
Azure CLIโ€‹
az appservice plan delete \
--name {{app-service-plan-name}} \
--resource-group {{resource-group-name}} \
--subscription {{subscription-id}}
--yes
  • The --yes flag automatically confirms the deletion of the App Service Plan.
PowerShellโ€‹
Remove-AzAppServicePlan -ResourceGroupName {{resource-group-name}} -Name {{app-service-plan-name}}

policy.yamlโ€‹

Open File

Linked Framework Sectionsโ€‹

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
๐Ÿ’ผ Cloudaware Framework โ†’ ๐Ÿ’ผ Waste Reduction25no data