7 SPOSiteScript
Nik Charlebois редактировал(а) эту страницу 2021-10-06 06:17:59 -04:00

# SPOSiteScript

Parameters

Parameter Attribute DataType Description Allowed Values
Title Key String The title of the site script.
Identity Write String ID of the site Script
Description Write String The description of the site script.
Content Write String A JSON string containing the site script.
Ensure Write String Present ensures the site script exists, absent ensures it is removed Present, Absent
Credential Write PSCredential Credentials of the account to authenticate with.
ApplicationId Write String Id of the Azure Active Directory application to authenticate with.
ApplicationSecret Write String Secret of the Azure Active Directory application to authenticate with.
TenantId Write String Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com
CertificatePassword Write PSCredential Username can be made up to anything but password will be used for certificatePassword
CertificatePath Write String Path to certificate used in service principal usually a PFX file.
CertificateThumbprint Write String Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.

SPOSiteScript

This resource allows users to manage JSON files that specify an ordered list of actions to run when creating the new sites.

Azure AD Permissions

To authenticate via Azure Active Directory, this resource required the following Application permissions:

  • Automate
    • SharePoint
      • Sites.FullControl.All
  • Export
    • SharePoint
      • Sites.FullControl.All

NOTE: All permissions listed above require admin consent.