How to Distribute for Ad Hoc Installation of a MAUI app via an App Service?

Marc George 191 Reputation points
2023-10-28T11:22:58.5466667+00:00

After the development and publishing of a MAUI application, what are the steps/requirements/settings to deploy the application to an App Service for Ad Hoc downloads to devices.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,990 questions
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-10-31T11:06:31.19+00:00

    @Marc George Thanks for reaching here!

    To deploy a MAUI application to an App Service for Ad Hoc downloads to devices, you need to follow these steps:

    1. Create an Azure App Service: You can create an Azure App Service by following the steps mentioned in this https://docs.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=netcore31&pivots=development-environment-vscode
    2. Configure the App Service: Once you have created the App Service, you need to configure it to host your MAUI application. You can do this by following these steps: a. In the Azure portal, navigate to your App Service and click on the "Configuration" tab. b. Under "General settings", set the "Startup Command" to the command that starts your MAUI application. For example, if your MAUI application is named "MyApp", the startup command might be "dotnet MyApp.dll". c. Under "Application settings", add any environment variables that your MAUI application requires. d. Under "Deployment Center", choose the deployment method that you prefer. You can deploy your MAUI application using Git, FTP, or other methods.
    3. Upload your MAUI application: Once you have configured your App Service, you need to upload your MAUI application to the App Service. You can do this by following these steps: a. Build your MAUI application for the appropriate platform (iOS, Android, or Windows). b. Package your MAUI application into an IPA (iOS), APK (Android), or MSIX (Windows) file. c. Upload the IPA, APK, or MSIX file to your App Service using the deployment method that you chose in step 2.
    4. Configure Ad Hoc distribution: To enable Ad Hoc distribution of your MAUI application, you need to configure the App Service to allow downloads of the IPA, APK, or MSIX file. You can do this by following these steps: a. In the Azure portal, navigate to your App Service and click on the "Authentication / Authorization" tab. b. Under "Authorization", choose "On" to enable authentication and authorization. c. Under "Action to take when request is not authenticated", choose "Allow Anonymous requests (no action)". d. Under "Allowed External Redirect URLs", add the URL of the page where you want to host the download link for your MAUI application.

     

     

     


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.