Create custom Azure AD B2B invitation

Today I want to share with you my script for creating custom Azure AD B2B invitation. What is Azure AD B2B? Azure AD B2B (business-to-business) allows organization which are using Azure Active Directory to cooperate with other organizations in secure way. Companies which are using Azure AD can proivde access to applications, resources etc. to their customers and have full control on security. Script which I prepared allows to send …

Configure PowerShell remoting for Azure VMs

Hey scripters, in todays article I want to show you how to configure PowerShell remoting for Azure VMs. Recently I wanted to run the script which will check installed software on all of my Azure VMs. Unfortunately I received following error from each of the machine. I thought that it is only the problem with firewall configuration on Azure VM, so I configure additional rulles to allow connection on port …

Get Office 365 users licenses

Hey scripters, today I want to show you how in easy way get Office 365 users licenses. Script which I’ve prepared connect to Office 365 tenant and in first step check all licenses. Once it is done all users which have attribute isLicensed flagged as True are gathered. In next steps script is filtering users base on license name and export those information to CSV files. Note: Remember to install …

PowerShell in Azure Cloud Shell now available!

On Ignite conference Microsoft announced public preview of PowerShell in Azure Cloud Shell! It’s really good news for Microsoft Azure Cloud and PowerShell enthusiasts 🙂 Till now only Bash was available in Cloud Shell, now end user can choose what is best for him. Probably some of you may ask “What is the difference between using PowerShell with Azure module on desktop and via Cloud Shell?” Here are some points …

Identify Azure AD provisioning errors

In this article I want to show you how to identify Azure AD provisioning errors during sync. One of the feature of Azure Active Directory is identifying issues caused by conflicts during run one of the synchronization tools. Usually this kind of issues are caused by two attrbiutes UserPrincipalName and ProxyAddress which should be unique for objects like Users or Groups in one Azure AD tenant. Identifying Azure AD provisioning …

PowerShell module browser is now available!

On 5th of August Microsoft announce general avaialability of PowerShell module browser. It can be found under this address https://docs.microsoft.com/en-us/powershell/module/ Why it is so cool? If you wrote some PowerShell scripts in your life you know that sometimes is hard to find proper command for your needs. Now you don’t need to search google in order to find proper solution for you, everything what you need is in one place! …

How to create Azure Automation runbook

Today I will not show you any script, but will guide you how to create Azure Automation runbook. For those who didn’t heard about Azure Automation I strongly recommend to check Microsoft documentation – link. To make long story short – Azure Automation is the service in Azure cloud, which allow to automate repetitive tasks in your environment using Powershell :). Not only standard work which can be done on …

How to reset Azure AD MFA settings

Today I want to show you how to easly reset Azure AD MFA settings. In big organization is very frequent situation that users want to change their authentication method or phone number. To make life easier I’ve prepared script which will reset Multi Factor Authentication settings for specific UserPrincipalName. As input parameters to function two variables should be provided – Credentials – PSCredential object (eg. gathered from Get-Credentail function) – …

How to convert Azure VM to use managed disks

Did you ever hear about Azure managed disks? Do you know how to convert Azure VM to use managed disks? If for both question your answer is no, let me help you to explain what managed disks are and for which purpose they are use. Managed disks are new type of storage which is recommended to be used by Azure Virtual Machines. Managed Disks offer two types of storage options: …

Powershell Cognitive Services Face API

Today I want to share with you my Powershell Cognitive Services Face API script. Microsoft Cognitive Services are set of APIs (available from Azure) which are helping with make applications more intelligent. They base on machine learning to detect in intelligent way emotions, speech, faces etc. In my script I wanted to use Face API to detect person on picture. If you are curious how I’ve checked Mona Lisa age, …