Update-WebSitesDatabase

Updates a website database.

Syntax

Update-WebSitesDatabase [-Type] <DatabaseType> [[-HostingConnectionString] <String>]
 [[-MeteringConnectionString] <String>] [-Confirm] [-Force] [-PerformPostUpdate]
 [-RemoteSettings <RemoteSettings>] [-SuppressRequestIdLine] [-WhatIf] [<CommonParameters>]

Description

The Update-WebSitesDatabase cmdlet updates a website database.
Updating a hosting or metering database is usually performed after the controller has been updated.
This helps to synchronize the database with the updated controller.

Examples

Example 1: Update a hosting database

PS C:\> Update-WebSitesDatabase -Type "Hosting"
This command updates the hosting database.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

{{Fill Force Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-HostingConnectionString

{{Fill HostingConnectionString Description}}

Type:String
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-MeteringConnectionString

{{Fill MeteringConnectionString Description}}

Type:String
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-PerformPostUpdate

{{Fill PerformPostUpdate Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Type

Specifies the type of database being updated.
Valid values are:

- Hosting
- Metering

For example:

-Type "Metering"

Type:DatabaseType
Parameter Sets:Hosting, Metering
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False