How to change port number in Blazor 6.0/7.0 ?

If we are working on core web api or Blazor application, so many time we will get requirement to change the port number. but on dotnet 6.0 and 7.0, they have changed the approach to change port number. Now we cannot do using right click and properties options.

For this we need to do

Step 1: Go to debug properties

Step 2: Select https >> Change in App URL

Now run the application