-
Notifications
You must be signed in to change notification settings - Fork 107
SPWebApplicationAppDomain
dscbot edited this page Mar 17, 2023
·
19 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
WebAppUrl | Key | String | The URL of the web application to set the app domain for | |
Zone | Key | String | The zone that this app domain applies to |
Default , Internet , Intranet , Extranet , Custom
|
AppDomain | Required | String | The domain for apps in this web app zone | |
Port | Write | String | The port to run apps on | |
SSL | Write | Boolean | Should apps run under SSL |
Type: Distributed Requires CredSSP: No
This resource will configure the App Domain at a specific zone for the given Web Application. The configuration is done per zone on the specified web application, allowing for the setting of unique app domains for each extension of a web application. The app prefix should still be set using the SPAppDomain resource before this is applied to customise a specific zone.
This example shows how to set the app domain for a specified web application
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPWebApplicationAppDomain Domain
{
AppDomain = "contosointranetapps.com"
WebAppUrl = "http://portal.contoso.com"
Zone = "Default"
Port = 80
SSL = $false
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