New-WebSitesConfig

New-WebSitesConfig

Creates a configuration.

Syntax

Parameter Set: Default
New-WebSitesConfig [-Type] {AppHostConfig | ConfigFile | DefaultAppHostConfig | RootWebConfig | DefaultRootWebConfig | RestAdmin | Global | Credential | Metering | Security | SecurityKey | CentralCertificate} [-PipelineVariable <String> ] [ <CommonParameters>]


 

Detailed Description

The New-WebSitesConfig cmdlet creates a configuration. Use the Type parameter to specify the configuration type.

Parameters

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Type<WebSitesConfigTypes>

Specifies the type of configuration. Valid values are:

-- AppHostConfig

-- ConfigFile

-- DefaultAppHostConfig

-- RootWebConfig

-- DefaultRootWebConfig

-- RestAdmin

-- Global

-- Credential

-- Metering

-- Security

-- SecurityKey

-- CredentialCertificate

The acceptable values for this parameter are:

 

AppHostConfig

 

ConfigFile

 

DefaultAppHostConfig

 

RootWebConfig

 

DefaultRootWebConfig

 

RestAdmin

 

Global

 

Credential

 

Metering

 

Security

 

SecurityKey

 

CentralCertificate

 

 

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Create a configuration

This command creates a global configuration.

PS C:\> New-WebSitesConfig -Type "Global"

 

Related topics

Get-WebSitesConfig

Set-WebSitesConfig

Remove-WebSitesConfig