Git Product home page Git Product logo

cosmosdb-mongodb-azure's Introduction

Criando CosmosDB serverless no Azure gratuito - Sem cartão de crédito

Disclaimer: Utilizar somente para fins de estudo e testes da tecnologia

Pré-requisitos:

Roteiro:

  1. Ativar uma Sandbox MS Learn (Area Restrita) - Concierge Subscription (4 hora de duração) - https://learn.microsoft.com/pt-br/training/modules/build-serverless-api-with-functions-api-management/5-exercise-import-additional-functions-existing-api-gateway?ns-enrollment-type=learningpath&ns-enrollment-id=learn.create-serverless-applications
  2. Efetuar o login no Azure através do Azure CLI.
az login
  1. Conferir sua assinatura atual.
az account show -o table
  1. Listar todas as assinaturas do Azure da sua conta Microsoft, utilize o comando abaixo (troque o e-mail abaixo pelo e-mail da sua conta Azure).
az account list --query "[?user.name=='[email protected]'].{Name:name, ID:id, Default:isDefault}" -o table
  1. Utilizar a assinatura gratuita, ativada no item 1 deste.
az account set --subscription "Concierge Subscription"
  1. Consultar o nome do Resource Group criado para a sua conta do Concierge Subscription.
az group list -o table
  1. Ajustar a variável resource_group_name do arquivo variables.tf com o nome do Resource Group informado no passo anterior.
variable "resource_group_name" {
  default = "learn-877e311a-66ab-401b-9372-06326c9bd083" # informar o nome novo do resource group
}
  1. Criar os recursos na assinatura Azure selecionada.
terraform init
terraform validate
terraform fmt
terraform plan
terraform apply
  1. Logar no portal.azure.com e conferir o deploy do SQL do Azure.
  2. Abrir o MongoDB Compass e logar no CosmosDB do Azure a partir do seu computador.
  3. Destruir os recursos criados.
terraform destroy

cosmosdb-mongodb-azure's People

Watchers

Jorge Luiz da Silva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.