Git Product home page Git Product logo

azure_task_6_estimate_costs's Introduction

Estimate Сosts for Сloud Infrastructure

Wow! Now you know how it feels to run a successful startup! Your todo app user base is growing, and potential investors are becoming interested in your project. Before investing money, potential investors want to know how much it costs to run the cloud infrastructure for your application.

In this task, you will need to calculate the costs.

Prerequisites

Before completing any task in the module, make sure that you followed all the steps described in the Environment Setup topic, in particular:

  1. Ensure you have an Azure account and subscription.

  2. Create a resource group called mate-resources in the Azure subscription.

  3. In the mate-resources resource group, create a storage account (any name) and a task-artifacts container.

  4. Install PowerShell 7 on your computer. All tasks in this module use Powershell 7. To run it in the terminal, execute the following command:

    pwsh
    
  5. Install Azure module for PowerShell 7:

    Install-Module -Name Az -Repository PSGallery -Force
    

If you are a Windows user, before running this command, please also run the following: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

  1. Log in to your Azure account using PowerShell:
    Connect-AzAccount -TenantId <your Microsoft Entra ID tenant id>
    

Requirements

In this task, you need to work with the infrastructure from the previous tasks. In order to complete the task, you need to perform the following steps:

  1. Use Azure Pricing Calculator to estimate the monthly cost of your infrastructure (as it would cost with the Pay-as-you-go subscription type). You need to include the following resources in your calculations:

    • Virtual Machine (don't forget to include it's OS disk as a part of the VM calculations)

    • Data disk

    • Public IP address

  2. Export the calculations as an Excel spreadsheet and copy it to the repo folder.

  3. Run artifacts generation script scripts/generate-artifacts.ps1.

  4. Test yourself using the script scripts/validate-artifacts.ps1.

  5. Submit the solution for a review.

How to Complete Tasks in This Module

Tasks in this module are relying on 2 PowerShell scripts:

  • scripts/generate-artifacts.ps1 generates the task “artifacts” and uploads them to cloud storage. An “artifact” is evidence of a task completed by you. Each task will have its own script to gather the required artifacts. The script also adds a link to the generated artifact in the artifacts.json file in this repository — make sure to commit changes to this file after you run the script.
  • scripts/validate-artifacts.ps1 validates the artifacts generated by the first script. It loads information about the task artifacts from the artifacts.json file.

Here is how to complete tasks in this module:

  1. Clone task repository

  2. Make sure you completed the steps described in the Prerequisites section

  3. Complete the task described in the Requirements section

  4. Run scripts/generate-artifacts.ps1 to generate task artifacts. The script will update the file artifacts.json in this repo.

  5. Run scripts/validate-artifacts.ps1 to test yourself. If tests fail, follow the recommendation from the test script error message to fix or re-deploy your infrastructure. When you are ready to test yourself again - re-generate the artifacts (step 4) and re-run tests again.

  6. When all tests will pass - commit your changes and submit the solution for review.

Pro tip: If you are stuck with any of the implementation steps, run scripts/generate-artifacts.ps1 and scripts/validate-artifacts.ps1. The validation script might give you a hint on what to do.

azure_task_6_estimate_costs's People

Contributors

id27182 avatar pavlosoletskyy 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.