When you redeploy your application in Azure App Service, the platform manages the underlying infrastructure, including the virtual machines (VMs) that host your application. Here’s what happens during a redeployment:
- Application Update: The new version of your application is deployed to the App Service. This process typically involves replacing the existing application code with the new code you have provided.
- Instance Management: Azure App Service runs your application in a multitenant environment. When you redeploy, Azure may use the same instance to host your application, but it can also shift your application to a different instance depending on the deployment strategy and the current load on the infrastructure.
- Isolation: Each application is segregated from others, meaning that even if your application had a vulnerability, it would not directly affect other applications running on the same VM. Azure App Service employs security measures to ensure that applications cannot access each other's data.
- Patching and Updates: Azure continuously updates the VMs and runtime software to address newly discovered vulnerabilities. This means that even if your application was vulnerable before the redeployment, the underlying platform is regularly patched to mitigate risks.
- Security Measures: If a vulnerability was exploited before the redeployment, the platform's security measures, including continuous threat management, help protect against further risks. However, if malicious code was executed, it is essential to ensure that the code is thoroughly reviewed and cleaned before redeploying to mitigate any potential risks.
In summary, redeploying your application does not necessarily reinstall the VM from scratch, but it does update the application code and may involve moving it to a different instance. Azure App Service manages the security and isolation of applications to minimize risks from vulnerabilities.