Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Remove-AzSqlInstancePool

Module:
Az.Sql Module

Removes an Azure SQL Instance pool.

Syntax

DeleteByNameParameterSet (Default)

Remove-AzSqlInstancePool
 [-ResourceGroupName] <String>
 [-Name] <String>
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

DeleteByInputObjectParameterSet

Remove-AzSqlInstancePool
 [-InputObject] <AzureSqlInstancePoolModel>
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

DeleteByResourceIdParameterSet

Remove-AzSqlInstancePool
 [-ResourceId] <String>
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

The Remove-AzSqlInstancePool cmdlet removes an Azure SQL Instance pool.

Examples

Example 1: Remove an instance pool

Remove-AzSqlInstancePool -ResourceGroupName resourcegroup01 -Name instancePool0

Example 2: Remove an instance pool by its resource identifier

Remove-AzSqlInstancePool -ResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0"

Example 3: Remove an instance pool by an instance pool object

Get-AzSqlInstancePool -ResourceGroupName resourcegroup01 -Name instancePool0
Remove-AzSqlInstancePool -InputObject $instancePool

This command removes an instance pool named instancePool0.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-InputObject

The instance pool object to remove.

Parameter properties

Type:AzureSqlInstancePoolModel
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

The name of the instance pool.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:InstancePoolName

Parameter sets

-ResourceGroupName

The name of the resource group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceId

The instance pool resource id to remove.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

AzureSqlInstancePoolModel

String

Outputs

Object


Feedback

Was this page helpful?