-
Notifications
You must be signed in to change notification settings - Fork 109
SPAppDomain
Brian Farnhill edited this page Sep 21, 2016
·
19 revisions
Parameters
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
AppDomain | Key | string | The domain name for apps to use in this farm | |
Prefix | Required | string | The prefix to go on to app URLs | |
InstallAccount | Write | String | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
Description
This resource will set the value for the app domain settings at the farm level. You can set the domain name and the prefix that is to be used for app URLs.
Examples
Example 1
This example shows how to apply app URLs to the current farm.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPAppDomain LocalFarmAppUrls
{
AppDomain = "contosointranetapps.com"
Prefix = "app"
PsDscRunAsCredential = $SetupAccount
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations