Delen via


Set-AzAttestationPolicy

Hiermee stelt u het beleid van een tenant in Azure Attestationn in.

Syntax

Set-AzAttestationPolicy
   [-Name] <String>
   [-ResourceGroupName] <String>
   -Tee <String>
   -Policy <String>
   [-PolicyFormat <String>]
   [-PassThru]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzAttestationPolicy
   [-ResourceId] <String>
   -Tee <String>
   -Policy <String>
   [-PolicyFormat <String>]
   [-PassThru]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

De cmdlet Set-AzAttestationPolicy stelt het beleid in vanuit een tenant in Azure Attestation.

Voorbeelden

Voorbeeld 1

$policy = Get-Content -Path .\custom.sgx.policy.txt
Set-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave -Policy $policy

Hiermee stelt u het door de gebruiker gedefinieerde beleid voor TEE-type SgxEnclave voor Attestation Provider pshtest in met behulp van een tekstbeleidsindeling (standaard).

Voorbeeld 2

$policyjwt = Get-Content -Path .\custom.sgx.policy.jwt.format.txt
Set-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave -Policy $policyjwt -PolicyFormat JWT

Hiermee stelt u het door de gebruiker gedefinieerde beleid voor TEE-type SgxEnclave voor Attestation Provider pshtest in met behulp van een JWT-beleidsindeling.

Parameters

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

Type:SwitchParameter
Aliases:cf
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Hiermee geeft u een naam van de tenant. Met deze cmdlet stelt u het attestation-beleid in voor de tenant die met deze parameter wordt opgegeven.

Type:String
Position:0
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Met deze cmdlet wordt standaard geen object geretourneerd. Als deze schakeloptie is opgegeven, wordt waar geretourneerd als deze is geslaagd.

Type:SwitchParameter
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-Policy

Hiermee geeft u het beleidsdocument op dat moet worden ingesteld. De beleidsindeling kan Tekst of JSON Web Token (JWT) zijn.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-PolicyFormat

Hiermee geeft u de indeling voor het beleid op, tekst of JWT (JSON-webtoken). De standaardbeleidsindeling is Tekst.

Type:String
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Hiermee geeft u de naam van de resourcegroep van een attestation-provider op.

Type:String
Position:1
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceId

Hiermee geeft u de ResourceID van een attestation-provider.

Type:String
Position:0
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-Tee

Hiermee geeft u een type vertrouwde uitvoeringsomgeving. Vier soorten omgevingen worden ondersteund: SgxEnclave, OpenEnclave, CyResComponent en VBSEnclave.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

Type:SwitchParameter
Aliases:wi
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

String

Uitvoerwaarden

String