Szerkesztés

Megosztás a következőn keresztül:


Get-AzWorkloadsProviderInstance

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and resource name.

Syntax

Get-AzWorkloadsProviderInstance
   -MonitorName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzWorkloadsProviderInstance
   -MonitorName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzWorkloadsProviderInstance
   -InputObject <IWorkloadsIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and resource name.

Examples

Example 1: List all providers in an AMS Instance

Get-AzWorkloadsProviderInstance -ResourceGroupName ad-ams-rg -MonitorName ad-ams

Name              ResourceGroupName ProvisioningState IdentityType
----              ----------------- ----------------- ------------
Hana-1-test       ad-ams-rg         Failed            
hana-test-2       ad-ams-rg         Succeeded         
prov-1            ad-ams-rg         Failed            
hana-test         ad-ams-rg         Failed            
SAP-NETWEAVER     ad-ams-rg         Failed            
HA3-HANA-HighAvl  ad-ams-rg         Succeeded         
lh-28022023-host  ad-ams-rg         Failed            
as1-sysdb         ad-ams-rg         Succeeded         
h2-test           ad-ams-rg         Failed

List all the providers created for an AMS Instance

Example 2: Get information about an AMS Provider

Get-AzWorkloadsProviderInstance -ResourceGroupName ad-ams-rg -MonitorName ad-ams -Name hana-test-2

Name        ResourceGroupName ProvisioningState IdentityType
----        ----------------- -----------------  ------------
hana-test-2 ad-ams-rg         Succeeded

Gets information about a specific AMS Provider

Example 3: Get information about an AMS Provider by Id

Get-AzWorkloadsProviderInstance -InputObject "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/suha-0802-rg1/providers/Microsoft.Workloads/monitors/ams_mon/providerInstances/suha-db2-1"

Name       ResourceGroupName ProvisioningState IdentityType
----       ----------------- ----------------- ------------
suha-db2-1 suha-0802-rg1     Succeeded

Get information about an AMS Provider by ArmId

Parameters

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

-MonitorName

Name of the SAP monitor resource.

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

-Name

Name of the provider instance.

Type:String
Aliases:ProviderInstanceName
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

-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

Inputs

IWorkloadsIdentity

Outputs

IProviderInstance