你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzAttestationDefaultProvider

Get the default provider by location.

Syntax

Get-AzAttestationDefaultProvider
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAttestationDefaultProvider
   -Location <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzAttestationDefaultProvider
   -InputObject <IAttestationIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Get the default provider by location.

Examples

Example 1: Get the default provider by location

Get-AzAttestationDefaultProvider -Location "East US"

Get-AzAttestationDefaultProvider -Location "East US"

Location Name      ResourceGroupName
-------- ----      -----------------
east us  sharedeus

This command gets the default provider in "East US".

Example 2: List default providers

Get-AzAttestationDefaultProvider

SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Value                        : {{
                                 "id": "/providers/Microsoft.Attestation/attestationProviders/sharedeus2",
                                 "name": "sharedeus2",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "location": "East US 2",
                                 "properties": {
                                   "trustModel": "AAD",
                                   "status": "Ready",
                                   "attestUri": "https://sharedeus2.eus2.attest.azure.net"
                                 }
                               }, {
                                 "id": "/providers/Microsoft.Attestation/attestationProviders/sharedcus",
                                 "name": "sharedcus",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "location": "Central US",
                                 "properties": {
                                   "trustModel": "AAD",
                                   "status": "Ready",
                                   "attestUri": "https://sharedcus.cus.attest.azure.net"
                                 }
                               }, {
                                 "id": "/providers/Microsoft.Attestation/attestationProviders/shareduks",
                                 "name": "shareduks",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "location": "UK South",
                                 "properties": {
                                   "trustModel": "AAD",
                                   "status": "Ready",
                                   "attestUri": "https://shareduks.uks.attest.azure.net"
                                 }
                               }, {
                                 "id": "/providers/Microsoft.Attestation/attestationProviders/sharedeus",
                                 "name": "sharedeus",
                                 "type": "Microsoft.Attestation/attestationProviders",
                                 "location": "east us",
                                 "properties": {
                                   "trustModel": "AAD",
                                   "status": "Ready",
                                   "attestUri": "https://sharedeus.eus.attest.azure.net"
                                 }
                               }…}

This commands lists default providers.

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

-Location

The location of the default provider.

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

IAttestationIdentity

Outputs

IAttestationProvider

IAttestationProviderListResult