@Marco Dalla Piazza When you update your Service Plan, Azure may move your App Service to a different server or change the IP address associated with your App Service. This can cause the URL for your App Service to change, which can result in a 301 Moved Permanently response.
To avoid this issue in the future, you can try the following:
- Use a custom domain: If you use a custom domain for your App Service, you can avoid issues with URL changes caused by Service Plan updates. When you update your Service Plan, Azure will automatically update the IP address associated with your custom domain, so your customers will not experience any issues.
- Use a CNAME record: If you cannot use a custom domain, you can use a CNAME record to map a subdomain to your App Service. This will allow you to update the IP address associated with the subdomain without changing the URL.
While you do not say in your post, it sounds like an IP address is being used. We never recommend using an IP address but instead we recommend using the CNAME as this will persist even if your inbound IP address changes.