Fundamentos de la nube y Azure

1

Certificaci贸n Microsoft Azure Fundamentals

2

Modelos de nube, p煤blica, privada e h铆brida

3

El modelo basado en consumo de la nube

Microsoft Azure Fundamentos

4

Creando tu cuenta de Azure

5

Instalaci贸n y configuraci贸n de la CLI de Azure

6

Aprende a administrar tu suscripci贸n de Azure

7

Explorando los recursos de Azure

8

Categor铆as de recursos en Azure

9

Aprendiendo a usar etiquetas en tus servicios

10

Conociendo las plantillas ARM

11

Desplegando recursos desde la CLI de Azure

Modelos de servicio

12

驴Qu茅 es la infraestructura como servicio?

13

驴Qu茅 es la plataforma como servicio?

14

驴Qu茅 es el software como servicio?

15

Los centros de datos de Azure, un gigante en crecimiento

Alta disponibilidad y organizaci贸n de recursos

16

Los conceptos m谩gicos de alta disponibilidad y escalabilidad

17

Niveles de acceso a tus recursos

18

驴C贸mo funciona la jerarqu铆a entre suscripciones, grupos de administraci贸n y grupos de recursos?

Seguridad y gobernanza en Azure

19

El concepto de Zero Trust

20

Principios de seguridad y gobernanza en Azure

21

Servicios de identidad como Microsoft Entra y Domain Services

22

M茅todos de autenticaci贸n en Azure

23

Azure role based access control

Soluciones de c贸mputo y redes

24

Tipos de c贸mputo, contenedores, m谩quinas virtuales y funciones

25

Componentes de una m谩quina virtual, Azure Virtual Machine Scale Set

26

Introducci贸n a las redes virtuales en Azure

27

Estableciendo un acceso p煤blico para mis m谩quinas virtuales

Almacenamiento y acceso seguro

28

Servicios de almacenamiento de Azure

29

Niveles de almacenamiento de Azure

30

Tipos de almacenamiento y opciones de cuenta

31

Azure Bastion

Herramientas avanzadas de seguridad

32

Microsoft Defender for Cloud

33

Introducci贸n a Azure Policy

Automatizaci贸n y despliegue de recursos

34

Usando Azure Cloud Shell

35

驴Qu茅 es Bicep?

36

Desplegando recursos con Bicep

37

驴Qu茅 es Azure Service Health?

38

Los portales adicionales de Azure

Arquitectura sin servidor

39

El modelo serverless

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

0 D铆as
0 Hrs
17 Min
12 Seg

Desplegando recursos con Bicep

36/39
Resources

How to make flexible scripts with Bicep and Terraform?

The journey towards automating and creating cloud infrastructures has been revolutionized by tools such as Terraform and Bicep. While Terraform has been a favorite among practitioners for years, Bicep is quickly gaining traction in the Microsoft Azure environment. In this guide, we'll explore how to use Bicep to create flexible scripts that adapt to your needs, just as you would with Terraform.

How to work with parameters in Bicep?

The versatility of a script depends on its ability to handle variables and parameters effectively. In Bicep, as in Terraform, you can use parameters to improve the flexibility and reusability of your scripts.

  1. Create parameters: Parameters in Bicep are like variables that you can define in your scripts. By adding descriptions and rules, such as a minimum length, you ensure that strings are not empty and meet certain criteria.

  2. Define common parameters:

    • Storage account name: this is defined as a string parameter that you can easily change as needed.
    • Deployment location or region: this can also be parameterized, allowing you to easily modify the location where you want to deploy your resources.
  3. Substitute static values: once the parameters are defined, you can replace the static strings in your script with these parameters, increasing the flexibility of your script.

Example of creating a parameter in Bicep

param storageAccountName string { description: 'Storage account name' allowedPattern: '^'}

How to integrate a variable file in Bicep?

To manage configurations centrally, the use of a variables file is recommended. This makes it easier to manage configurations for different environments without modifying the main script.

  1. Create a JSON file for parameters: within your Bicep project, create a main.parameters.json file where you can define all your variables. This file will follow the format that Bicep recognizes.

  2. Example JSON structure:

{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "location": { "value": "East US 2" }, "storageAccountName": { "value": "myuniquestorage" } }} } }
  1. Advantages: by using one variable file, you can manage different configurations for development, test and production environments by simply changing this file, instead of modifying multiple scripts.

How to automate deployment with a Bash script?

Integrating a Bash script allows you to automate the creation and deployment of resources, significantly simplifying the process.

  1. Create the deployment script: a file called deploy.sh can contain commands to automate resource deployment.

  2. Script structure:

#!/bin/bash resourceGroup="internal-bicep-rg" location="East US 2"# Create resource groupaz group create --name $resourceGroup --location $location# Deploy Bicep resourcesaz deployment group create --resource-group $resourceGroup --template-file main.bicep --parameters @main.parameters.json
  1. Running the script: by running deploy.sh, you automate tasks with convenience, maximizing your time for other activities.

How to ensure effective deployment in Azure?

Once you have configured your scripts and parameters, it is crucial to verify that everything works as intended.

  • Check in the Azure portal: after deployment, check the Azure portal to confirm that your resources are in place. This assures you that any changes made through automation are working as expected.

In summary, using Bicep in combination with other scripting and command tools such as the AZ CLI greatly enhances your deployment and management capabilities in Azure. By investing time in creating parameterized and automated scripts, you not only optimize processes, but also become a more efficient and effective professional. Keep exploring and honing your skills!

Contributions 0

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?