From d1ce446ca49a2d2dce4fda433bd75b4f398cf877 Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Wed, 22 Jan 2025 09:25:23 -0800 Subject: [PATCH] Fix urls (#39246) --- sdk/cosmos/azure-cosmos/CHANGELOG.md | 10 ++-- sdk/cosmos/azure-cosmos/README.md | 46 +++++++++---------- .../azure/cosmos/aio/_database.py | 4 +- .../azure-cosmos/azure/cosmos/database.py | 4 +- .../azure/cosmos/partition_key.py | 2 +- sdk/cosmos/azure-cosmos/doc/setup.md | 2 +- sdk/cosmos/azure-cosmos/samples/README.md | 2 +- .../samples/access_cosmos_with_aad.py | 2 +- .../samples/access_cosmos_with_aad_async.py | 2 +- .../access_cosmos_with_resource_token.py | 2 +- ...access_cosmos_with_resource_token_async.py | 2 +- .../samples/change_feed_management.py | 2 +- .../samples/change_feed_management_async.py | 2 +- .../samples/client_user_configs.py | 2 +- .../samples/client_user_configs_async.py | 2 +- .../samples/container_management.py | 2 +- .../samples/container_management_async.py | 2 +- .../samples/database_management.py | 2 +- .../samples/database_management_async.py | 2 +- .../samples/document_management.py | 2 +- .../samples/document_management_async.py | 2 +- .../samples/session_token_management.py | 2 +- .../samples/session_token_management_async.py | 2 +- 23 files changed, 51 insertions(+), 51 deletions(-) diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 95288ddfb29a..e1224bf0f0fe 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -190,8 +190,8 @@ For more on the `CosmosHttpLoggingPolicy` see our [README](https://github.com/Az ### 4.3.1b1 (2022-09-19) #### Features Added -- GA release of integrated cache functionality. For more information on integrated cache please see [Azure Cosmos DB integrated cache](https://docs.microsoft.com/azure/cosmos-db/integrated-cache). -- Added ability to replace analytical ttl on containers. For more information on analytical ttl please see [Azure Cosmos DB analytical store](https://docs.microsoft.com/azure/cosmos-db/analytical-store-introduction). +- GA release of integrated cache functionality. For more information on integrated cache please see [Azure Cosmos DB integrated cache](https://learn.microsoft.com/azure/cosmos-db/integrated-cache). +- Added ability to replace analytical ttl on containers. For more information on analytical ttl please see [Azure Cosmos DB analytical store](https://learn.microsoft.com/azure/cosmos-db/analytical-store-introduction). - Added `CosmosHttpLoggingPolicy` to replace `HttpLoggingPolicy` for logging HTTP sessions. - Added the ability to create containers and databases with autoscale properties for the sync and async clients. - Added the ability to update autoscale throughput properties. @@ -234,13 +234,13 @@ Method call will now require an 'id' field to be present in the document body. > their clients. > Default consistency level for the sync and async clients is no longer "Session" and will instead be set to the consistency level of the user's cosmos account setting on initialization if not passed during client initialization. -> Please see [Consistency Levels in Azure Cosmos DB](https://docs.microsoft.com/azure/cosmos-db/consistency-levels) +> Please see [Consistency Levels in Azure Cosmos DB](https://learn.microsoft.com/azure/cosmos-db/consistency-levels) > for more details on consistency levels, or the README section on this change [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos#note-on-client-consistency-levels). #### Features Added - Added new **provisional** `max_integrated_cache_staleness_in_ms` parameter to read item and query items APIs in order to make use of the **preview** CosmosDB integrated cache functionality [See PR #22946](https://github.com/Azure/azure-sdk-for-python/pull/22946). - Please see [Azure Cosmos DB integrated cache](https://docs.microsoft.com/azure/cosmos-db/integrated-cache) for more details. + Please see [Azure Cosmos DB integrated cache](https://learn.microsoft.com/azure/cosmos-db/integrated-cache) for more details. - Added support for split-proof queries for the async client. ### Bugs fixed @@ -248,7 +248,7 @@ Method call will now require an 'id' field to be present in the document body. consistency level of the user's cosmos account setting on initialization if not passed during client initialization. This change will impact client application in terms of RUs and latency. Users relying on default `Session` consistency will need to pass it explicitly if their account consistency is different than `Session`. - Please see [Consistency Levels in Azure Cosmos DB](https://docs.microsoft.com/azure/cosmos-db/consistency-levels) for more details. + Please see [Consistency Levels in Azure Cosmos DB](https://learn.microsoft.com/azure/cosmos-db/consistency-levels) for more details. - Fixed invalid request body being sent when passing in `serverScript` body parameter to replace operations for trigger, sproc and udf resources. - Moved `is_system_key` logic in async client. - Fixed TypeErrors not being thrown when passing in invalid connection retry policies to the client. diff --git a/sdk/cosmos/azure-cosmos/README.md b/sdk/cosmos/azure-cosmos/README.md index c10759a31077..a0b9a76b895f 100644 --- a/sdk/cosmos/azure-cosmos/README.md +++ b/sdk/cosmos/azure-cosmos/README.md @@ -19,7 +19,7 @@ Use the Azure Cosmos DB SQL API SDK for Python to manage databases and the JSON | [Product documentation][cosmos_docs] | [Samples][cosmos_samples] -> This SDK is used for the [SQL API](https://docs.microsoft.com/azure/cosmos-db/sql-query-getting-started). For all other APIs, please check the [Azure Cosmos DB documentation](https://docs.microsoft.com/azure/cosmos-db/introduction) to evaluate the best SDK for your project. +> This SDK is used for the [SQL API](https://learn.microsoft.com/azure/cosmos-db/sql-query-getting-started). For all other APIs, please check the [Azure Cosmos DB documentation](https://learn.microsoft.com/azure/cosmos-db/introduction) to evaluate the best SDK for your project. ## Getting started @@ -107,7 +107,7 @@ aad_credentials = DefaultAzureCredential() client = CosmosClient(url, aad_credentials) ``` Always ensure that the managed identity you use for AAD authentication has `readMetadata` permissions.
-More information on how to set up AAD authentication: [Set up RBAC for AAD authentication](https://docs.microsoft.com/azure/cosmos-db/how-to-setup-rbac)
+More information on how to set up AAD authentication: [Set up RBAC for AAD authentication](https://learn.microsoft.com/azure/cosmos-db/how-to-setup-rbac)
More information on allowed operations for AAD authenticated clients: [RBAC Permission Model](https://aka.ms/cosmos-native-rbac) ## Key concepts @@ -171,7 +171,7 @@ Streamable queries like `SELECT * FROM WHERE` *do* support continuation tokens. ### Control Plane Limitations Workaround -Typically, you can use [Azure Portal](https://portal.azure.com/), [Azure Cosmos DB Resource Provider REST API](https://docs.microsoft.com/rest/api/cosmos-db-resource-provider), [Azure CLI](https://docs.microsoft.com/cli/azure/azure-cli-reference-for-cosmos-db) or [PowerShell](https://docs.microsoft.com/azure/cosmos-db/manage-with-powershell) for the control plane unsupported limitations. +Typically, you can use [Azure Portal](https://portal.azure.com/), [Azure Cosmos DB Resource Provider REST API](https://learn.microsoft.com/rest/api/cosmos-db-resource-provider), [Azure CLI](https://learn.microsoft.com/cli/azure/azure-cli-reference-for-cosmos-db) or [PowerShell](https://learn.microsoft.com/azure/cosmos-db/manage-with-powershell) for the control plane unsupported limitations. ### Using The Async Client as a Workaround to Bulk While the SDK supports transactional batch, support for bulk requests is not yet implemented in the Python SDK. You can use the async client along with this [concurrency sample][cosmos_concurrency_sample] we have developed as a reference for a possible workaround. @@ -182,7 +182,7 @@ While the SDK supports transactional batch, support for bulk requests is not yet ## Boolean Data Type -While the Python language [uses](https://docs.python.org/3/library/stdtypes.html?highlight=boolean#truth-value-testing) "True" and "False" for boolean types, Cosmos DB [accepts](https://docs.microsoft.com/azure/cosmos-db/sql-query-is-bool) "true" and "false" only. In other words, the Python language uses Boolean values with the first uppercase letter and all other lowercase letters, while Cosmos DB and its SQL language use only lowercase letters for those same Boolean values. How to deal with this challenge? +While the Python language [uses](https://docs.python.org/3/library/stdtypes.html?highlight=boolean#truth-value-testing) "True" and "False" for boolean types, Cosmos DB [accepts](https://learn.microsoft.com/azure/cosmos-db/sql-query-is-bool) "true" and "false" only. In other words, the Python language uses Boolean values with the first uppercase letter and all other lowercase letters, while Cosmos DB and its SQL language use only lowercase letters for those same Boolean values. How to deal with this challenge? * Your JSON documents created with Python must use "True" and "False", to pass the language validation. The SDK will convert it to "true" and "false" for you. Meaning that "true" and "false" is what will be stored in Cosmos DB. * If you retrieve those documents with the Cosmos DB Portal's Data Explorer, you will see "true" and "false". @@ -190,9 +190,9 @@ While the Python language [uses](https://docs.python.org/3/library/stdtypes.html ## SQL Queries x FROM Clause Subitems -This SDK uses the [query_items](https://docs.microsoft.com/python/api/azure-cosmos/azure.cosmos.containerproxy?preserve-view=true&view=azure-python#query-items-query--parameters-none--partition-key-none--enable-cross-partition-query-none--max-item-count-none--enable-scan-in-query-none--populate-query-metrics-none----kwargs-) method to submit SQL queries to Azure Cosmos DB. +This SDK uses the [query_items](https://learn.microsoft.com/python/api/azure-cosmos/azure.cosmos.containerproxy?preserve-view=true&view=azure-python#query-items-query--parameters-none--partition-key-none--enable-cross-partition-query-none--max-item-count-none--enable-scan-in-query-none--populate-query-metrics-none----kwargs-) method to submit SQL queries to Azure Cosmos DB. -Cosmos DB SQL language allows you to [get subitems by using the FROM clause](https://docs.microsoft.com/azure/cosmos-db/sql-query-from#get-subitems-by-using-the-from-clause), to reduce the source to a smaller subset. As an example, you can use `select * from Families.children` instead of `select * from Families`. But please note that: +Cosmos DB SQL language allows you to [get subitems by using the FROM clause](https://learn.microsoft.com/azure/cosmos-db/sql-query-from#get-subitems-by-using-the-from-clause), to reduce the source to a smaller subset. As an example, you can use `select * from Families.children` instead of `select * from Families`. But please note that: * For SQL queries using the `query_items` method, this SDK demands that you specify the `partition_key` or use the `enable_cross_partition_query` flag. * If you are getting subitems and specifying the `partition_key`, please make sure that your partition key is included in the subitems, which is not true for most of the cases. @@ -260,7 +260,7 @@ except exceptions.CosmosHttpResponseError: ### Create an analytical store enabled container -This example creates a container with [Analytical Store](https://docs.microsoft.com/azure/cosmos-db/analytical-store-introduction) enabled, for reporting, BI, AI, and Advanced Analytics with [Azure Synapse Link](https://docs.microsoft.com/azure/cosmos-db/synapse-link). +This example creates a container with [Analytical Store](https://learn.microsoft.com/azure/cosmos-db/analytical-store-introduction) enabled, for reporting, BI, AI, and Advanced Analytics with [Azure Synapse Link](https://learn.microsoft.com/azure/cosmos-db/synapse-link). The options for analytical_storage_ttl are: @@ -988,29 +988,29 @@ be used with our SDK. This works the same way regardless of the Cosmos client yo ## Next steps -For more extensive documentation on the Cosmos DB service, see the [Azure Cosmos DB documentation][cosmos_docs] on docs.microsoft.com. +For more extensive documentation on the Cosmos DB service, see the [Azure Cosmos DB documentation][cosmos_docs] on learn.microsoft.com. -[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_cli]: https://learn.microsoft.com/cli/azure [azure_portal]: https://portal.azure.com [azure_sub]: https://azure.microsoft.com/free/ -[cloud_shell]: https://docs.microsoft.com/azure/cloud-shell/overview -[cosmos_account_create]: https://docs.microsoft.com/azure/cosmos-db/how-to-manage-database-account -[cosmos_account]: https://docs.microsoft.com/azure/cosmos-db/account-overview -[cosmos_container]: https://docs.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-containers -[cosmos_database]: https://docs.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-databases -[cosmos_docs]: https://docs.microsoft.com/azure/cosmos-db/ +[cloud_shell]: https://learn.microsoft.com/azure/cloud-shell/overview +[cosmos_account_create]: https://learn.microsoft.com/azure/cosmos-db/how-to-manage-database-account +[cosmos_account]: https://learn.microsoft.com/azure/cosmos-db/account-overview +[cosmos_container]: https://learn.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-containers +[cosmos_database]: https://learn.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-databases +[cosmos_docs]: https://learn.microsoft.com/azure/cosmos-db/ [cosmos_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples [cosmos_pypi]: https://pypi.org/project/azure-cosmos/ -[cosmos_http_status_codes]: https://docs.microsoft.com/rest/api/cosmos-db/http-status-codes-for-cosmosdb -[cosmos_item]: https://docs.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-items +[cosmos_http_status_codes]: https://learn.microsoft.com/rest/api/cosmos-db/http-status-codes-for-cosmosdb +[cosmos_item]: https://learn.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-items [cosmos_models]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/azure/cosmos/_models.py -[cosmos_request_units]: https://docs.microsoft.com/azure/cosmos-db/request-units -[cosmos_resources]: https://docs.microsoft.com/azure/cosmos-db/databases-containers-items -[cosmos_sql_queries]: https://docs.microsoft.com/azure/cosmos-db/how-to-sql-query -[cosmos_ttl]: https://docs.microsoft.com/azure/cosmos-db/time-to-live -[cosmos_integrated_cache]: https://docs.microsoft.com/azure/cosmos-db/integrated-cache -[cosmos_configure_integrated_cache]: https://docs.microsoft.com/azure/cosmos-db/how-to-configure-integrated-cache +[cosmos_request_units]: https://learn.microsoft.com/azure/cosmos-db/request-units +[cosmos_resources]: https://learn.microsoft.com/azure/cosmos-db/databases-containers-items +[cosmos_sql_queries]: https://learn.microsoft.com/azure/cosmos-db/how-to-sql-query +[cosmos_ttl]: https://learn.microsoft.com/azure/cosmos-db/time-to-live +[cosmos_integrated_cache]: https://learn.microsoft.com/azure/cosmos-db/integrated-cache +[cosmos_configure_integrated_cache]: https://learn.microsoft.com/azure/cosmos-db/how-to-configure-integrated-cache [python]: https://www.python.org/downloads/ [ref_container_delete_item]: https://aka.ms/azsdk-python-cosmos-ref-delete-item [ref_container_query_items]: https://aka.ms/azsdk-python-cosmos-ref-query-items diff --git a/sdk/cosmos/azure-cosmos/azure/cosmos/aio/_database.py b/sdk/cosmos/azure-cosmos/azure/cosmos/aio/_database.py index 49253b223f88..f73e1ad17570 100644 --- a/sdk/cosmos/azure-cosmos/azure/cosmos/aio/_database.py +++ b/sdk/cosmos/azure-cosmos/azure/cosmos/aio/_database.py @@ -199,7 +199,7 @@ async def create_container( :paramtype match_condition: ~azure.core.MatchConditions :keyword List[Dict[str, str]] computed_properties: **provisional** Sets The computed properties for this container in the Azure Cosmos DB Service. For more Information on how to use computed properties visit - `here: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` + `here: https://learn.microsoft.com/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` :keyword response_hook: A callable invoked with the response metadata. :paramtype response_hook: Callable[[Dict[str, str], Dict[str, Any]], None] :keyword int analytical_storage_ttl: Analytical store time to live (TTL) for items in the container. A value of @@ -324,7 +324,7 @@ async def create_container_if_not_exists( :paramtype match_condition: ~azure.core.MatchConditions :keyword List[Dict[str, str]] computed_properties: **provisional** Sets The computed properties for this container in the Azure Cosmos DB Service. For more Information on how to use computed properties visit - `here: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` + `here: https://learn.microsoft.com/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` :keyword response_hook: A callable invoked with the response metadata. :paramtype response_hook: Callable[[Dict[str, str], Dict[str, Any]], None] :keyword int analytical_storage_ttl: Analytical store time to live (TTL) for items in the container. A value of diff --git a/sdk/cosmos/azure-cosmos/azure/cosmos/database.py b/sdk/cosmos/azure-cosmos/azure/cosmos/database.py index f7e5a7f9d715..e8b921fd8ed8 100644 --- a/sdk/cosmos/azure-cosmos/azure/cosmos/database.py +++ b/sdk/cosmos/azure-cosmos/azure/cosmos/database.py @@ -201,7 +201,7 @@ def create_container( # pylint:disable=docstring-missing-param note that analytical storage can only be enabled on Synapse Link enabled accounts. :keyword List[Dict[str, str]] computed_properties: **provisional** Sets The computed properties for this container in the Azure Cosmos DB Service. For more Information on how to use computed properties visit - `here: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` + `here: https://learn.microsoft.com/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` :keyword Dict[str, Any] vector_embedding_policy: **provisional** The vector embedding policy for the container. Each vector embedding possesses a predetermined number of dimensions, is associated with an underlying data type, and is generated for a particular distance function. @@ -327,7 +327,7 @@ def create_container_if_not_exists( # pylint:disable=docstring-missing-param note that analytical storage can only be enabled on Synapse Link enabled accounts. :keyword List[Dict[str, str]] computed_properties: **provisional** Sets The computed properties for this container in the Azure Cosmos DB Service. For more Information on how to use computed properties visit - `here: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` + `here: https://learn.microsoft.com/azure/cosmos-db/nosql/query/computed-properties?tabs=dotnet` :keyword Dict[str, Any] vector_embedding_policy: The vector embedding policy for the container. Each vector embedding possesses a predetermined number of dimensions, is associated with an underlying data type, and is generated for a particular distance function. diff --git a/sdk/cosmos/azure-cosmos/azure/cosmos/partition_key.py b/sdk/cosmos/azure-cosmos/azure/cosmos/partition_key.py index f77b44dfa306..07274b2387e4 100644 --- a/sdk/cosmos/azure-cosmos/azure/cosmos/partition_key.py +++ b/sdk/cosmos/azure-cosmos/azure/cosmos/partition_key.py @@ -93,7 +93,7 @@ class _Infinity: class PartitionKey(dict): """Key used to partition a container into logical partitions. - See https://docs.microsoft.com/azure/cosmos-db/partitioning-overview#choose-partitionkey + See https://learn.microsoft.com/azure/cosmos-db/partitioning-overview#choose-partitionkey for information on how to choose partition keys. :ivar str path: The path of the partition key diff --git a/sdk/cosmos/azure-cosmos/doc/setup.md b/sdk/cosmos/azure-cosmos/doc/setup.md index c9d94f0cf11e..69fcf405e005 100644 --- a/sdk/cosmos/azure-cosmos/doc/setup.md +++ b/sdk/cosmos/azure-cosmos/doc/setup.md @@ -133,7 +133,7 @@ The unit tests can be run by right-clicking a specific test file or specific tes [cosmos_db_sdk_repo]: https://github.com/Azure/azure-sdk-for-python [azure_sub]: https://azure.microsoft.com/free/ -[cosmos_account]: https://docs.microsoft.com/azure/cosmos-db/account-overview +[cosmos_account]: https://learn.microsoft.com/azure/cosmos-db/account-overview [python]: https://www.python.org/downloads/ [pycharm]: https://www.jetbrains.com/pycharm/ [cosmos_db_emulator]: https://learn.microsoft.com/azure/cosmos-db/emulator diff --git a/sdk/cosmos/azure-cosmos/samples/README.md b/sdk/cosmos/azure-cosmos/samples/README.md index 724db36b84cf..113e7d1f08e4 100644 --- a/sdk/cosmos/azure-cosmos/samples/README.md +++ b/sdk/cosmos/azure-cosmos/samples/README.md @@ -52,7 +52,7 @@ The following are code samples that show common scenario operations with the Azu ## Prerequisites * Python 3.8+ * You must have an [Azure subscription](https://azure.microsoft.com/free/) and an -[Azure Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account) to run these samples. +[Azure Cosmos DB account](https://learn.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account) to run these samples. ## Setup diff --git a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad.py b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad.py index 4d18cbc61554..ebe1535876c4 100644 --- a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad.py +++ b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad.py @@ -13,7 +13,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://docs.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account +# https://learn.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account # # 2. Microsoft Azure Cosmos # pip install azure-cosmos>=4.3.0b4 diff --git a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad_async.py b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad_async.py index 792c85f47395..564137a062e2 100644 --- a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad_async.py +++ b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_aad_async.py @@ -14,7 +14,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://docs.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account +# https://learn.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account # # 2. Microsoft Azure Cosmos # pip install azure-cosmos>=4.3.0b4 diff --git a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token.py b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token.py index 744e2fad8628..bf253eacc26d 100644 --- a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token.py +++ b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token.py @@ -17,7 +17,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://docs.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account +# https://learn.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account # # 2. Microsoft Azure Cosmos # pip install azure-cosmos>=4.0.0 diff --git a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token_async.py b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token_async.py index 13e90d840c19..2c7c38c3319b 100644 --- a/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token_async.py +++ b/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token_async.py @@ -17,7 +17,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://docs.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account +# https://learn.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account # # 2. Microsoft Azure Cosmos # pip install azure-cosmos>=4.0.0 diff --git a/sdk/cosmos/azure-cosmos/samples/change_feed_management.py b/sdk/cosmos/azure-cosmos/samples/change_feed_management.py index e790fe636be6..7aa464e2e10f 100644 --- a/sdk/cosmos/azure-cosmos/samples/change_feed_management.py +++ b/sdk/cosmos/azure-cosmos/samples/change_feed_management.py @@ -17,7 +17,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https:#azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https:#azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/change_feed_management_async.py b/sdk/cosmos/azure-cosmos/samples/change_feed_management_async.py index c8191d3e55f6..3e69bce81b08 100644 --- a/sdk/cosmos/azure-cosmos/samples/change_feed_management_async.py +++ b/sdk/cosmos/azure-cosmos/samples/change_feed_management_async.py @@ -18,7 +18,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https:#azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https:#azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/client_user_configs.py b/sdk/cosmos/azure-cosmos/samples/client_user_configs.py index 54d2f240c6b5..a7e27e985cac 100644 --- a/sdk/cosmos/azure-cosmos/samples/client_user_configs.py +++ b/sdk/cosmos/azure-cosmos/samples/client_user_configs.py @@ -8,7 +8,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https://azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/client_user_configs_async.py b/sdk/cosmos/azure-cosmos/samples/client_user_configs_async.py index 01a22ee9d875..b801f8e81a38 100644 --- a/sdk/cosmos/azure-cosmos/samples/client_user_configs_async.py +++ b/sdk/cosmos/azure-cosmos/samples/client_user_configs_async.py @@ -9,7 +9,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https://azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/container_management.py b/sdk/cosmos/azure-cosmos/samples/container_management.py index c43c28faf08c..30defb45e90b 100644 --- a/sdk/cosmos/azure-cosmos/samples/container_management.py +++ b/sdk/cosmos/azure-cosmos/samples/container_management.py @@ -14,7 +14,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https://azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/container_management_async.py b/sdk/cosmos/azure-cosmos/samples/container_management_async.py index f730b0a50cb3..784b65c1f3c1 100644 --- a/sdk/cosmos/azure-cosmos/samples/container_management_async.py +++ b/sdk/cosmos/azure-cosmos/samples/container_management_async.py @@ -15,7 +15,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https://azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/database_management.py b/sdk/cosmos/azure-cosmos/samples/database_management.py index 4c7b1097a722..626d891d2448 100644 --- a/sdk/cosmos/azure-cosmos/samples/database_management.py +++ b/sdk/cosmos/azure-cosmos/samples/database_management.py @@ -13,7 +13,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://docs.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account +# https://learn.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/database_management_async.py b/sdk/cosmos/azure-cosmos/samples/database_management_async.py index ea2adede90ac..8ef7ff062695 100644 --- a/sdk/cosmos/azure-cosmos/samples/database_management_async.py +++ b/sdk/cosmos/azure-cosmos/samples/database_management_async.py @@ -14,7 +14,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://docs.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account +# https://learn.microsoft.com/azure/cosmos-db/create-sql-api-python#create-a-database-account # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/document_management.py b/sdk/cosmos/azure-cosmos/samples/document_management.py index aa019ffbea8f..845d07cbbdc7 100644 --- a/sdk/cosmos/azure-cosmos/samples/document_management.py +++ b/sdk/cosmos/azure-cosmos/samples/document_management.py @@ -15,7 +15,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https:#azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https:#azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/document_management_async.py b/sdk/cosmos/azure-cosmos/samples/document_management_async.py index 9f98ca7f47e2..4b07be0f4f34 100644 --- a/sdk/cosmos/azure-cosmos/samples/document_management_async.py +++ b/sdk/cosmos/azure-cosmos/samples/document_management_async.py @@ -16,7 +16,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https:#azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https:#azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/session_token_management.py b/sdk/cosmos/azure-cosmos/samples/session_token_management.py index e21521a7e505..2dc212b58215 100644 --- a/sdk/cosmos/azure-cosmos/samples/session_token_management.py +++ b/sdk/cosmos/azure-cosmos/samples/session_token_management.py @@ -20,7 +20,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https://azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/ diff --git a/sdk/cosmos/azure-cosmos/samples/session_token_management_async.py b/sdk/cosmos/azure-cosmos/samples/session_token_management_async.py index 76f570b9488b..e940e218c5cf 100644 --- a/sdk/cosmos/azure-cosmos/samples/session_token_management_async.py +++ b/sdk/cosmos/azure-cosmos/samples/session_token_management_async.py @@ -21,7 +21,7 @@ # Prerequisites - # # 1. An Azure Cosmos account - -# https://azure.microsoft.com/en-us/documentation/articles/documentdb-create-account/ +# https://azure.microsoft.com/documentation/articles/documentdb-create-account/ # # 2. Microsoft Azure Cosmos PyPi package - # https://pypi.python.org/pypi/azure-cosmos/