Category: Tips and Trix
Joining a Linux machine to a Windows domain is not straight forward.
You will need to connect to the server via an SSH app (f.eks Putty)
- Sign-in with the admin and password you created when deploying the server
- To do some of the commands you will need to be ROOT, but you don’t know this password, so run the following command: sudo -i
enter the password for the adm account you created
- Install realm: yum install realm realmd -y
- Add to domain: realm join yourdomain.com –user firstname.lastname@example.org
If you get error: realm: Couldn’t join realm: Necessary packages are not installed: oddjob, oddjob-mkhomedir, sssd, samba-common-tools, you need to install the missing packages.
f.eks: yum install oddjob -y
And now the machine is in the domain
I wanted to check what OS version I had deployed on a server in Azure, but I couldn’t remember if it was 2012 R2 or 2016.
I checked the server object in Azure and it gave me this
Hmmm…. that didn’t really answer my question (yes I could connect via RDP, but some times you can’t)
I know there are several scripts you can run to get information (that will need a connection, running scripts and so on, not everyone has this access, so they should be able to view this without scripts)
So I decided to check the disk connected to the server, and that gave me a better answer 🙂
There I can see it was a 2012 R2 DC based on the image 4.127….
So in the Resource group (or on VM) find the disk for the server, and you will see the Disk info in the Overview.
We all have our own ways of finding a servers / computers uptime.
But I thought I’d share my favorite way:
$operatingSystem = Get-WmiObject Win32_OperatingSystem
Some times you need to scheduler a restart of services on servers or computers, and I used to do this via a batch job, that I called from Task Scheduler, but..
I found a much easier way of doing this, just create a new task, and add the Actions like bellow.
NET as the program, and START/STOP “SERVICENAME” as the argument
and voila, there it is 🙂
An old “friend” keeps keeps showing up in different environments. So since my old Blog is gone, I will add this again.
But this time I’ll just copy the info from Microsoft’s website.
Thank you Microsoft: https://support.microsoft.com/en-us/help/2020943/-http-400—bad-request-request-header-too-long-error-in-internet-info
If you want to remove Azure Application Gateway Backend HTTP Settings / Probe configs / Backend Address Pools / HTTP Listeners or something else from the Azure Application Gateway, you might end up with the same Microsoft Doc’s as me.
As you see from the post it tells you what to do, but when you check the config in the Portal, it is not gone.
What is missing from the information feed here is that you get the Azure Application Gateway info, then you remove it, and get the code to define it, so the missing ingredient is:
Set-AzureRmApplicationGateway -ApplicationGateway $AppGw
That way you list out the current config, then get the new config, then SET the new config.
And now it is correct in the GUI too 🙂
This is not a straight forward thing, even do you would think so.
1. Open browser, enter the following: https://account.windowsazure.com/Subscriptions
- Sign inn with your Azure Subscription Owner ID
- Press the Subscription you want to change the name of
- On the right hand side, “Edit Subscription details”
- Enter the new name bellow “ SUBSCRIPTION NAME”
Name is now changed, but you need to give access to the subscription, so that you can use it in your environment.
2. Still in the account.windowsazure.com/subscriptions view
- Press the Portal icon upper right
- Find the subscriptions icon on the left side menu
- Press the subscription you want to give access to
- Press the MSN icon, so you can choose Users
- Press Add
- Choose the access level you want to delegate, and find the user.
Now you can utilize the new subscription in your Azure portal
There are so many different locations for Azure Subscription Management and what you can do where. So I have for my own sake made this list.
- View billing
- Add and View Subscriptions
- Add and View Subscriptions
- Delegate the use of Subscription (so it shows up in the Azure Portal for the Administrators (that are to use it))
- Manage most Azure stuff
- View and Use Subscription
- Rename, Add and View Subscriptions
It is a pain in the ass to remember the different locations, but here have it (for now)
$encrypted = Get-Content “D:\Scripts\Azure_Encrypted_Password.txt” | ConvertTo-SecureString