Get-MgmtSvcResourceProvider

Gets a resource provider from the management store database.

Syntax

Get-MgmtSvcResourceProvider
   [[-Name] <String[]>]
   [-IncludeSystemResourceProviders]
   [-AdminUri] <Uri>
   [-Token] <String>
   [-DisableCertificateValidation]
   [<CommonParameters>]

Description

The Get-ResourceProvider cmdlet gets a resource provider entry from a management store database. By default, this cmdlet returns all resource providers. To get a specific resource provider, use the Name parameter.

You can run this cmdlet from any machine in the deployment.

Examples

Example 1: Get all resource providers

PS C:\> Get-MgmtSvcResourceProvider -AdminUri "https://Computer01:30004" -Token $Token

NOTE: This example assumes that you have created a token by using Get-MgmtSvcToken and have stored it in a variable named $Token.

Example 2: Get a specific resource provider by its name

PS C:\> Get-MgmtSvcResourceProvider -AdminUri https://Computer01:30004 -Token $Token -Name "ResourceProvider02"

NOTE: This example assumes that you have created a token by using Get-MgmtSvcToken and have stored it in a variable named $Token.

Parameters

-AdminUri

Specifies the URI of the Windows Azure Pack administrator API. Use the following format: https://<computer>:<port>, where <computer> is the computer on which the administrator API is installed.

Type:Uri
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DisableCertificateValidation

Disables certificate validation for the Windows Azure Pack installation.

If you specify this parameter, you can use self-signed certificates.

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

-IncludeSystemResourceProviders

Indicates that the system resource providers are returned.

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

-Name

Specifies an array of names of resource providers. You can use wildcard characters.

Type:String[]
Position:2
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Token

Specifies an identity token. To create a token, use the Get-MgmtSvcToken cmdlet.

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