SPAppDomain - dsccommunity/SharePointDsc GitHub Wiki
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 |
Description
Type: Distributed Requires CredSSP: No
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
}
}
}