你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Reset-AzAttestationPolicy
从 Azure 证明n 中的租户重置策略。}
语法
Reset-AzAttestationPolicy
[-Name] <String>
[-ResourceGroupName] <String>
-Tee <String>
[-Policy <String>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Reset-AzAttestationPolicy
[-ResourceId] <String>
-Tee <String>
[-Policy <String>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Reset-AzAttestationPolicy cmdlet 从 Azure 证明中的租户重置用户定义的证明策略。
示例
示例 1
Reset-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave
将策略重置为 Tee 类型 SgxEnclavepshtest 的默认值。
示例 2
$resetJwt = Get-Content -Path .\reset.policy.txt.signed.txt
Reset-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave -Policy $resetJwt
如果将证明提供程序 pshtest 配置为使用隔离的信任模型,请通过包括已签名的策略将 Tee 类型 SgxEnclave 重置为默认值。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
指定租户的名称。 此 cmdlet 重置此参数所指定的租户的证明策略。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-PassThru
默认情况下,此 Cmdlet 不返回对象。 如果指定了此开关,则如果成功,则返回 true。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Policy
指定要重置的策略文档的 JSON Web 令牌。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
指定证明提供程序的资源组名称。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceId
指定证明提供程序的 ResourceID。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Tee
指定受信任的执行环境的类型。 支持四种类型的环境:SgxEnclave、OpenEnclave、CyResComponent 和 VBSEnclave。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |