Register AppPackage in Azure Subscription | Azure Service Fabric Cluster

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

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

When you develop and package a Service Fabric application, the application is packaged into a compressed folder named AppPackage.zip. However, to register the Service Fabric application in Azure, you need to repackage it into a Service Fabric application package (.sfpkg) file. The .sfpkg file is a package that contains the application binary and configuration files required to deploy the Service Fabric application to a Service Fabric cluster.

Therefore, the first step to register the AppPackage Service Fabric application in the Azure subscription is to repackage it into a .sfpkg file. Once you have the .sfpkg file, you can register it in the Azure subscription by using the New-ServiceFabricApplicationType and New-ServiceFabricApplication cmdlets in PowerShell.

Option A, Run the New-ServiceFabricApplication cmdlet, is incorrect because this cmdlet is used to deploy a Service Fabric application to a cluster, not to register a new Service Fabric application.

Option C, Create a new Service Fabric cluster, is also incorrect because the question already states that there is an existing Service Fabric cluster in the subscription. Creating a new cluster would not be necessary.

Option D, Copy AppPackage.zip to a blob storage account, is incorrect because copying the compressed folder to a blob storage account does not register the Service Fabric application in the Azure subscription.