Skip to content

DWBatmanPS/Bicep_Deployments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bicep Deployments

This repository contains Bicep modules, deployment scripts, and lab deployments to help you manage your Azure infrastructure as code.

Contents

  • Bicep Modules: Reusable Bicep modules for various Azure resources.
  • Deployment Scripts: Scripts to automate the deployment of Bicep templates.
  • Lab Deployments: Sample lab environments to demonstrate Bicep deployments.

Getting Started

To get started with deploying Bicep templates, follow these steps:

  1. Clone the repository:

    git clone https://github.com/DWBatmanPS/Bicep_Deployments.git
  2. Install Bicep CLI: Follow the instructions here to install the Bicep CLI.

Deploying Bicep Templates

There are preexisting powershell scripts built to create, update, deploy and manage individual Bicep Labs. The scripts assume that you are running PowerShell 5.1 and have Azure Powershell and Bicep installed. There are several shell scripts and Powershell scripts as well. The script has several options for changing the deployment via switches. Example syntax usage can be found below.

$DeploymentName = 'Deployment-Name-Folder'

.\tools\deployment.ps1 -DeploymentName $DeploymentName -Location 'eastus'

This can also be embedded into a powershell profile using a function. Example syntax usage can be found below.

function Create-BicepDeployment {
    param(
      [Parameter(Mandatory)]
      [string]$DeploymentName,
  
      [Parameter(Mandatory)]
      [string]$Location,
  
      [bool]$subleveldeployment = $false,
      
      [bool]$DeployWithParamFile = $true,
  
      [bool]$Debuglog = $false
    )
    $DeploymentScript = "$env:USERPROFILE\Bicep_Deployments\Tools\deployment.ps1"

     & $DeploymentScript -DeploymentName $DeploymentName -Location $Location -subleveldeployment $subleveldeployment -DeployWithParamFile $DeployWithParamFile -Debuglog $Debuglog
}

Similar functions can be built to handle the other tools scripts.

Repository Structure

Bicep_Deployments/
│
├── Lab_Deployments/
|   ├── AFDx_Deployment/
|   |   ├──src/
|   │   |   ├── main.bicep
|   |   |   ├── main.bicepparam
|   │   └── ...
|   ├── AGIC_Helm_Upgrade/
|   |   ├──src/
|   |   └── ...
|   └── ...
|
├── modules/
│   ├── Microsoft.Authorization/
|   |   ├── agc_roles.bicep
│   |   ├── agic_role.bicep
|   |   └── ...
|   ├── Microsoft.Automation/
|   |   ├── automation_account.bicep
|   |   └── ...
│   └── ...
│
├── scripts/
│   ├── capture_and_upload_server.sh
│   ├── capture_and_upload.sh
│   └── ...
│
└── Tools/
|   ├── Create-BicepDeployButton.ps1
|   ├── Create-BicepProject.ps1
|   └── ...

Contributing

We welcome contributions! Please read our contributing guidelines to get started.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors