Query request for Azure Usage/Billing API using Postman

Reference Link to query report. https://msdn.microsoft.com/library/en-us/Mt218998.aspx   Generate Bearer Token Login-AzureRmAccount $AccountName =”azureauto@AADTenants.onmicrosoft.com” $Password = “UserPassword” $PayLoad=”resource=https://management.core.windows.net/&client_id=xxxxxxxxxxxxxxxxxxxxx&grant_type=password&username=”+$AccountName+”&scope=openid&password=”+$Password $Response=Invoke-WebRequest -Uri “https://login.microsoftonline.com/Common/oauth2/token” -Method POST -Body $PayLoad $ResponseJSON=$Response|ConvertFrom-Json $ResponseJSON Results,   From Postman

0

Multi-Factor Authentication for Securing RD Gateway Server

System Environment   Configuration 1. Select MFA as an RADIUS Proxy   2. NPS server configuration   3. NPS server configuration – cont #1   4. NPS server configuration – cont #2   5. NPS server configuration – cont #3   6. NPS server configuration – cont #4   7. NPS server configuration – cont #5   8. MFA…

4

Azure Linux VM : Reset password or new access credential when recreating

When recreating a VM with an existing VHD, a SSH login credential should be recreated by “Reset Password” For testing, Create a VM Remove VM while OS VHD left as it was Create a VM with Azure Cli in the example azure login azure config mode arm azure vm create -f VM_NIC_Name -d https://OS_VHD_Storage_Account.blob.core.windows.net/vhds/th-OS_VHD_Name.vhd -o…

0

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