To ensure that your Azure Web App namedaz400-38443478-mainsupports rolling upgrades and only 10 percent of users connect to the updated version of the app, you can use deployment slots with the followingsteps:
Create a Deployment Slot:
Navigate to the Azure Portal.
Go to your Web Appaz400-38443478-main.
SelectDeployment slotsin the menu.
Click onAdd Slot.
Name the slot (e.g.,staging) and if needed, clone settings from the production slot.
Configure the Traffic Percentage:
In the Deployment Slots menu, you will see a column forTraffic %.
Set the traffic percentage to10%for thestagingslot1.
This will route only 10% of the traffic to the updated version of the app in thestagingslot.
Deploy the Updated App to the Staging Slot:
Deploy yourupdated application to thestagingslot.
Test the application in thestagingslot to ensure it’s working as expected.
Complete the Rolling Upgrade:
Once you’re satisfied with the performance and stability of the app in thestagingslot, you can graduallyincrease the percentage of traffic until you’re ready to swap with the production slot.
To swap slots, go to theDeployment slotsmenu and click onSwapwith the production slot.
By using deployment slots, you can achieve rolling upgrades with minimal administrative effort, as it allows you to test the new version on a subset of users before fully releasing it. Remember to adjust the traffic percentage and monitor the application’s performance throughout the process.