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.
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)- A2% (1)
- B89% (39)
- C7% (3)
- D2% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.