HowTo : Azure Linux VM OS partition expansion

Run followin Azure powershell, Login-AzureRmAccount Get-AzureRmSubscription $subscriptionId = “Your Subscription ID” $rgName = “YourResourceGroupName” $vmName = “th-centos” $vm = Get-AzureRmVM -ResourceGroupName $rgName -Name $vmName PS C:\> Stop-AzureRmVM -ResourceGroupName $rgName -Name $vmName OperationId : Status : Succeeded StartTime : 2016-11-28 PM 2:44:30 EndTime : 2016-11-28 PM 2:46:41 Error : PS C:\> $vm.StorageProfile.OSDisk.DiskSizeGB = 130 PS C:\> Update-AzureRmVM -ResourceGroupName…

0

Create a custom VM into Existing Resource Group using Azure RM PowerShell

#Install Azure RM module if missing and Login to Azure Install-Module -name AzureRM -AllowClobber Login-AzureRmAccount Get-AzureRmSubscription   #Set Variables $subscriptionId =  ‘d855443e-XXXX-4a82-9a63-XXXXXXXXXXXX $storageAccountName = ‘YourStorageAccountName’ $sourceImageUri = https://YourStorageAccountName.blob.core.windows.net/vhds/YourUploadedVHDName.vhd’   $resourceGroupName     = “YourResourceGroupName” $locationName          = “YourLocationName”                                    => Ex) Japan East $vnetName              = “YourExistingVirtualNetworkName” $vmnetinf              = “YourNewNetworkInterfaceName” $backendSubnetName     = “YourExistingSubNetName” $remoteAccessNSGName   = “YourNewNSGName ” $vmname                =…

0

Workplace Join/Device Registration to Azure AD for Local Domain joined Windows 7

<A reference originated> https://azure.microsoft.com/en-us/documentation/articles/active-directory-conditional-access-automatic-device-registration-windows7/ https://azure.microsoft.com/en-us/documentation/articles/active-directory-conditional-access-automatic-device-registration/   <Pre-requisite> Accounts between On-premise and Azure AD must be synchronized via AAD connect   <System Configuration check> From DNS server, From ADFS server, 1. O365 federation 2. Enable device registration Initialize-ADDeviceRegistration Enable-AdfsDeviceRegistration Set-AdfsDeviceRegistration -ServiceAccountIdentifier mfalab3\taehee Get-AdfsDeviceRegistration setspn -Q host/fs.mfalab3.com   3. Add claimrules c:[Type == “http://schemas.microsoft.com/claims/authnmethodsreferences”] => issue(claim =…

0

How to request an Azure Support.

Please follow the simple procedure below to create an Azure Support for Technical, Billing and Subscription issues. To begin with, check the link to make sure if you have support plans https://azure.microsoft.com/en-us/support/plans/   1. Browse Azure Portal, https://portal.azure.com 2. Click “?” at top-right corner à New Support Request   3. Select Basic information, then Next…

0

Powershell Script: Task scheduler – Scheduling shutdown Azure VMs

In this article, you will be able to setup TASK schedule to run Azure PowerShell script. Automatic shutdown VMs will be used as an example – Save Money!! Table of Contents 1. Create a schedule 2. Triggers(Daily in the example) 3. Enter “powershell.exe” and location of the script in “Add arguments” Example of “PowerShell scripts…

0

How to guide : Graphical desktop (X Windows System) access to Azure Linux VM

From the client, Download x2goclient, http://wiki.x2go.org/doku.php/doc:installation:x2goclient From the server Install X2Go Server sudo apt-get install python-software-properties sudo apt-get install software-properties-common sudo add-apt-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goserver x2goserver-xsession MATE Bindings sudo apt-get install x2gomatebindings KDE Plasma Bindings sudo apt-get install plasma-desktop XFCE Bindings sudo apt-get install xfce4 LXDE Bindings sudo apt-get all…

0

AAD Connect : How to add an OU to be synced

Here goes to add an OU for AAD Connect sync. 1. Open AAD Connect Synchronization Service Manager 2. Select on-prem AD connector and click Properties 3. Configure Directory Partitions -> Containers 4. Enter Password and click OK 5. Select an OU to be added, “AAD Connect” in this example 6. Create an user for test…

0

AADConnect PowerShell: Manual operations

Importing PowerShell Module Import-Module ADSync Check current sync schedule Get-ADSyncScheduler To set sync interval to every 3 hours Set-AdSyncScheduler -customizedsycncecleinterval 03:00:00 Start by telling the scheduler to stop its current cycle with the PowerShell cmdlet  Stop-ADSyncSyncCycle To initiate a full sync cycle, run Start-ADSyncSyncCycle -PolicyType Initial Force Synchronisation It could be that you have an…

0

Remove Office 365 federation from ADFS server

1. Check federation status, PS C:\Users\administrator> Get-MsolDomain | fl name,status,auth* Name           : mfalab3.com Status         : Verified Authentication : Federated 2. From ADFS server, run following Powershell commands. Set-MsolADFSContext -Computer th-adfs2012 Set-MsolDomainAuthentication -Authentication Managed -DomainName mfalab3.com Get-MsolDomain | fl name,status,auth* (Note : th-adfs2012 : adfs server, mfalab3.com…

0

Secure Sharepoint sites by Azure Multi-Factor Authentication

From your Sharepoint and MFA installed server, Step 1: Check the URL of Sharepoint site to secure with Azure Multi-Factor Authentication Step 2: Add Multi-Factor Authentication for HTTP websites with following base URL of Sharepoint site Step 3: Check users added in “Multi-Factor Authentication server” From an external system, Step 1: Browse URL of Sharepoint…

0