π 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β
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
COST
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
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 theNumber Of Sites
field is either empty or has a value of 0.
Remediationβ
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β
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ Cloudaware Framework β πΌ Waste Reduction | 10 |