Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Commands/attestation/policy/_reset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation policy reset_

Resets the attestation policy for the specified tenant and reverts to the default policy.

## Versions

### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.xml) **Stable**

<!-- data-plane:microsoft.attestation /policies/{}:reset 2022-08-01 -->

#### examples

- Resets the attestation policy for the specified tenant and reverts to the default policy.
```bash
attestation policy reset -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --policy-jws "eyJhbGciOiJub25lIn0.."
```
26 changes: 26 additions & 0 deletions Commands/attestation/policy/_set.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [Command] _attestation policy set_

Sets the policy for a given kind of attestation type.

## Versions

### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml) **Stable**

<!-- data-plane:microsoft.attestation /policies/{} 2022-08-01 -->

#### examples

- Sets the policy for a given kind of attestation type using JWT content.
```bash
attestation policy set -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy "{JWT}" --policy-format JWT
```

- Sets the policy for a given kind of attestation type using Text content.
```bash
attestation policy set -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy "{json_text}"
```

- Sets the policy for a given kind of attestation type using file name.
```bash
attestation policy set -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy-file "{file_name}" --policy- format JWT
```
16 changes: 16 additions & 0 deletions Commands/attestation/policy/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation policy show_

Retrieves the current policy for a given kind of attestation type.

## Versions

### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml) **Stable**

<!-- data-plane:microsoft.attestation /policies/{} 2022-08-01 -->

#### examples

- Retrieves the current policy for a given kind of attestation type.
```bash
attestation policy show -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK
```
9 changes: 9 additions & 0 deletions Commands/attestation/policy/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _attestation policy update_

Update the policy for a given attestation type.

## Versions

### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml) **Stable**

<!-- data-plane:microsoft.attestation /policies/{} 2022-08-01 -->
17 changes: 17 additions & 0 deletions Commands/attestation/policy/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Group] _attestation policy_

Manage policies.

## Commands

- [reset](/Commands/attestation/policy/_reset.md)
: Resets the attestation policy for the specified tenant and reverts to the default policy.

- [set](/Commands/attestation/policy/_set.md)
: Sets the policy for a given kind of attestation type.

- [show](/Commands/attestation/policy/_show.md)
: Retrieves the current policy for a given kind of attestation type.

- [update](/Commands/attestation/policy/_update.md)
: Update the policy for a given attestation type.
11 changes: 11 additions & 0 deletions Commands/attestation/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Group] _attestation_

Manage Microsoft Azure Attestation (MAA).

## Subgroups

- [policy](/Commands/attestation/policy/readme.md)
: Manage policies.

- [signer](/Commands/attestation/signer/readme.md)
: Manage signers.
16 changes: 16 additions & 0 deletions Commands/attestation/signer/_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation signer add_

Adds a new attestation policy certificate to the set of policy management certificates.

## Versions

### [2022-08-01](/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.xml) **Stable**

<!-- data-plane:microsoft.attestation /certificates:add 2022-08-01 -->

#### examples

- Adds a new attestation policy certificate to the set of policy management certificates.
```bash
attestation signer add -n "myattestationprovider" -g "MyResourceGroup" --signer "eyAiYWxnIjoiUlMyNTYiLCAie..."
```
16 changes: 16 additions & 0 deletions Commands/attestation/signer/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation signer list_

Retrieves the set of certificates used to express policy for the current tenant.

## Versions

### [2022-08-01](/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.xml) **Stable**

<!-- data-plane:microsoft.attestation /certificates 2022-08-01 -->

#### examples

- Retrieves the set of certificates used to express policy for the current tenant.
```bash
attestation signer list -n "myattestationprovider" -g "MyResourceGroup"
```
16 changes: 16 additions & 0 deletions Commands/attestation/signer/_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation signer remove_

Removes the specified policy management certificate.

## Versions

### [2022-08-01](/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.xml) **Stable**

<!-- data-plane:microsoft.attestation /certificates:remove 2022-08-01 -->

#### examples

- Removes the specified policy management certificate.
```bash
attestation signer remove -n "myattestationprovider" -g "MyResourceGroup" --signer "eyAiYWxnIjoiUlMyNTYiLCAie..."
```
14 changes: 14 additions & 0 deletions Commands/attestation/signer/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# [Group] _attestation signer_

Manage signers.

## Commands

- [add](/Commands/attestation/signer/_add.md)
: Adds a new attestation policy certificate to the set of policy management certificates.

- [list](/Commands/attestation/signer/_list.md)
: Retrieves the set of certificates used to express policy for the current tenant.

- [remove](/Commands/attestation/signer/_remove.md)
: Removes the specified policy management certificate.
3 changes: 3 additions & 0 deletions Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
- [apic](/Commands/apic/readme.md)
: API Center

- [attestation](/Commands/attestation/readme.md)
: Manage Microsoft Azure Attestation (MAA).

- [automanage](/Commands/automanage/readme.md)
: Manage Automanage

Expand Down
Loading