PowerShell script to export/import the Azure Firewall Policy rules

Here’s a PowerShell script to export the Azure Firewall Policy rules from the East US region and import them to the West US region. The script assumes you have the necessary Azure modules installed and are authenticated. Explanation: Make sure you have the necessary permissions to access and modify Azure Firewall policies and that the Azure PowerShell module is installed […]

Read more

Bash script to join a Linux server to an Active Directory domain

Joining a Linux server to an Active Directory (AD) domain is a non-trivial task and requires a series of steps, which might vary based on the Linux distribution and the version of AD. In most common scenarios, you can use tools like realmd or sssd to facilitate the join. Below, you’ll find a basic script that uses realmd to join […]

Read more

O365: Delete specific email from sender to mailboxes

Here’s a PowerShell script that uses the Exchange Online PowerShell module to delete a specific email from multiple mailboxes. This script searches for an email with the specified subject line sent from the specified sender and deletes it. Before running the script, ensure you have the Exchange Online PowerShell module installed and have the necessary permissions to search and delete […]

Read more

Automate Infrastructure in Azure using Terraform and Azure DevOps

Automating infrastructure setup in Azure Cloud using Terraform and Azure DevOps is a powerful approach to managing your infrastructure as code (IaC). This allows you to define and manage your Azure resources programmatically, version control your infrastructure configurations, and automate the deployment process.  We will be creating a Java based WebApp(app service) in Azure cloud using Terraform and automate the […]

Read more

How to deploy an Azure Virtual Desktop environment using PowerShell

To deploy an Azure Virtual Desktop environment using PowerShell, you need to perform the following steps: That’s it! You have now deployed an Azure Virtual Desktop environment using PowerShell. Please note that some parameter values, such as resource group name, location, virtual network details, and user principal names, should be replaced with your specific values.

Read more

Here’s an example of Terraform code to deploy Azure Virtual Desktop resources

Configure the Azure provider provider “azurerm” {features {}} Create a resource group resource “azurerm_resource_group” “rg” {name = “my-resource-group”location = “westus”} Create a virtual network resource “azurerm_virtual_network” “vnet” {name = “my-virtual-network”address_space = [“10.0.0.0/16”]location = azurerm_resource_group.rg.locationresource_group_name = azurerm_resource_group.rg.name} Create a subnet resource “azurerm_subnet” “subnet” {name = “my-subnet”resource_group_name = azurerm_resource_group.rg.namevirtual_network_name = azurerm_virtual_network.vnet.nameaddress_prefixes = [“10.0.1.0/24”]} Create an Azure Virtual Desktop host pool resource “azurerm_virtual_desktop_host_pool” […]

Read more

Setting up FSLogix with Azure Virtual Desktop

Implementing FSLogix within your Azure Virtual Desktop environment provides an optimized experience for your end users. For example, a non-persistent Pooled Windows AVD host pool will allow the user to have a decreased sign-in time because user profiles are stored in the VHD(X) file that gets mounted every time the user signs into the session host. You can implement this […]

Read more
1 2 3 71