nerdexam
Microsoft

70-489 · Question #102

A company has a SharePoint environment that contains multiple site collections. The company purchases an app. You need to ensure that the app is available in all site collections. Which Windows PowerS

The correct answer is B. Import-SPAppPackage and then Install-SPApp. Making a purchased app available across all SharePoint site collections requires first importing the app package into the farm and then installing it via PowerShell.

Implement an application lifecycle management (ALM) process for Microsoft SharePoint 2013

Question

A company has a SharePoint environment that contains multiple site collections. The company purchases an app. You need to ensure that the app is available in all site collections. Which Windows PowerShell cmdlets should you run?

Options

  • AInstall-SPApp and then Update-SPAppCatalogSettings
  • BImport-SPAppPackage and then Install-SPApp
  • CImport-SPAppPackage and then Enable-SPAppAutoProvision
  • DEnable-SPAppAutoProvision and then Install-SPApp

How the community answered

(44 responses)
  • A
    2% (1)
  • B
    89% (39)
  • C
    7% (3)
  • D
    2% (1)

Why each option

Making a purchased app available across all SharePoint site collections requires first importing the app package into the farm and then installing it via PowerShell.

AInstall-SPApp and then Update-SPAppCatalogSettings

Update-SPAppCatalogSettings modifies App Catalog configuration settings rather than installing an app to site collections, so pairing it with Install-SPApp does not correctly provision the app.

BImport-SPAppPackage and then Install-SPAppCorrect

Import-SPAppPackage uploads the app package into the SharePoint App Catalog, making it available to the farm, and Install-SPApp then deploys that imported app to the target site collection, completing the two-step provisioning process.

CImport-SPAppPackage and then Enable-SPAppAutoProvision

Enable-SPAppAutoProvision enables automatic provisioning of apps that are already marked for auto-provisioning in the catalog but does not handle the initial import of a newly purchased app package.

DEnable-SPAppAutoProvision and then Install-SPApp

Enable-SPAppAutoProvision must come after the package is imported into the catalog via Import-SPAppPackage; without importing first, there is no app available to auto-provision or install.

Concept tested: SharePoint app deployment using Import-SPAppPackage and Install-SPApp

Source: https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/import-spapppackage

Topics

#app deployment#PowerShell cmdlets#Import-SPAppPackage#site collections

Community Discussion

No community discussion yet for this question.

Full 70-489 Practice