How to Update the EmployeeOrgData Value on Entra ID Users

In this article, I’ll explain how to update the EmployeeOrgData for Entra ID users, which includes the Division and CostCenter properties. These properties are typically synchronized from an on-premises Active Directory environment via Entra Connect, but you can also set them using the PowerShell Graph module. Below, I’ll provide an example of how to do this. Updating EmployeeOrgData The PowerShell code below first connects to Graph using the User.ReadWrite scope, […]

Read more

Deploy Azure-Firewall-mon to a Static Web App

Overview​ Azure-Firewall-mon (AFM or Azure Firewall Monitor) is a custom solution (currently in a functional beta) created by an Italian Microsoft Cloud Solution Architect called: Nicola Delfino, its worth mentioning that although a Microsoft CSA makes AFM, IT IS NOT A SUPPORTED MICROSOFT PRODUCT. Monitoring Azure Firewall can be a pain – with trawling through logs – using the Azure Firewall Workbook – helps fill in the gap […]

Read more

Build a docker image in a self-hosted agent running on Azure Container Instances

How can a self-hosted agent running on Azure Container Instances create a docker image? Even while the question may seem simple, it is difficult. Suppose you’ve already set up a self-hosted agent on an Azure Container Instance (ACR); You run a pipeline with a simple docker image and … you get the below error: Unable to locate executable file: ‘docker’. […]

Read more

Self-hosted agent on Linux created in 3 minutes

Self-hosted agent on Linux In some cases is necessary, for example, you need to integrate with VNET – because the resources you want to access are not publicly accessible. This can be a storage account, container registry, or many others. Using my instruction you build and run a self-hosted agent in 3 minutes. In that scenario you must: Build and push […]

Read more

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
1 2 3 72