Edit

Share via


Get-AzAttestationDefaultProvider

Get the default provider by location.

Syntax

List (Default)

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

Get

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

GetViaIdentity

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.

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

Parameter properties

Type:IAttestationIdentity
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

-Location

The location of the default provider.

Parameter properties

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

Parameter sets

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

IAttestationIdentity

Outputs

IAttestationProvider

IAttestationProviderListResult