Create new user via Microsoft Graph using PowerShell

cls # Load Active Directory Authentication Library (ADAL) Assemblies $adal = “${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.dll” $adalforms = “${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll” [System.Reflection.Assembly]::LoadFrom($adal) [System.Reflection.Assembly]::LoadFrom($adalforms) $cred = Get-Credential $mycred = new-object Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential($cred.UserName,$cred.Password) # Defining Azure AD tenant name, this is the name of your Azure Active Directory $adTenant = ”??????.onmicrosoft.com” $login = Add-AzureRmAccount -Credential $cred Get-AzureRmSubscription Select-AzureRmSubscription -SubscriptionID ‘??????‘ # Set…

0

user management using the AzureAD powershell module

cls $cred = Get-Credential #Connect to your AzureAD tenant Connect-AzureAD -Credential $cred # Get a user by UPN $user = Get-AzureADUser -ObjectId “user1@????.onmicrosoft.com” $user | fl # Update some properties $user = Set-AzureADUser -ObjectId $user.UserPrincipalName -Department “Azure Architecture” -Country “Turkey” # Get a user by UPN $user = Get-AzureADUser -ObjectId “user1@????.onmicrosoft.com” $user | fl

0

Managing Azure AD using Graph API and ADAL inside PowerShell

cls # visit “https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/85/38/metablogapi/image_74154BB9.png” # Load Active Directory Authentication Library (ADAL) Assemblies $adal = “${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.dll” $adalforms = “${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll” [System.Reflection.Assembly]::LoadFrom($adal) [System.Reflection.Assembly]::LoadFrom($adalforms) $cred = Get-Credential $mycred = new-object Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential($cred.UserName,$cred.Password) # Defining Azure AD tenant name, this is the name of your Azure Active Directory $adTenant = ”bulentozkirhotmail.onmicrosoft.com” $login = Add-AzureRmAccount -Credential $cred Get-AzureRmSubscription Select-AzureRmSubscription -SubscriptionID…

0

All about Office 365 Pro Plus deployment and updates

I have consolidated the most essential information about Office 365 Pro Plus deployment and updates in a single concise presentation. Please use it if you find it helpful. If there are any mistakes in this presentation, please let me know so that I can correct and republish it immediately. Office 365 ProPlus deployment and updates

2

Azure Resource Manager RBAC management practical tips

Please make sure that you have installed the latest Azure and Azure AD PowerShell libraries as I posted in my previous blogs. https://aka.ms/op0ndc First let’s login to Azure AD. $cred = Get-Credential Add-AzureRmAccount -Credential $mycred Select-AzureRmSubscription -SubscriptionID ‘???’ This script lists all the role definitions. Get-AzureRmRoleDefinition| Select-Object Name This script lists all possible actions for…

0

Deploying your MFA Server On Premises that is integrated with ADFS server

You can install MFA Server on ADFS server on premises. The installation steps are documented in these KB articles https://azure.microsoft.com/en-us/documentation/articles/multi-factor-authentication-get-started-server/ and https://azure.microsoft.com/en-us/documentation/articles/multi-factor-authentication-get-started-adfs-w2k12/ , respectively.   To install the Azure Multi-Factor Authentication Server locally on the same server as AD FS Download and install the Azure Multi-Factor Authentication Server on your AD FS federation server. In…

0

Export all NGS rules in ARM for all Subscriptions

You can associate different NSGs to a VM (or NIC, depending on the deployment model) and the subnet that a NIC or VM is bound to. When that happens, all network access rules are applied to the traffic, by priority in each NSG, in the following order:   Inbound traffic NSG applied to subnet. If subnet…

0

how to resize your VNET Gateway from Basic to High Performance

Please note that when you create a VNET Gateway, the default Virtual Network Gateway SKU is Basic. If you need higher level SKU for better gateway performance with some extra cost (check Azure pricing page for more detais), you can modify the VNET Gateway size to Standard or HighPerformace as below. You can change it…

0

how to export VM details in Azure Resource Manager (ARM)

1. Run the following PowerShell script. $cred = Get-Credential (Login-AzureRmAccount -Credential $cred)>0 $Subscriptions = Get-AzureRMSubscription $vmarray = @() $i=0 foreach ( $Subscription in $Subscriptions ) { $SubscriptionId = $Subscription.SubscriptionId (Login-AzureRmAccount -Credential $cred -subscriptionid $SubscriptionId)>0 (Select-AzureRMSubscription -SubscriptionId $SubscriptionId)>0 $i++ Write-Progress -activity $subscription.SubscriptionName -PercentComplete ($i/$Subscriptions.Count*100) ($rmvms=Get-AzurermVM) > 0 foreach ($vm in $rmvms) { $vmstatus = Get-AzurermVM -Name…

0

how to resize your OS disk of your Azure VM to maximum allowed size

1. Run the following PowerShell. Modify the parameters accordingly. $cred = Get-Credential Login-AzureRmAccount -Credential $cred $resourceGroup = “nerg1” $location = “North Europe” $vmName = “nerg1win1” $vm = Get-AzureRmVM -ResourceGroupName $resourceGroup -Name $vmName Stop-AzureRmVM -ResourceGroupName $resourceGroup -Name $vmName -Force $vm.StorageProfile.OsDisk.DiskSizeGB = 1023 Update-AzureRmVM -ResourceGroupName $resourceGroup -VM $vm   Start-AzureRmVM -ResourceGroupName $resourceGroup -Name $vmName 2. Extend the…

0