Skip to content
Closed
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/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation create_

Creates a new Attestation Provider instance.

## Versions

### [2020-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdHRlc3RhdGlvbi9hdHRlc3RhdGlvbnByb3ZpZGVycy97fQ==/2020-10-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.attestation/attestationproviders/{} 2020-10-01 -->

#### examples

- AttestationProviders_Create
```bash
attestation create --name "myattestationprovider" --resource-group "MyResourceGroup" -l westus
```
16 changes: 16 additions & 0 deletions Commands/attestation/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation delete_

Delete Attestation Service.

## Versions

### [2020-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdHRlc3RhdGlvbi9hdHRlc3RhdGlvbnByb3ZpZGVycy97fQ==/2020-10-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.attestation/attestationproviders/{} 2020-10-01 -->

#### examples

- AttestationProviders_Delete
```bash
attestation delete --name "myattestationprovider" --resource-group "sample-resource-group"
```
16 changes: 16 additions & 0 deletions Commands/attestation/_get-default-by-location.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation get-default-by-location_

Get the default provider by location.

## Versions

### [2020-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdHRlc3RhdGlvbi9sb2NhdGlvbnMve30vZGVmYXVsdHByb3ZpZGVy/2020-10-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.attestation/locations/{}/defaultprovider 2020-10-01 -->

#### examples

- AttestationProviders_GetDefaultWithLocation
```bash
attestation get-default-by-location --location "Central US"
```
16 changes: 16 additions & 0 deletions Commands/attestation/_list-default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation list-default_

Get the default provider.

## Versions

### [2020-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdHRlc3RhdGlvbi9kZWZhdWx0cHJvdmlkZXJz/2020-10-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.attestation/defaultproviders 2020-10-01 -->

#### examples

- AttestationProviders_GetDefault
```bash
attestation list-default
```
22 changes: 22 additions & 0 deletions Commands/attestation/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# [Command] _attestation list_

Returns a list of attestation providers in a subscription.

## Versions

### [2020-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdHRlc3RhdGlvbi9hdHRlc3RhdGlvbnByb3ZpZGVycw==/2020-10-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.attestation/attestationproviders 2020-10-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.attestation/attestationproviders 2020-10-01 -->

#### examples

- AttestationProviders_ListByResourceGroup
```bash
attestation list --resource-group "testrg1"
```

- AttestationProviders_List
```bash
attestation list
```
16 changes: 16 additions & 0 deletions Commands/attestation/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation show_

Get the status of Attestation Provider.

## Versions

### [2020-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdHRlc3RhdGlvbi9hdHRlc3RhdGlvbnByb3ZpZGVycy97fQ==/2020-10-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.attestation/attestationproviders/{} 2020-10-01 -->

#### examples

- AttestationProviders_Get
```bash
attestation show --name "myattestationprovider" --resource-group "MyResourceGroup"
```
16 changes: 16 additions & 0 deletions Commands/attestation/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _attestation update_

Updates the Attestation Provider.

## Versions

### [2020-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdHRlc3RhdGlvbi9hdHRlc3RhdGlvbnByb3ZpZGVycy97fQ==/2020-10-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.attestation/attestationproviders/{} 2020-10-01 -->

#### examples

- AttestationProviders_Update
```bash
attestation update --name "myattestationprovider" --resource-group "MyResourceGroup" --tags Property1="Value1" Property2="Value2" Property3="Value3"
```
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.
34 changes: 34 additions & 0 deletions Commands/attestation/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# [Group] _attestation_

Manage Microsoft Azure Attestation (MAA).

## Subgroups

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

- [signer](/Commands/attestation/signer/readme.md)
: Manage signers.

## Commands

- [create](/Commands/attestation/_create.md)
: Creates a new Attestation Provider instance.

- [delete](/Commands/attestation/_delete.md)
: Delete Attestation Service.

- [get-default-by-location](/Commands/attestation/_get-default-by-location.md)
: Get the default provider by location.

- [list](/Commands/attestation/_list.md)
: Returns a list of attestation providers in a subscription.

- [list-default](/Commands/attestation/_list-default.md)
: Get the default provider.

- [show](/Commands/attestation/_show.md)
: Get the status of Attestation Provider.

- [update](/Commands/attestation/_update.md)
: Updates the Attestation Provider.
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