Azure AD Kerberos. Allows you to connect to Azure File Shares using Azure Active Directory Credentials. Unfortunately, the identities (user) must still be synchronized from Active Directory to Azure Active Directory. But only this option allows you to connect to Azure File Shares from computers connected to Azure Active Directory and not to Active Directory. Configure Kerberos authentication for Azure files: Provide AD details acquired by: $domainInformation = Get-ADDomain $domainGuid = $domainInformation.ObjectGUID.ToString() $domainName = $domainInformation.DnsRoot Configure the private link and make sure it resolves correctly (optional). MFA excluded for Application [Storage Account]: API permission granted for [Storage Account] application: Computer must be Windows 10 with https://support.microsoft.com/topic/november-22-2021-kb5007253-os-builds-19041-1387-19042-1387-19043-1387-and-19044-1387-preview-d1847be9-46c1-49fc-bf56-1d469fc1b3af installed, or Windows 11 or Windows Server 2022. Add the following entry end restart the computer. reg add HKLMSYSTEMCurrentControlSetControlLsaKerberosParameters /v CloudKerberosTicketRetrievalEnabled /t REG_DWORD /d 1 – executed and computer restarted. Now you should be able to browse the Azure File Share.
Month: January 2023
Connect to Azure Virtual Machine using Azure Active Directory Account
Deploy your favorite VM that Supports login using Azure Active Directory credentials, selecting the option Login with Azure AD, and then Enable system assigned managed identity will be selected automatically. In the IAM of the Virtual Machine (or Resource Group, Subscription, and finally Management Group), add one of the options: Virtual Machine Administrator Login Virtual Machine User Login against the user you would like to use to log in. Download an RDP file that can connect to the VM Edit the downloaded file using notepad, adding two lines: authentication level:i:2 enablecredsspsupport:i:0 So the whole file should look like this: full address:s:20.124.36.45:3389 prompt for credentials:i:1 administrative session:i:1 authentication level:i:2 enablecredsspsupport:i:0 Disable NLA (Network Level Authentication) on the VM using the Run command: Restart the VM. Double-click on the file and connect to the VM using Azure Active Directory credentials; please add AzureAD before the username. You should see the following screen to enter the credentials: If you see the message: The Sign-in method you’re trying to use isn’t allowed. For more info, contact your network administrator. You must relax the Conditional Access methods by adding Azure Windows VM Sign-In to the excluded apps.
Azure Monitor Agent (AMA) vs Log Analytics Agent (part 3) – How to ingest logs
The initiative: [Preview]: Configure machines to create the user-defined Microsoft Defender for Cloud pipeline using Azure Monitor Agent mentioned in part 1 contains from the following policies: [Preview]: Assign Built-In User-Assigned Managed Identity to Virtual Machines Configure Linux virtual machines to run Azure Monitor Agent with user-assigned managed identity-based authentication Configure Windows virtual machines to run Azure Monitor Agent with user-assigned managed identity-based authentication [Preview]: Configure supported Linux virtual machines to automatically install the Azure Security agent [Preview]: Configure supported Windows machines to automatically install the Azure Security agent [Preview]: Configure machines to create the Microsoft Defender for Cloud user-defined pipeline using Azure Monitor Agent [Preview]: Configure Association to link virtual machines to user-defined Microsoft Defender for Cloud Data Collection Rule Configure Linux Arc-enabled machines to run Azure Monitor Agent Configure Windows Arc-enabled machines to run Azure Monitor Agent [Preview]: Configure supported Linux Arc machines to automatically install the Azure Security agent [Preview]: Configure supported Windows Arc machines to automatically install the Azure Security agent [Preview]: Configure Arc machines to create the Microsoft Defender for Cloud user-defined pipeline using Azure Monitor Agent [Preview]: Configure Association to link Arc machines to user-defined Microsoft Defender for Cloud Data Collection Rule So you … Azure Monitor Agent (AMA) vs Log Analytics Agent (part 3) – How to ingest logsRead more
Azure VM – Deploy CNI plug-in for Docker containers
Everyone is usually aware of CNI in Azure Kubernetes Service; it allows you to expose the POD IP address in Virtual Network directly. So simply, every pod has an IP address from Virtual Network. This functionality can also be reached if you install docker in Virtual Machine. It can be helpful if you would like to build functionality similar to google cloud “… deploy a container to this VM instance by using a container-optimized OS image…”. You can start reading about this technology here: https://learn.microsoft.com/en-us/azure/virtual-network/deploy-container-networking#download-and-install-the-plug-in and finish with this repo: https://github.com/Azure/azure-container-networking. But there is the clue – command by command for Linux and Windows: Ubuntu 20.04: sudo su –sudo apt-get updatesudo apt-get install ca-certificates curl gnupg lsb-release sudo mkdir -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /etc/apt/keyrings/docker.gpg echo “deb [arch=$(dpkg –print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin docker ps git clone https://github.com/Azure/azure-container-networking.git cd azure-container-networking/scripts/ ./install-cni-plugin.sh v1.4.20 chmod u+x docker-run.sh sudo apt-get update sudo apt-get -y install jq #Nic-name and resourcegroup is the Network Interface of Virtual Machine – That one create additional ip on existing network interfaceaz network nic … Azure VM – Deploy CNI plug-in for Docker containersRead more
Azure Monitor Agent (AMA) vs Log Analytics Agent (part 2)
Let’s see how Azure Monitor Agents looks under Linux VM:As previously mentioned, boot Legacy Log Analytics Agent and new Azure Monitor Agent can report to the single Log Analytics Workspace. What it looks like: One of the differences between Log Analytics Agent for Windows and Linux was that only Windows one can report to two different Log Analytics Workspaces simultaneously. Using bot agents Azure Monitor Agent and Legacy Log Analytics Agent, you can also reach this functionality for Linux.From another perspective, reporting twice, especially for one Log Analytics Workspace, you will get all the data double, you will be paying double, and your reports can be affected by double data. Sometimes you can see a message on your Virtual Machine “Some details about the installed extensions are unavailable. This can occur when the virtual machine is stopped or the agent is unresponsive…” suggestion that the VM is not running or hangs can be OK and easy to resolve, by restarting, but if it does not help please try to redeploy VM:To check if Azure Monitor Agent is working under Linux, just execute the following: systemctl status azuremonitoragent You can also view logs using the following: cat /var/opt/microsoft/azuremonitoragent/log/mdsd.* To check if … Azure Monitor Agent (AMA) vs Log Analytics Agent (part 2)Read more