You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/attestation/azure-mgmt-attestation/README.md
+60-4
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,77 @@ For a more complete view of Azure libraries, see the [azure sdk python release](
8
8
9
9
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
10
10
11
-
#Usage
11
+
## Getting Started
12
12
13
+
### Prerequsites
14
+
```shell
15
+
pip install azure-identity
16
+
pip install azure-mgmt-attestation
17
+
```
18
+
19
+
Before running the examples, please set the values of the client ID, tenant ID and client secret
20
+
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
21
+
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15
27
16
28
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
17
29
Code samples for this package can be found at [Attestation Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
18
30
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
19
31
20
32
21
-
# Provide Feedback
33
+
## Examples
34
+
35
+
### List Attestation Providers
36
+
```python
37
+
from azure.core.exceptions import ClientAuthenticationError
38
+
from azure.identity import DefaultAzureCredential
39
+
from azure.mgmt.attestation import AttestationManagementClient
The CredentialUnavailableError is a specific error type derived from ClientAuthenticationError. This error type is used to indicate that the credential can't authenticate in the current environment, due to missing required configuration or setup. This error is also used as an indication for chained credential types, such as DefaultAzureCredential and ChainedTokenCredential, that the chained credential should continue to attempt other credential types later in the chain.
54
+
55
+
### Permission issues
56
+
Service client calls that result in HttpResponseError with a StatusCode of 401 or 403 often indicate the caller doesn't have sufficient permissions for the specified API. Check the [service documentation](https://learn.microsoft.com/azure/attestation/) to determine which RBAC roles are needed for the specific request, and ensure the authenticated user or service principal have been granted the appropriate roles on the resource.
57
+
58
+
## Next Steps
22
59
23
60
If you encounter any bugs or have suggestions, please file an issue in the
0 commit comments