โญ 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 with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY
- Policy Categories:
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 | Compliance |
---|---|---|---|---|---|
๐ผ Cloudaware Framework โ ๐ผ Waste Reduction | 25 | no data |