Register AppPackage in Azure | Azure Service Fabric Cluster | Microsoft Exam AZ-303

How to Register AppPackage in Azure Subscription

Question

You have an Azure subscription that contains an Azure Service Fabric cluster and a Service Fabric application named FabricApp.

You develop and package a Service Fabric application named AppPackage. AppPackage is saved in a compressed folder named AppPackage.zip.

You upload AppPackage.zip to an external store.

You need to register AppPackage in the Azure subscription.

What should you do first?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-package-apps#create-an-sfpkg

To register a Service Fabric application in Azure, you first need to package it into an SFPKG file format. An SFPKG file is a compressed archive file that contains the Service Fabric application manifest file, application code, and configuration settings.

In this scenario, the AppPackage is already saved in a compressed folder named AppPackage.zip. Therefore, you need to repackage it into an SFPKG file format before registering it in the Azure subscription.

The correct answer is B. Repackage the application in a file named App.sfpkg.

To repackage the AppPackage.zip into an SFPKG file format, follow these steps:

  1. Extract the AppPackage.zip to a local folder.
  2. Navigate to the AppPackage folder and locate the ApplicationManifest.xml file.
  3. Open the ApplicationManifest.xml file in a text editor and modify the values as needed.
  4. Create a new folder named Pkg in the AppPackage folder.
  5. Copy the ApplicationManifest.xml file and the Code folder to the Pkg folder.
  6. Zip the contents of the Pkg folder into a new ZIP file named AppPackage.sfpkg.
  7. Upload the AppPackage.sfpkg file to an external store, such as a blob storage account.

After you have re-packaged the AppPackage into an SFPKG file format, you can register it in the Azure subscription using the following steps:

  1. Open the Azure portal and navigate to the Service Fabric cluster.
  2. Click on the Applications tab and then click the "+ Add" button.
  3. In the "Add application" blade, select the "Import application" option.
  4. In the "Import application" blade, provide the following information:
    • Application package URL: the URL of the AppPackage.sfpkg file.
    • Application type name: the name of the Service Fabric application type.
    • Application type version: the version of the Service Fabric application type.
    • Application parameters: any application-specific parameters.
  5. Click the "Create" button to register the Service Fabric application in the Azure subscription.

Once the registration process is complete, you can deploy the Service Fabric application to the cluster by creating an application instance.