makeporngreatagain.pro
yeahporn.top
hd xxx

Create Azure Cosmos DB resource from Azure Portal

595
  1. Create an Azure Cosmos DB account
    1. Go to the Azure portal to create an Azure Cosmos DB account. Search for and select Azure Cosmos DB.
    2. Select Add.
    3. On the Create Azure Cosmos DB Account page, enter the basic settings for the new Azure Cosmos account.

      Setting Value Description
      Subscription Subscription name Select the Azure subscription that you want to use for this Azure Cosmos account.
      Resource Group Resource group name Select a resource group, or select Create new, then enter a unique name for the new resource group.
      Account Name A unique name Enter a name to identify your Azure Cosmos account. Because documents.azure.com is appended to the name that you provide to create your URI, use a unique name.

      The name can only contain lowercase letters, numbers, and the hyphen (-) character. It must be between 3-31 characters in length.

      API The type of account to create Select Core (SQL) to create a document database and query by using SQL syntax.

      The API determines the type of account to create. Azure Cosmos DB provides five APIs: Core (SQL) and MongoDB for document data, Gremlin for graph data, Azure Table, and Cassandra. Currently, you must create a separate account for each API.

      Apply Free Tier Discount Apply or Do not apply With Azure Cosmos DB free tier, you will get the first 400 RU/s and 5 GB of storage for free in an account. Learn more about free tier.
      Location The region closest to your users Select a geographic location to host your Azure Cosmos DB account. Use the location that is closest to your users to give them the fastest access to the data.
      Account Type Production or Non-Production Select Production if the account will be used for a production workload. Select Non-Production if the account will be used for non-production, e.g. development, testing, QA, or staging. This is an Azure resource tag setting that tunes the Portal experience but does not affect the underlying Azure Cosmos DB account. You can change this value anytime.
    4. Select Review + create. You can skip the Network and Tags sections.
    5. Review the account settings, and then select Create. It takes a few minutes to create the account. Wait for the portal page to display Your deployment is complete.
    6. Select Go to resource to go to the Azure Cosmos DB account page.
  2. Add a database and a container
    1. Select Data Explorer from the left navigation on your Azure Cosmos DB account page, and then select New Container.
      You may need to scroll right to see the Add Container window.
    2. In the Add container pane, enter the settings for the new container.
      Setting Suggested value Description
      Database ID ToDoList Enter ToDoList as the name for the new database. Database names must contain from 1 through 255 characters, and they cannot contain /, \\, #, ?, or a trailing space. Check the Provision database throughput option, it allows you to share the throughput provisioned to the database across all the containers within the database. This option also helps with cost savings.
      Throughput 400 Leave the throughput at 400 request units per second (RU/s). If you want to reduce latency, you can scale up the throughput later.
      Container ID Items Enter Items as the name for your new container. Container IDs have the same character requirements as database names.
      Partition key /category The sample described in this article uses /category as the partition key.

      Don’t add Unique keys for this example. Unique keys let you add a layer of data integrity to the database by ensuring the uniqueness of one or more values per partition key. For more information, see Unique keys in Azure Cosmos DB.

    3. Select OK. The Data Explorer displays the new database and the container that you created.
  3. Add data to your database
    1. In Data Explorer, expand the ToDoList database, and expand the Items container. Next, select Items, and then select New Item.

      Add the following structure to the document on the right side of the Documents pane:
      { "id": "1", "category": "personal", "name": "groceries", "description": "Pick up apples and strawberries.", "isComplete": false }
    2. Select Save.
    3. Select New Document again, and create and save another document with a unique id, and any other properties and values you want. Your documents can have any structure, because Azure Cosmos DB doesn’t impose any schema on your data.
  4. Query your data
    1. At the top of the Items tab in Data Explorer, review the default query SELECT * FROM c. This query retrieves and displays all documents from the container ordered by ID.
    2. To change the query, select Edit Filter, replace the default query with ORDER BY c._ts DESC, and then select Apply Filter.

      The modified query displays the documents in descending order based on their time stamp, so now your second document is listed first.
    3. If you’re familiar with SQL syntax, you can enter any supported SQL queries in the query predicate box. You can also use Data Explorer to create stored procedures, UDFs, and triggers for server-side business logic.
      Data Explorer provides easy Azure portal access to all of the built-in programmatic data access features available in the APIs. You also use the portal to scale throughput, get keys and connection strings, and review metrics and SLAs for your Azure Cosmos DB account.
Leave A Reply

Your email address will not be published.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.