@Bhargav Pasarla , As Paul suggested, by having separate deployment slots for production, staging, and development, you may test your changes in a non-production environment before deploying them to production.
Based on my understanding your scenario, if your requirement fits, you may also checkout the following approach:
You may leverage/perform a swap with preview. This will allow you to validate that the app runs with the swapped settings before completing the swap. During the swap with preview, the source slot is also warmed up before the swap completion, which is desirable for mission-critical applications. If you cancel the swap, the configuration elements will be reapplied to the source slot.
To swap with preview, you can follow the steps in Swap deployment slots but select Perform swap with preview. The dialog box shows you how the configuration in the source slot changes in phase 1, and how the source and target slot change in phase 2. When you're ready to start the swap, select Start Swap.
After the swap, the staging slot will have the new changes from the production slot, and the production slot will have the old version from the staging slot. If the changes swapped into the production slot aren't as you expect, you can perform the same swap immediately to get your "last known good site" back.
Checkout : What happens during a swap || Swap operation steps
Additionally, Auto swap streamlines the deployment process by automatically swapping the app into production after it's warmed up in the source slot. When auto swap is enabled from a slot into production, every time you push your code changes to that slot, App Service automatically swaps the app into production after it's warmed up in the source slot.
After you configure auto swap, every time you push your code changes to the source slot, App Service automatically swaps the app into the target slot after it's warmed up in the source slot.
Note that auto swap isn't supported in web apps on Linux and Web App for Containers. Also, make sure to test auto swap on a non-production target slot before configuring it for the production slot.
Please let us know if you have any further questions or if I have misunderstood your ask or provide more info about your exact requirement.