Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureStorSimpleResource

Get-AzureStorSimpleResource

microsoft.windowsazure.commands.storsimple.dll

Synopsis

Gets all resources that you created.

Syntax

Get-AzureStorSimpleResource [-ResourceName] [-Profile] [<CommonParameters>]

Detailed Description

The Get-AzureStorSimpleResource cmdlet gets all resources that you created by using Azure Portal. The cmdlet gets details you can use to connect to the resources.

Parameters

-Profile <Microsoft.Azure.Common.Authentication.Models.AzureProfile>

Specifies an Azure profile.

Aliases

none

Required?

false

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-ResourceName <System.String>

Specifies the name of the resource that this cmdlet gets.

Aliases

Name

Required?

false

Position

1

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

None

Return Type

IEnumerable<ResourceCredentials>, ResourceCredentials

Notes

None

Examples

Example 1: Get all resources

This command gets all the resources you created. In this example, there are three resources.

PS C:\>Get-AzureStorSimpleResource
VERBOSE: ClientRequestId: 5cd61b91-ef40-43b4-986d-156e06d2ed65_PS

ResourceName                                      ResourceId           ResourceState
------------                                      ----------           -------------
Contoso63-Tsqa                                    8838459798595306468  Started
Contoso68-Tsqa                                    2859070203638134681  Started
Contoso73-Tsqa                                    7871392677286863733  Started
Contoso87-Tsqa                                    1909806764156522689  Started
VERBOSE: Found 4 StorSimple resources. 

Example 2: Get a resource by using its name

This command gets the resource named Contoso63-Tsqa.

PS C:\>Get-AzureStorSimpleResource -ResourceName "Contoso63-Tsqa"
VERBOSE: ClientRequestId: efc3c85c-12aa-4345-b6eb-ccc532de4825_PS

ResourceName                                      ResourceId           ResourceState
------------                                      ----------           -------------
Contoso63-Tsqa                                    1909806764156522689  Started
VERBOSE: Found 1 StorSimple resource. 

Example 3: Attempt to get a nonexistent resource

This command attempts to get the resource named Contoso64-Tsqa. There is no resource that has this name. This example does not return any resource.

PS C:\>Get-AzureStorSimpleResource -ResourceName "Contoso64-Tsqa"
VERBOSE: ClientRequestId: 5d08d40b-f9d7-4d43-956f-13f01e89625b_PS
VERBOSE: Invalid input : Could not find a resource named Contoso64-Tsqa in your subscription. 

Get-AzureStorSimpleResourceContext
Select-AzureStorSimpleResource