-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add missing headers to azure-attestation\README.md #33981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,21 +8,80 @@ For a more complete view of Azure libraries, see the [azure sdk python release]( | |
|
|
||
| _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_ | ||
|
|
||
| # Usage | ||
| ## Getting Started | ||
|
|
||
| ### Prerequsites | ||
| ```shell | ||
| pip install azure-identity | ||
| pip install azure-mgmt-attestation | ||
| ``` | ||
|
|
||
| Before running the examples, please set the values of the client ID, tenant ID and client secret | ||
| of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, | ||
| AZURE_CLIENT_SECRET. For more info about how to get the value, please see: | ||
| https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal | ||
|
|
||
|
|
||
| ### Resources | ||
| To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt) | ||
|
|
||
| For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/) | ||
| 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. | ||
| Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples) | ||
|
|
||
| ## Key Concepts | ||
| Content TBD | ||
mwynne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Examples | ||
|
|
||
| ### List Attestation Providers | ||
| ```python | ||
| from azure.core.exceptions import ClientAuthenticationError | ||
| from azure.identity import DefaultAzureCredential | ||
| from azure.mgmt.attestation import AttestationManagementClient | ||
|
|
||
| client = AttestationManagementClient( | ||
| credential=DefaultAzureCredential(), | ||
| subscription_id="00000000-0000-0000-0000-000000000000", | ||
| ) | ||
|
|
||
| response = client.attestation_providers.list() | ||
| print(response) | ||
| ``` | ||
| TBC | ||
mwynne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Troubleshooting | ||
|
|
||
| ### CredentialUnavailableError | ||
| 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. | ||
|
|
||
| # Provide Feedback | ||
| ### Permission issues | ||
| 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 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. | ||
mwynne marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Next Steps | ||
|
|
||
| If you encounter any bugs or have suggestions, please file an issue in the | ||
| [Issues](https://github.com/Azure/azure-sdk-for-python/issues) | ||
| section of the project. | ||
|
|
||
| section of the project. | ||
|
|
||
|  | ||
|
|
||
|
|
||
| ## Contributing | ||
|
|
||
| This project welcomes contributions and suggestions. Most contributions require | ||
| you to agree to a Contributor License Agreement (CLA) declaring that you have | ||
| the right to, and actually do, grant us the rights to use your contribution. | ||
| For details, visit [https://cla.microsoft.com](https://cla.microsoft.com). | ||
|
|
||
| When you submit a pull request, a CLA-bot will automatically determine whether | ||
| you need to provide a CLA and decorate the PR appropriately (e.g., label, | ||
| comment). Simply follow the instructions provided by the bot. You will only | ||
| need to do this once across all repos using our CLA. | ||
|
|
||
| This project has adopted the | ||
| [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). | ||
| For more information, see the | ||
| [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) | ||
| or contact [[email protected]](mailto:[email protected]) with any | ||
| additional questions or comments. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.