Get-WebSitesPolicy
Gets policy information for a website.
Syntax
Get-WebSitesPolicy
[[-PlanName] <String>]
[[-ComputeMode] <ComputeModeOptions>]
[[-SiteMode] <String>]
[-RemoteSettings <RemoteSettings>]
[-SuppressRequestIdLine]
[<CommonParameters>]
Description
The Get-WebSitesPolicy cmdlet returns policy information for a website.
Examples
Example 1: Get all website policies
PS C:\> Get-WebSitesPolicy
This command returns information about all your website policies.
Parameters
-ComputeMode
Specifies the type of hosting environment that the web site runs in. Valid values are:
- Shared. The web site runs in a shared/multi-tenant hosting environment.
- Dedicated. The web site runs in its own dedicated hosting environment.
For example:
-ComputeMode "Shared"
If you use this parameter you must also use the PlanName parameter.
Type: | ComputeModeOptions |
Accepted values: | Shared, Dedicated |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PlanName
Specifies the name of the plan associated with the policy. For example:
-PlanName "Shared"
You must include this parameter if you use the ComputeMode and SiteMode parameters.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RemoteSettings
{{Fill RemoteSettings Description}}
Type: | RemoteSettings |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SiteMode
Specifies the site mode of the policy. Valid values are:
- Basic. Used with the Shared, Basic, and Standard plans.
- Limited. Used with the Free plan.
For example:
-SiteMode "Basic"
To use this parameter you must also specify a value for the PlanName parameter.
Type: | String |
Accepted values: | Basic, Limited, Dedicated |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SuppressRequestIdLine
{{Fill SuppressRequestIdLine Description}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |