microsoft-teams-apps-company-communicator icon indicating copy to clipboard operation
microsoft-teams-apps-company-communicator copied to clipboard

App Service plan downgrade from S2 when not in use?

Open albert-widjaja opened this issue 9 months ago • 2 comments

Hi team,

https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/wiki/Solution-overview#app-service

To reduce the cost when not in use during the after-hours and over the weekend, would it be possible to scale down the App Service Plan from the (Legacy) Standard S2 into the Free F1 tier or keep it under the Standard S1 instead?

Using: https://learn.microsoft.com/en-us/powershell/module/az.websites/set-azappserviceplan?view=azps-11.5.0

Scale Up: Set-AzAppServicePlan -Name $appServicePlanName -ResourceGroupName $resourceGroupName -Tier "StandardS1" -NumberofWorkers 1 -WorkerSize "Medium"

Scale Down: Set-AzAppServicePlan -Name $appServicePlanName -ResourceGroupName $resourceGroupName -Tier "FreeF1" -NumberofWorkers 1 -WorkerSize "Small"

If not what are the alternatives to minimize the running cost when not in use?

Thank you in advance.

albert-widjaja avatar May 06 '24 12:05 albert-widjaja

Hi @albert-widjaja , Thanks for raising the query. App Services status do not have an impact on chargeability, i.e. If an app is stopped, it will still be charged (if the plan is chargeable) So downgrading the app service plan when not in use is a good away to incur less charges. You can downgrade the service plan to S1 in the weekends.

gsv022 avatar May 07 '24 06:05 gsv022

Thank you @gsv022 , May I know if the above command will work or not?

albert-widjaja avatar May 07 '24 07:05 albert-widjaja

Hi @albert-widjaja , Whenever not in use, go to CC resource group--> Open app service plan resource-->Under settings, choose Scaleup(App service plan)-->Downgrade to S1 and save it.

We are not sure of the commands that you have provided.

gsv022 avatar May 09 '24 11:05 gsv022

OK, thanks @gsv022

albert-widjaja avatar May 13 '24 12:05 albert-widjaja