編集

次の方法で共有


Get-AzWebPubSub

Get the resource and its properties.

Syntax

Get-AzWebPubSub
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzWebPubSub
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzWebPubSub
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzWebPubSub
   -InputObject <IWebPubSubIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Get the resource and its properties.

Examples

Example 1: List all Web PubSub resources in a subscription

Get-AzWebPubSub -SubscriptionId ef72249e-9785-4799-a76b-7cdd80e1b1d0

Name                Location      SkuName
----                --------      -------
demo1               eastus        Standard_S1
demo2               eastus        Free_F1

Example 2: List all Web PubSub resources in a resource group

Get-AzWebPubSub -ResourceGroupName psdemo

Name       Location SkuName
----       -------- -------
psdemo-wps eastus   Standard_S1

Example 3: Get a specific Web PubSub resource

Get-AzWebPubSub -ResourceGroupName psdemo -Name psdemo-wps

Name       Location SkuName
----       -------- -------
psdemo-wps eastus   Standard_S1

Example 4: Get a specific Web PubSub resource via identity object

$identity = @{ ResourceGroupName = 'psdemo'
ResourceName = 'psdemo-wps'
SubscriptionId = $(Get-AzContext).Subscription.Id }

$identity | Get-AzWebPubSub

Name       Location SkuName
----       -------- -------
psdemo-wps eastus   Standard_S1

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

-Name

The name of the resource.

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

-ResourceGroupName

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

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

-SubscriptionId

Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IWebPubSubIdentity

Outputs

IWebPubSubResource