Edit

Share via


Get-AzWorkloadsProviderInstance

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

Syntax

List (Default)

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

Get

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

GetViaIdentity

Get-AzWorkloadsProviderInstance
    -InputObject <IMonitorsIdentity>
    [-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.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

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

Parameter properties

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

Parameter sets

GetViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-MonitorName

Name of the SAP monitor resource.

Parameter properties

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

Parameter sets

List
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Name of the provider instance.

Parameter properties

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

Parameter sets

Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

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

Parameter properties

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

Parameter sets

List
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The ID of the target subscription.

Parameter properties

Type:

String[]

Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

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

IMonitorsIdentity

Outputs

IProviderInstance