Skip to main content

Recently Updated Pages

Quick commands

Ansible

Check host availability Hosts file [<hostgroupname>] <ipadress1> <ipadress2> <ipadress3> <ipadres...

Updated 1 month ago by Luca Noah Caprez

Backup MongoDB Docker container via Bash script

Bash

This short script is to backup a MongoDB database inside a docker container. A command is execute...

Updated 1 month ago by Luca Noah Caprez

Increase diskstorage for Linux VMs

Bash

The overall process involves several layers: disk → partition → LVM physical volume → LVM logical...

Updated 2 months ago by Luca Noah Caprez

The End of the memberOf Operator in Entra ID Dynamic Groups: Find and Remediate Impacted Objects

Microsoft Entra ID

Microsoft has announced the retirement of the memberOf rule operator for dynamic groups in Micro...

Updated 2 months ago by Luca Noah Caprez

Create Runbook Job via Webhook and Azure Management API

Azure Automation Accounts

To create a Runbook Job you can use the Azure Management API in combination with the webhook feat...

Updated 2 months ago by Luca Noah Caprez

Restrict App Registration application permission to certain mailboxes

Microsoft Exchange

Requirements: Active Exchange Administrator Role and App Registration with application permission...

Updated 2 months ago by Luca Noah Caprez

Send mail via Exchange Online

Microsoft Graph API

Requirements: Authentication header is needed to use this script and API. Basic API information T...

Updated 2 months ago by Luca Noah Caprez

Quick commands

Bash

Change owner of folder sudo chown -R <linuxuser>:<linuxgroup> <pathtofolder> Manage Linux groups ...

Updated 2 months ago by Luca Noah Caprez

Centralize log collection with a custom REST API

Azure Functions

All environments of a larger IT team write several thousand logs and status messages every day. T...

Updated 2 months ago by Luca Noah Caprez

Query Azure Firewall Logs

Azure Log Analytics

Azure Firewall Logs can be stored in an Azure Log Analytics Workspace. This workspace then contai...

Updated 2 months ago by Luca Noah Caprez

How to Function

Azure Functions

This is a short guide for creating an Azure Function. This is a high-level concept in order to be...

Updated 2 months ago by Luca Noah Caprez

Lookup external tenant id

Microsoft Graph API

Requirements: Authorization header and CrossTenantInformation.ReadBasic.All permission on App Reg...

Updated 2 months ago by Luca Noah Caprez

Check if script runs as admin

PowerShell

Check session for admin privileges If you have to run your commands in your custom script as admi...

Updated 2 months ago by Luca Noah Caprez

Write custom logs via PowerShell

Azure Log Analytics

With Log Analytics you can write custom logs. For this the API can be used to write new logs to t...

Updated 2 months ago by Luca Noah Caprez

Sync multiple sites to explorer via PowerShell

Microsoft SharePoint

Prepare CSV Create CSV with these columns. This information is needed to start the Sync Process (...

Updated 2 months ago by Luca Noah Caprez

Get app details and grant permissions to app registration

Microsoft Entra ID

Provision App Registration App Registrations are containers that allow user-independent permissio...

Updated 2 months ago by Luca Noah Caprez

Scripting Guidelines

PowerShell

Variable naming and notation Variables are named in the PascalCase notation. Accordingly, the mai...

Updated 2 months ago by Luca Noah Caprez

Runbook concept with PowerShell

Azure Automation Accounts

Here I describe how to create automations using runbooks. The PowerShell scripts can either run i...

Updated 2 months ago by Luca Noah Caprez

Function concept with PowerShell

Azure Functions

Azure Function Apps is a "Function as a Service" solution and offers serverless execution of high...

Updated 2 months ago by Luca Noah Caprez

Components for Cloud PC deployment

Windows 365 Cloud PC

Windows 365 license To enable the Windows 365 GUI in Intune admin center, you have to own at leas...

Updated 2 months ago by Luca Noah Caprez