Forum Widgets
Latest Discussions
Login to Windows virtual machine in Azure using Azure AD authentication (and the pitfalls)!
Dear Microsoft Azure Friends, This article is about the login to Windows virtual machine in Azure using Azure Active Directory authentication and what needs to be considered in the process. This article describes the procedure. So far, everything is actually in perfect order. https://docs.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows So I have worked through the steps and now I want to log on to the virtual machine with an Azure Active Directory account. Why does this error message appear now? Have I done something wrong? I am going through all the steps again. No fits. So I take another close look at the article and discover the following: But that's exactly not the case with me. I want to connect from my local system which is not registered or joined in Azure. Let's take it one step at a time. First of all, I create a group in Azure Active Directory. This will contain the account I will use later for the login. ATTENTION: Use the appropriate Windows OS => Windows Server 2019 Datacenter edition and later or Windows 10 1809 and later Next I create a new virtual machine with the default settings (including a public IP address and yes this is not good, but this demo absolutely OK). Except for Management I set the following settings. If you want to work with an existing virtual machine you need to install the extension. You can do this with the Azure Cloud Shell, in a Bash terminal. az vm extension set \ --publisher Microsoft.Azure.ActiveDirectory \ --name AADLoginForWindows \ --resource-group YourResourceGroup \ --vm-name YourVM After the virtual machine is created we need to work with Role based Access Control RBAC. There are two roles that can be used. Virtual Machine Administrator Login or Virtual Machine User Login If you need local admin rights you need the first role. If you want to log in as a standard user, you can work with the second role. Now we connect to the virtual machine using RDP, but ATTENTION, I use the account I created when I created the virtual machine (not an Azure AD account). In the virtual machine I start the command prompt and use dsregcmd /status. The machine is Azure AD Joined. In the virtual machine, navigate to Start and invoke "run". Type sysdm.cpl and navigate to the Remote tab. Remove the "Allow connections..." option and click "Select Users". When you click on "Locations" you will immediately see that you cannot select an account from Azure AD. We need the command prompt for this. Start the command prompt with elevated privileges and enter the following (customized with your information, of course). net localgroup "remote desktop users" /add "AzureAD\Email address removed" Go back to the Azure Portal to your virtual machine. Download the RDP connection file. Open this RDP file with an editor and add the following lines. enablecredsspsupport:i:0 authentication level:i:2 Now double click on the RDP connection file and now use the Azure account for login. AND BINGO, we can now log in to our virtual machine using the Azure Active Directory account! Cool! I hope this article was useful. Thank you for taking the time to read the article. Best regards, Tom Wechsler P.S. All scripts (#PowerShell, Azure CLI, #Terraform, #ARM) that I use can be found on github! https://github.com/tomwechsler32KViews8likes18CommentsMove virtual machine between different accounts
Hello guys! Do you know if it is possible to move a virtual machine to another Azure account?SolvedVinícius BarretoJun 11, 2017Copper Contributor71KViews0likes16CommentsManaged Service Identity causes problems resizing VM
The VM will not resize from the Azure portal with an error: Error: The principalId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx' on the resource's Identity property must be null or empty for 'SystemAssigned' identity type I have deleted the ServicePrincipal from AzureAD I have disabled MSI on the VM I have redeployed the VM None of these was sufficient. Any advice as MS EA support seems to not respond despite having a 1 hour target it's been almost 24 hours and no reply.SolvedChris O'DonoghueFeb 24, 2018Copper Contributor6.7KViews0likes8CommentsHow to Automate KB5040434 Installation on Multiple VMs?
Hey everyone, I need to install the KB5040434 update on a bunch of VMs. This update is super important because it fixes several vulnerabilities. Doing this one by one is a huge hassle, and each VM also needs a restart after the update. Is there a way to automate this process? Maybe using Azure Cloud Shell, an automation account, or some other Azure feature? Any tips or guides would be really helpful. Thanks in advance!Solvedexperi18Aug 07, 2024Brass Contributor769Views0likes7CommentsUpgrade Windows Datacenter Server from 2019 to 2022
Microsoft have just released Windows Server 2022 for Azure. Is it possible to update an existing Windows Server 2019 Datacenter to 2022? If so, how do you do it? One could, of course, build another server, but I should like to update the existing one. What are the cost implications if any? I realise a standalone server can be updated, but doing it under Azure may have other implications.Stephen PalmstromNov 05, 2021Brass Contributor10KViews1like7CommentsDisk Encryption
Hi, Does any know if you can encrypt a disk when using the 2016-Datacenter-Server-Core image from Microsoft? When I try it comes up with an error "Failed to configure bitlocker as expected. Exception: The system cannot find the file specified". TrevorTrevor WilcocksonAug 21, 2017Copper Contributor2.9KViews0likes6CommentsExtra license cost with Savings Plan
The moment my Savings Plan started I was hit with a new meter for payg license cost for a variable amount. The existing license meter for the same amount every day continued. As it should because the number of cores and hours have not changed. If I download the cost analysis data I notice that the new meter has a partnumber specified. I am really puzzled by this extra meter which more or less consumes the discount on the VM meter. I have a case at Microsoft but the first response was not encouraging. Has anyone else experienced this? Or can explain it?Harry_van_RijnMar 05, 2023Copper Contributor1.8KViews0likes6CommentsNot able to add Vm to Backend Pool of Azure Load Balancer.
I have created 1 public load balancer and 2 windows Vms. The problem is under backend pool it is showing only 1 vm to add. the second vm is not showing to add to backend pool. Both Vms are in same subnet and both are standalone Vms. Can anyone help on thisneerukattuAug 14, 2022Copper Contributor5.4KViews0likes6CommentsDeploying Domain Controllers with an Availablility Group
Most Microsoft documentation states to deploy DC's in an availability group for maintenance and failure situations. The issue is that all the servers in an availability groups all use the same DNS settings, which doesn't work for several well known reasons. The only solution is to either build another availability group with additional DC's, (Which can add a significant cost to the project) or point the original availability group back to on-prem DC's, thereby negating the reliance on on-prem architecture. Is there any new guidance for this situation?Lynn TowleMar 01, 2019Iron Contributor6.6KViews0likes6Comments
Resources
Tags
- virtual machine224 Topics
- Compute103 Topics
- Cloud Services31 Topics
- Azure Containers25 Topics
- app service15 Topics
- Hands-on-Labs13 Topics
- machine learning8 Topics
- Cloud Essentials8 Topics
- Backup7 Topics
- azure5 Topics