it is possible to stop whole app service (see Full stopping a Web App), but I'm not sure that it will affect pricing:
- Go to https://resources.azure.com
- Find needed app service from above list
- In JSON view on the right side click Edit
- Change “state” from “Running” to “Stopped” – this is the same as if you would stop App service form Azure portal
- Find “scmSiteAlsoStopped” property and set it from “false” to “true” – it will stop SCM file