Skip to main content

πŸ“ 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
  • Located in: πŸ“ Azure App Service

Flags​

Our Metadata​

  • Policy Type: COMPLIANCE_POLICY
  • Policy Category:
    • 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 RulesPoliciesFlags
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Waste Reduction9