你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Update-AzSqlVMGroup

Updates a sql virtual machine group.

Syntax

Update-AzSqlVMGroup
      [-AsJob]
      [-ClusterOperatorAccount <String>]
      [-SqlServiceAccount <String>]
      [-StorageAccountUrl <String>]
      [-StorageAccountPrimaryKey <SecureString>]
      [-DomainFqdn <String>]
      [-OuPath <String>]
      [-FileShareWitnessPath <String>]
      [-ClusterBootstrapAccount <String>]
      [-Tag <Hashtable>]
      [-ResourceGroupName] <String>
      [-Name] <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzSqlVMGroup
      [-InputObject] <AzureSqlVMGroupModel>
      [-AsJob]
      [-ClusterOperatorAccount <String>]
      [-SqlServiceAccount <String>]
      [-StorageAccountUrl <String>]
      [-StorageAccountPrimaryKey <SecureString>]
      [-DomainFqdn <String>]
      [-OuPath <String>]
      [-FileShareWitnessPath <String>]
      [-ClusterBootstrapAccount <String>]
      [-Tag <Hashtable>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzSqlVMGroup
      [-ResourceId] <String>
      [-AsJob]
      [-ClusterOperatorAccount <String>]
      [-SqlServiceAccount <String>]
      [-StorageAccountUrl <String>]
      [-StorageAccountPrimaryKey <SecureString>]
      [-DomainFqdn <String>]
      [-OuPath <String>]
      [-FileShareWitnessPath <String>]
      [-ClusterBootstrapAccount <String>]
      [-Tag <Hashtable>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-AzSqlVMGroup cmdlet updates a sql virtual machine group.

Examples

Example 1

$tags = @{'key'='value'}
$group = Update-AzSqlVMGroup -InputObject $group -Tag $tags
$group.Tags

Name                           Value
----                           -----
key                            value

Updates the tags of a sql virtual machine group.

Parameters

-AsJob

Run cmdlet in the background.

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

-ClusterBootstrapAccount

Name used for creating cluster

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

-ClusterOperatorAccount

Name used for operating cluster

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

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DomainFqdn

Fully qualified name of the domain

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

-FileShareWitnessPath

Optional path for fileshare witness

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

-InputObject

SQL virtual machine object.

Type:AzureSqlVMGroupModel
Aliases:SqlVMGroup
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-Name

SQL virtual machine group name.

Type:String
Aliases:SqlVMGroupName
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-OuPath

Organizational Unit path in which the nodes and cluster will be present

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

-ResourceGroupName

The name of the resource group.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

SQL virtual machine group resource id.

Type:String
Aliases:SqlVMGroupId
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-SqlServiceAccount

Name under which SQL service will run on all participating SQL virtual machines in the cluster

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

-StorageAccountPrimaryKey

Primary key of the witness storage account

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

-StorageAccountUrl

Primary key of the witness storage account

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

-Tag

The tags to associate with the SQL virtual machine group.

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

-WhatIf

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

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

Inputs

AzureSqlVMGroupModel

String

Outputs

AzureSqlVMGroupModel