Skip to content

fullstackhub-io/AzureFunctionAPI-CosmosDB-CleanArchitecture

Repository files navigation

HTTP Trigger Azure Function with CosmosDB Clean Architecture

  • In Azure Portal, Create new Azure CosmosDB account Go to Data Explorer, create new database "famspotdb"

  • Create two containers in database "Audit" (Partition Key: EntityId) and "User" (Partition Key: UserType & Unique Key: Email).

  • Go to "Keys" in "Settings" section, Get the "URI" and "PRIMARY KEY" and replace the values in af-userapi -> local.settings.json file's ConnectionString section.

  "ConnectionStrings": {
    "FamspotDB": {
      "EndpointUrl": "https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:443/",
      "PrimaryKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "DatabaseName": "famspotdb",
      "Containers": [
        {
          "Name": "Audit",
          "PartitionKey": "/EntityId"
        },
        {
          "Name": "User",
          "PartitionKey": "/UserType"
        }
      ]
    }
  }

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy