Modifier

Partager via


Update-AzWorkloadsSapDatabaseInstance

Updates the Database instance resource. This can be used to update tags on the resource.

Syntax

Update-AzWorkloadsSapDatabaseInstance
      -Name <String>
      -ResourceGroupName <String>
      -SapVirtualInstanceName <String>
      [-SubscriptionId <String>]
      [-Tag <Hashtable>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzWorkloadsSapDatabaseInstance
      -InputObject <ISapVirtualInstanceIdentity>
      [-Tag <Hashtable>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Updates the Database instance resource. This can be used to update tags on the resource.

Examples

Example 1: Add tags for an existing Database instance resource

Update-AzWorkloadsSapDatabaseInstance  -Name db0 -ResourceGroupName db0-vis-rg -SapVirtualInstanceName DB0 -Tag @{ Test = "PS"; k2 = "v2"}

Name ResourceGroupName ProvisioningState Location      Status  IPAddress  DatabaseSid
---- ----------------- ----------------- --------      ------  ---------  -----------
db0  db0-vis-rg        Succeeded         centraluseuap Running 172.31.5.4 MB0

This cmdlet adds new tag name, value pairs to the existing Database instance resource db0. VIS name and Resource group name are the other input parameters.

Example 2: Add tags for an existing Database instance resource

Update-AzWorkloadsSapDatabaseInstance  -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0/databaseInstances/db0 -Tag @{ Test = "PS"; k2 = "v2"}

Name ResourceGroupName ProvisioningState Location      Status  IPAddress  DatabaseSid
---- ----------------- ----------------- --------      ------  ---------  -----------
db0  db0-vis-rg        Succeeded         centraluseuap Running 172.31.5.4 MB0

This cmdlet adds new tag name, value pairs to the existing Database instance resource db0. Here Database instance Azure resource ID is used as the input parameter.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

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

-Name

Database resource name string modeled as parameter for auto generation to work correctly.

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

-ResourceGroupName

The name of the resource group. The name is case insensitive.

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

-SapVirtualInstanceName

The name of the Virtual Instances for SAP solutions resource

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

-SubscriptionId

The ID of the target subscription.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

Gets or sets the Resource tags.

Type:Hashtable
Position:Named
Default value:None
Required:False
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ISapVirtualInstanceIdentity

Outputs

ISapDatabaseInstance

Notes

ALIASES

Update-AzVISDatabaseInstance