Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fullstackhub-io/AzureFunctionAPI-CosmosDB-CleanArchitecture

Open more actions menu

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.