Remove-IISWebsite
SYNOPSIS
Remove an IIS site.
SYNTAX
iisFarm (Default)
Remove-IISWebsite -iisAppName <String> [-iisFarm <String[]>] -task <UInt64> [-keepInfoblox] [-test <Boolean>]
[<CommonParameters>]
iisServer
Remove-IISWebsite -iisAppName <String> [-iisServer <String>] -task <UInt64> [-keepInfoblox] [-test <Boolean>]
[<CommonParameters>]
DESCRIPTION
This function removes an IIS site, including: - Disabling the associated sysuser - Removing host aliases in Infoblox - Creating tasks for SB Netwerk to update F5 - Logging feedback and updates in the associated HEAT task
EXAMPLES
EXAMPLE 1
Removes the IIS site "MyApp" from the PR3 farm and logs the process in HEAT task 12345.
EXAMPLE 2
Removes the IIS site "MyApp" from the server "SRVIISPR01" while keeping the Infoblox DNS alias and logs the process in HEAT task 67890.
PARAMETERS
-iisAppName
The name of the IIS site and application pool to be removed.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-iisFarm
The IIS farm where the site is located (e.g., PR1, PR2, QA3, DV4).
Type: String[]
Parameter Sets: iisFarm
Aliases:
Required: False
Position: Named
Default value: @("DV3", "QA3", "ST3", "PR3")
Accept pipeline input: False
Accept wildcard characters: False
-iisServer
The standalone IIS server where the site is located.
Type: String
Parameter Sets: iisServer
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-task
The HEAT task number where the transcript of the operation will be logged.
Type: UInt64
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-keepInfoblox
A switch to indicate whether to keep the Infoblox DNS alias.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-test
A boolean to indicate whether the operation is a test run.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.