Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

173 total results found

Credential handling with Azure KeyVault

Azure Functions

With this option, the secrets for Azure Functions are stored in an Azure Key Vault. An access policy is placed on the Key Vault which only allows the Managed Identity of an Azure Function to read the secret. On the Azure Function side, a Managed Identity is se...

Access Azure Function App via OAuth 2.0 authentication

Azure Functions

This is a guide to protect Azure Function executions using OAuth 2.0. So the execution of the code is not possible without Client ID and ClientSecret. This allows a much more secure authentication than just using function codes in the URL in the query. Disabl...

Expose docker host API to connect over TCP

Docker API

Edit file on docker host Edit this file /lib/systemd/system/docker.service with root permissions and add the string of " -H=tcp://0.0.0.0:2375" behind the "ExecStart=" row. sudo nano /lib/systemd/system/docker.service Add text to configuration file Reloa...

Perform user interactions in the system context

PowerShell

Usage of ServiceUI ServiceUIx64.exe can be used to execute a certain part of a script in the user context, even though you execute the main script in the system context. ServiceUI.exe -process:TSProgressUI.exe %windir%\sysnative\WindowsPowerShell\v1.0\powers...

Quick commands

Cron

This summary of the commands helps to administer cronjobs better. List cronjobs With the following command you can list all current cronjobs. This command lists all jobs in the current users scope. crontab -l You can specify the parameter "-u" and add a us...

Quick commands

Ansible

Check host availability Hosts file [<hostgroupname>] <ipadress1> <ipadress2> <ipadress3> <ipadress4> Check availability ansible -i hosts <hostgroupname> -m ping --user <username> --ask-pass Update all repositories Ansible playbook - hosts: lnc-kuber...

Make script executable

Bash

In order to make sure that a file ending in .sh can be executed, you have to change its permissions. This is necessary if a script is to be executed by an automation like Ansible or Crontab. chmod +x /path/to/yourscript.sh Afterwards it can be called by its ...

Backup MongoDB Docker container via Bash script

Bash

This short script is to backup a MongoDB database inside a docker container. A command is executed inside the Docker container via "docker exec". The command uses the program "mongodump", which is already installed on most container images. There you can speci...

Things to consider

Installation & Setup

Here are some tips and tricks for you to learn from my mistakes in setting up a flutter environment. These mistakes are sometimes tedious to fix. Feature or version conflict This error comes into play if you have some error while running the "flutter run" co...

Installation process for Windows

Installation & Setup

This guide is for setting up a Flutter environment to test mobile applications with Android Studio. This guide uses Visual Studio Code with the Flutter extension. Install Flutter SDK Download the source code for flutter: Windows install | Flutter Extract ...

Notify client app secret expiration with automation

Microsoft Entra ID

Requirements: Create an App Registration with Application.Read.All permissions and a client secret. With this automation all client secrets and their expiration dates are evaluated via Graph API. A message is posted in a team channel when a client secret is a...

Download & read files via Graph API

Microsoft SharePoint

Requirements: App Registration with appropriate permissions, as described here: Read SharePoint files ... | LNC DOCS (lucanoahcaprez.ch) With this tutorial, files can be read from SharePoint Online repositories automatically and without user interaction. This...

Canon printer installation with corresponding drivers for project based printing

Support CHB

Add new printer Open Settings -> "Bluetooth and Devices" -> "Printers & scanners" -> "Add device" Select "CHB-DruckerS16" Wait until the device is installed properly. Edit printer driver WIN + R -> "control printers" Select printer "CHB-DruckerS16"...

Redirect Windows folder to OneDrive via PowerShell

Microsoft Windows

This PowerShell script is only usable for Windows Use case The following script lets you redirect the main folders of your Windows Explorer. This will ensure that all files and data are stored in the OneDrive storage solution managed by the company. The onl...

List table content with PowerShell via OAuth 2.0 authentication

Azure Storage

Requirements: Permissions to create an App Registration and PowerShell Modules "AzTable" & "Az.Storage". This tutorial describes how to use content from an Azure Storage Table in a PowerShell script. The authentication against the Azure Storage API is unatten...

Write table content with PowerShell via OAuth 2.0 authentication

Azure Storage

This tutorial describes how to add new content to an Azure Storage Table with a PowerShell script. The authentication against the Azure Storage API is unattended and credentials are handled with an App Registration. Preparations To gain access to the storage...

Get App Registrations by User Principal Name

Microsoft Entra ID

Graph API permission "Application.Read.All" or Cloud Application Administrator Role. This guide explains how you can get all App Registrations by a certain user. This can be handy when someone leaves a company and it needs to be evaluated which app registrati...

Set primary user of Windows devices by last logged in users with automation

Microsoft Intune

This tutorial describes how an automation can be used to set the primary user according to the last signed in user. The Intune data is queried via an App Registration on Graph and modified accordingly. This automation is based on an Azure runbook and executes ...

Change MFA Phone via Graph API

Microsoft Entra ID

This automation sets the primary mobile number as MFA method according to a UPN. This can be used, for example, if from an internal store or user interface (e.g. ServiceNow) the users should automatically set the MFA method a first time. For example, this code...

Create reference to Azure Key Vault content from function code

Azure Functions

Requirements: Basic Azure Function knowledge and access to an Azure Key Vault & Azure Function. This topic shows you how to work with secrets from Azure Key Vault in your Azure Functions code without requiring any code changes. Azure Key Vault is a service th...