共用方式為


Get-AzWorkloadsSapDatabaseInstance

取得 SAP 資料庫實例資源。

語法

Get-AzWorkloadsSapDatabaseInstance
   -ResourceGroupName <String>
   -SapVirtualInstanceName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzWorkloadsSapDatabaseInstance
   -Name <String>
   -ResourceGroupName <String>
   -SapVirtualInstanceName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzWorkloadsSapDatabaseInstance
   -InputObject <ISapVirtualInstanceIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

取得 SAP 資料庫實例資源。

範例

範例 1:取得資料庫實例的概觀

Get-AzWorkloadsSapDatabaseInstance -ResourceGroupName DemoRGVIS -SapVirtualInstanceName DRT

Name ResourceGroupName ProvisioningState Location    Status  IPAddress DatabaseSid
---- ----------------- ----------------- --------    ------  --------- -----------
db0  DemoRGVIS         Succeeded         eastus2euap Running 10.0.0.6  XRT

此命令將協助您取得概觀,包括 SAP 解決方案虛擬實例中資料庫實例的健康情況和狀態

範例 2:取得資料庫實例的概觀

Get-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/DemoRGVIS/providers/Microsoft.Workloads/sapVirtualInstances/DRT/databaseInstances/db0

Name ResourceGroupName ProvisioningState Location    Status  IPAddress DatabaseSid
---- ----------------- ----------------- --------    ------  --------- -----------
db0  DemoRGVIS         Succeeded         eastus2euap Running 10.0.0.6  XRT

此命令將協助您取得概觀,包括資料庫實例虛擬實例中資料庫實例的健康情況和狀態,方法是使用資料庫實例的 Azure 資源識別符

參數

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

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

類型:ISapVirtualInstanceIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Name

模型化為參數的資料庫資源名稱字串,以便自動產生正常運作。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SapVirtualInstanceName

SAP 解決方案資源的虛擬實例名稱

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

目標訂用帳戶的標識碼。

類型:String[]
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

ISapVirtualInstanceIdentity

輸出

ISapDatabaseInstance

備註

別名

Get-AzVISDatabaseInstance