|
1 | 1 | # Microsoft Azure SDK for Python
|
2 | 2 |
|
3 |
| -This is the Microsoft Azure App Platform Management Client Library. |
4 |
| -This package has been tested with Python 3.8+. |
5 |
| -For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). |
6 |
| - |
7 |
| -## _Disclaimer_ |
8 |
| - |
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 |
| - |
11 |
| -## Getting started |
12 |
| - |
13 |
| -### Prerequisites |
14 |
| - |
15 |
| -- Python 3.8+ is required to use this package. |
16 |
| -- [Azure subscription](https://azure.microsoft.com/free/) |
17 |
| - |
18 |
| -### Install the package |
19 |
| - |
20 |
| -```bash |
21 |
| -pip install azure-mgmt-appplatform |
22 |
| -pip install azure-identity |
23 |
| -``` |
24 |
| - |
25 |
| -### Authentication |
26 |
| - |
27 |
| -By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables. |
28 |
| - |
29 |
| -- `AZURE_CLIENT_ID` for Azure client ID. |
30 |
| -- `AZURE_TENANT_ID` for Azure tenant ID. |
31 |
| -- `AZURE_CLIENT_SECRET` for Azure client secret. |
32 |
| - |
33 |
| -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. |
34 |
| - |
35 |
| -With above configuration, client can be authenticated by following code: |
36 |
| - |
37 |
| -```python |
38 |
| -from azure.identity import DefaultAzureCredential |
39 |
| -from azure.mgmt.appplatform import AppPlatformManagementClient |
40 |
| -import os |
41 |
| - |
42 |
| -sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") |
43 |
| -client = AppPlatformManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id) |
44 |
| -``` |
45 |
| - |
46 |
| -## Examples |
47 |
| - |
48 |
| -Code samples for this package can be found at: |
49 |
| -- [Search App Platform Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com |
50 |
| -- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples) |
51 |
| - |
52 |
| - |
53 |
| -## Troubleshooting |
54 |
| - |
55 |
| -## Next steps |
56 |
| - |
57 |
| -## Provide Feedback |
58 |
| - |
59 |
| -If you encounter any bugs or have suggestions, please file an issue in the |
60 |
| -[Issues](https://github.com/Azure/azure-sdk-for-python/issues) |
61 |
| -section of the project. |
| 3 | +This package has been deprecated and will no longer be maintained after 03-31-2025. This package will only receive security fixes until 03-31-2025. For more information, see the [Azure Spring Apps retirement announcement](https://aka.ms/asaretirement). |
0 commit comments