diff --git a/sdk/tables/azure-data-tables/README.md b/sdk/tables/azure-data-tables/README.md index 556a8029c6c0..80eb8b016c94 100644 --- a/sdk/tables/azure-data-tables/README.md +++ b/sdk/tables/azure-data-tables/README.md @@ -105,7 +105,7 @@ with TableServiceClient.from_connection_string(conn_str=connection_string) as ta ``` ##### Creating the client from a SAS token -To use a [shared access signature (SAS) token][azure_sas_token], provide the token as a string. If your account URL includes the SAS token, omit the credential parameter. You can generate a SAS token from the Azure Portal under [Shared access signature](https://docs.microsoft.com/rest/api/storageservices/create-service-sas) or use one of the `generate_*_sas()` functions to create a sas token for the account or table: +To use a [shared access signature (SAS) token][azure_sas_token], provide the token as a string. If your account URL includes the SAS token, omit the credential parameter. You can generate a SAS token from the Azure Portal under [Shared access signature](https://learn.microsoft.com/rest/api/storageservices/create-service-sas) or use one of the `generate_*_sas()` functions to create a sas token for the account or table: ```python from datetime import datetime, timedelta @@ -363,7 +363,7 @@ These code samples show common scenario operations with the Azure Tables client * Committing many requests in a single transaction: [sample_batching.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_batching.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_batching_async.py)) ### Additional documentation -For more extensive documentation on Azure Tables, see the [Azure Tables documentation][Tables_product_doc] on docs.microsoft.com. +For more extensive documentation on Azure Tables, see the [Azure Tables documentation][Tables_product_doc] on learn.microsoft.com. ## Known Issues A list of currently known issues relating to Cosmos DB table endpoints can be found [here](https://aka.ms/tablesknownissues). @@ -378,29 +378,29 @@ This project has adopted the [Microsoft Open Source Code of Conduct][msft_oss_co [source_code]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables [Tables_pypi]:https://aka.ms/azsdk/python/tablespypi -[Tables_ref_docs]:https://docs.microsoft.com/python/api/overview/azure/data-tables-readme?view=azure-python -[Tables_product_doc]:https://docs.microsoft.com/azure/cosmos-db/table-introduction +[Tables_ref_docs]:https://learn.microsoft.com/python/api/overview/azure/data-tables-readme?view=azure-python +[Tables_product_doc]:https://learn.microsoft.com/azure/cosmos-db/table-introduction [Tables_samples]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples [migration_guide]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/migration_guide.md [azure_subscription]:https://azure.microsoft.com/free/ -[azure_storage_account]:https://docs.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-portal -[azure_cosmos_account]:https://docs.microsoft.com/azure/cosmos-db/create-cosmosdb-resources-portal +[azure_storage_account]:https://learn.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-portal +[azure_cosmos_account]:https://learn.microsoft.com/azure/cosmos-db/create-cosmosdb-resources-portal [pip_link]:https://pypi.org/project/pip/ -[azure_create_cosmos]:https://docs.microsoft.com/azure/cosmos-db/create-cosmosdb-resources-portal -[azure_cli_create_cosmos]:https://docs.microsoft.com/azure/cosmos-db/scripts/cli/table/create -[azure_portal_create_cosmos]:https://docs.microsoft.com/azure/cosmos-db/create-cosmosdb-resources-portal -[azure_portal_create_account]:https://docs.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-portal -[azure_powershell_create_account]:https://docs.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-powershell -[azure_cli_create_account]: https://docs.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-cli +[azure_create_cosmos]:https://learn.microsoft.com/azure/cosmos-db/create-cosmosdb-resources-portal +[azure_cli_create_cosmos]:https://learn.microsoft.com/azure/cosmos-db/scripts/cli/table/create +[azure_portal_create_cosmos]:https://learn.microsoft.com/azure/cosmos-db/create-cosmosdb-resources-portal +[azure_portal_create_account]:https://learn.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-portal +[azure_powershell_create_account]:https://learn.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-powershell +[azure_cli_create_account]: https://learn.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-cli -[azure_cli_account_url]:https://docs.microsoft.com/cli/azure/storage/account?view=azure-cli-latest#az-storage-account-show -[azure_powershell_account_url]:https://docs.microsoft.com/powershell/module/az.storage/get-azstorageaccount?view=azps-4.6.1 -[azure_portal_account_url]:https://docs.microsoft.com/azure/storage/common/storage-account-overview#storage-account-endpoints +[azure_cli_account_url]:https://learn.microsoft.com/cli/azure/storage/account?view=azure-cli-latest#az-storage-account-show +[azure_powershell_account_url]:https://learn.microsoft.com/powershell/module/az.storage/get-azstorageaccount?view=azps-4.6.1 +[azure_portal_account_url]:https://learn.microsoft.com/azure/storage/common/storage-account-overview#storage-account-endpoints -[azure_sas_token]:https://docs.microsoft.com/azure/storage/common/storage-sas-overview -[azure_shared_key]:https://docs.microsoft.com/rest/api/storageservices/authorize-with-shared-key +[azure_sas_token]:https://learn.microsoft.com/azure/storage/common/storage-sas-overview +[azure_shared_key]:https://learn.microsoft.com/rest/api/storageservices/authorize-with-shared-key [odata_syntax]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/README.md#writing-filters @@ -408,13 +408,13 @@ This project has adopted the [Microsoft Open Source Code of Conduct][msft_oss_co [azure_core_readme]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md [python_logging]: https://docs.python.org/3/library/logging.html -[tables_error_codes]: https://docs.microsoft.com/rest/api/storageservices/table-service-error-codes +[tables_error_codes]: https://learn.microsoft.com/rest/api/storageservices/table-service-error-codes [msft_oss_coc]:https://opensource.microsoft.com/codeofconduct/ [msft_oss_coc_faq]:https://opensource.microsoft.com/codeofconduct/faq/ [contact_msft_oss]:mailto:opencode@microsoft.com -[tables_rest]: https://docs.microsoft.com/rest/api/storageservices/table-service-rest-api +[tables_rest]: https://learn.microsoft.com/rest/api/storageservices/table-service-rest-api [create_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py#L67-L73 [delete_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py#L89-L92 diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_authentication.py b/sdk/tables/azure-data-tables/azure/data/tables/_authentication.py index 6c99c2371d21..778b8bf5e310 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_authentication.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_authentication.py @@ -26,7 +26,7 @@ class AzureSigningError(ClientAuthenticationError): """ Represents a fatal error when attempting to sign a request. In general, the cause of this exception is user error. For example, the given account key is not valid. - Please visit https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account for more info. + Please visit https://learn.microsoft.com/azure/storage/common/storage-create-storage-account for more info. """ @@ -160,7 +160,7 @@ def _get_canonicalized_resource_query(self, request): class BearerTokenChallengePolicy(BearerTokenCredentialPolicy): """Adds a bearer token Authorization header to requests, for the tenant provided in authentication challenges. - See https://docs.microsoft.com/azure/active-directory/develop/claims-challenge for documentation on AAD + See https://learn.microsoft.com/azure/active-directory/develop/claims-challenge for documentation on AAD authentication challenges. :param credential: The credential. diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_models.py b/sdk/tables/azure-data-tables/azure/data/tables/_models.py index 54563c9b0add..e59d798d8d8e 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_models.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_models.py @@ -522,7 +522,7 @@ def __repr__(self) -> str: class TablePayloadFormat(object): """ Specifies the accepted content type of the response payload. More information - can be found here: https://msdn.microsoft.com/en-us/library/azure/dn535600.aspx + can be found here: https://msdn.microsoft.com/library/azure/dn535600.aspx """ JSON_NO_METADATA = "application/json;odata=nometadata" diff --git a/sdk/tables/azure-data-tables/azure/data/tables/aio/_authentication_async.py b/sdk/tables/azure-data-tables/azure/data/tables/aio/_authentication_async.py index 7a4569f18946..494553768346 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/aio/_authentication_async.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/aio/_authentication_async.py @@ -17,7 +17,7 @@ class AsyncBearerTokenChallengePolicy(AsyncBearerTokenCredentialPolicy): """Adds a bearer token Authorization header to requests, for the tenant provided in authentication challenges. - See https://docs.microsoft.com/azure/active-directory/develop/claims-challenge for documentation on AAD + See https://learn.microsoft.com/azure/active-directory/develop/claims-challenge for documentation on AAD authentication challenges. :param credential: The credential. diff --git a/sdk/tables/azure-data-tables/samples/README.md b/sdk/tables/azure-data-tables/samples/README.md index 0b3a01420685..9bef9a7f6244 100644 --- a/sdk/tables/azure-data-tables/samples/README.md +++ b/sdk/tables/azure-data-tables/samples/README.md @@ -32,7 +32,7 @@ These sample programs show common scenarios for the Tables client's offerings. ### Prerequisites * Python 3.8 or later is required to use this package. * You must have an [Azure subscription](https://azure.microsoft.com/free/) and either an -[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) or an [Azure Cosmos Account](https://docs.microsoft.com/azure/cosmos-db/account-overview) to use this package. +[Azure storage account](https://learn.microsoft.com/azure/storage/common/storage-account-overview) or an [Azure Cosmos Account](https://learn.microsoft.com/azure/cosmos-db/account-overview) to use this package. ## Setup @@ -150,8 +150,8 @@ what you can do with the Azure Data Tables client library. -[api_reference_documentation]: https://docs.microsoft.com/rest/api/storageservices/table-service-rest-api -[query_reference_documentation]: https://docs.microsoft.com/rest/api/storageservices/querying-tables-and-entities +[api_reference_documentation]: https://learn.microsoft.com/rest/api/storageservices/table-service-rest-api +[query_reference_documentation]: https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities [sample_authentication]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_authentication.py [sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py diff --git a/sdk/tables/azure-data-tables/tests/test_challenge_auth.py b/sdk/tables/azure-data-tables/tests/test_challenge_auth.py index 383e34937a66..434c0b2da369 100644 --- a/sdk/tables/azure-data-tables/tests/test_challenge_auth.py +++ b/sdk/tables/azure-data-tables/tests/test_challenge_auth.py @@ -35,7 +35,7 @@ def test_challenge_auth_supported_version(self, tables_storage_account_name): Recorded using an incorrect tenant for the credential provided to our client. To run this live, ensure that the service principal used for testing is enabled for multitenant authentication - (https://docs.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the + (https://learn.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the TABLES_TENANT_ID environment variable to a different, existing tenant than the one the storage account exists in, and set CHALLENGE_TABLES_TENANT_ID to the tenant that the storage account exists in. """ @@ -57,7 +57,7 @@ def test_challenge_auth_unsupported_version(self, tables_storage_account_name): Recorded using an incorrect tenant for the credential provided to our client. To run this live, ensure that the service principal used for testing is enabled for multitenant authentication - (https://docs.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the + (https://learn.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the TABLES_TENANT_ID environment variable to a different, existing tenant than the one the storage account exists in, and set CHALLENGE_TABLES_TENANT_ID to the tenant that the storage account exists in. """ diff --git a/sdk/tables/azure-data-tables/tests/test_challenge_auth_async.py b/sdk/tables/azure-data-tables/tests/test_challenge_auth_async.py index 3fb59b77453f..af8cda2c9e9b 100644 --- a/sdk/tables/azure-data-tables/tests/test_challenge_auth_async.py +++ b/sdk/tables/azure-data-tables/tests/test_challenge_auth_async.py @@ -38,7 +38,7 @@ async def test_challenge_auth_supported_version(self, tables_storage_account_nam Recorded using an incorrect tenant for the credential provided to our client. To run this live, ensure that the service principal used for testing is enabled for multitenant authentication - (https://docs.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the + (https://learn.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the TABLES_TENANT_ID environment variable to a different, existing tenant than the one the storage account exists in, and set CHALLENGE_TABLES_TENANT_ID to the tenant that the storage account exists in. """ @@ -60,7 +60,7 @@ async def test_challenge_auth_unsupported_version(self, tables_storage_account_n Recorded using an incorrect tenant for the credential provided to our client. To run this live, ensure that the service principal used for testing is enabled for multitenant authentication - (https://docs.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the + (https://learn.microsoft.com/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant). Set the TABLES_TENANT_ID environment variable to a different, existing tenant than the one the storage account exists in, and set CHALLENGE_TABLES_TENANT_ID to the tenant that the storage account exists in. """