NSG is made mandatory in the new VM creation blade
OS Version Name Of Azure VMs
Hi Expert,
I am searching for a way to find any method (Powershell Script) to get all the VM OS name report under subscription.
Like we use this command:-
(gwmi win32_operatingsystem).caption
I can find either VM is win or Linux but i am looking for version name either 2012 R2 or 2008 or 2016 etc....
Cheers, Gourav Please remember to mark the replies as answers if it helped.
Using the portal - how do I specify the subscription a VM is to use
Fixed/static MAC addresses for Azure VMs - for software licensing reasons
We have a number of Linux VMs in Azure which run a 3rd party application. This software is licensed against the MAC address of the ethernet interface. If the MAC address changes then we can update the license but this can take anywhere from a few hours to
a few days as we depend on our supplier to re-issue the licenses.
Is it possible to configure our VMs to have a permanently fixed/static MAC address?
If not, under what circumstances might the MAC address change?
The events which I am assuming could cause a MAC address change are:
- Stop/Deallocate
- Redeploy
- Unplanned Hardware Maintenance Event (Live Migration)
- Unexpected Downtime
- Planned Maintenance events
See https://docs.microsoft.com/en-us/azure/virtual-machines/linux/manage-availability for definitions of the above events.
These VMs are spread across multiple Azure regions to give us some protection against unexpected MAC address changes but we would like to know exactly where we stand and what options there are to prevent this from occurring.
My research so far has led me to these resources, but none are yet conclusive:
- https://www.reddit.com/r/AZURE/comments/844xw3/static_mac_address_in_azure_that_survives_forced/ - inconclusive
- https://feedback.azure.com/forums/216843-virtual-machines/suggestions/5217933-static-mac-address - marked as "Completed" but the comments say otherwise
- https://social.msdn.microsoft.com/Forums/Lync/en-US/9252f5ad-05a3-45cd-8e1e-16eaece4c419/static-mac-address-for-azure-vm-using-loopback-nic?forum=WAVirtualMachinesVirtualNetwork - inconclusive
Thanks.
Cuckoo in Azure VM
Hi, I was simply wondering if it is a possibility, both legally and practically to analyze malware on an Azure virtual machine using the Cuckoo sandbox?
Thanks.
Bandwidth per user
Hello, I have a web system hosted in a virtual machine Standard F8s_v2 (8 vcpus, 16 GB of memory) in which my users use as a repository of files, when users download their files through the browser the application is frozen only for that user who is downloading
until the dowload completes, as if it had some type of bandwidth per user / ip.
When this happens the other logged-in users can navigate normally.
This happens to any users who download.
Best regards,
Filipe Castro.
I couldnt find "Windows Client" when I tried to add a new vm in my resource group
Account: XXXXX@XXXXX.XXX
free trial
I use azure because my course requires so .
I couldnt find "Windows Client" image when I tried to add a new vm
Streaming Diagnostics data from VM to EventHub
Would anyone be able to confirm that it is indeed possible to stream data from Azure Diagnostics running on a VM to EventHubs. From my reading of the docs it would appear to be possible, but I'd like to be certain as a number of issues with configuring sinks and event hubs seem to contradict this.
The overall goal is to be able to feed the data to our own monitoring applications so that we can track disk space usage and some other metrics that aren't provided through portal alerts for VMs.
Can't remote VM in azure
Hi,
I can't remote to my VM in azure. When i check the boot diagnostics, the screenshot shows the windows logo. On resource health, it says "the VM is rebooting as requested by an authorized user or process. It will be back online after the reboot completes."
Creation of New VM with higher OS
Hi All,
I have two 2008 machines deployed in Azure and now i want to shift them on 2016 DC. But unfortunately OS upgrade is not supported on Azure. So what i am trying to do is can i create same with higher OS by editing the JSON of current VM and create the new VM using this template.
Is it possible? i might be wrong here.
If yes then apart from OS what should i need t edit in JSON since there are VNET and storage account i could see in JSON.
{"properties": {"vmId": "5c90131a-XXXX-4XXX-XXXXf-XXXXXXXX","availabilitySet": {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXX/providers/Microsoft.Compute/availabilitySets/XXXXXXXXX" },"hardwareProfile": {"vmSize": "Standard_D3_v2" },"storageProfile": {"imageReference": {"publisher": "MicrosoftWindowsServer","offer": "WindowsServer-HUB","sku": "2008-R2-SP1-HUB","version": "latest" },"osDisk": {"osType": "Windows","encryptionSettings": {"enabled": true,"diskEncryptionKey": {"sourceVault": {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXX/providers/Microsoft.KeyVault/vaults/XXXXXXXXXXX" },"secretUrl": "https://XXXXXXXXXXXXXX.vault.azure.net/secrets/XXXXXXXXXXXXXXXXXXXXX/e4fcXXXXXXXXXXXXXXXa256eb" } },"name": "XXXXXXXXXX-OS","createOption": "FromImage","caching": "ReadWrite","managedDisk": {"storageAccountType": "Standard_LRS","id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXXXX/providers/Microsoft.Compute/disks/XXXXXXXXXX-OS" },"diskSizeGB": 128 },"dataDisks": [ {"lun": 1,"name": "XXXXXXXXXXXXX-DATA01","createOption": "Attach","caching": "None","managedDisk": {"storageAccountType": "Standard_LRS","id": "/SUBSCRIPTIONS/XXXXXXXXXXXXXXXXXXXXXXXX/RESOURCEGROUPS/XXXXXXXXXXXXXX/PROVIDERS/MICROSOFT.COMPUTE/DISKS/XXXXXXXXXXXXX-DATA01" },"diskSizeGB": 128 } ] },"osProfile": {"computerName": "XXXXXXXXXXXX","adminUsername": "AzureAdmin","windowsConfiguration": {"provisionVMAgent": true,"enableAutomaticUpdates": true },"secrets": [] },"networkProfile": {"networkInterfaces": [ {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXX/providers/Microsoft.Network/networkInterfaces/XXXXXXXXXX-NIC1","properties": {"primary": true } } ] },"diagnosticsProfile": {"bootDiagnostics": {"enabled": true,"storageUri": "http://XXXXXXXXXXXXXXXXXX.blob.core.windows.net" } },"licenseType": "Windows_Server","provisioningState": "Succeeded" },"resources": [ {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXX-RG/providers/Microsoft.Compute/virtualMachines/XXXXXXXXXXXXX/extensions/AzureDiskEncryption" }, {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXX-RG/providers/Microsoft.Compute/virtualMachines/XXXXXXXXXXXXX/extensions/IaaSAntimalware" }, {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXX-RG/providers/Microsoft.Compute/virtualMachines/XXXXXXXXXXXXX/extensions/Insights.VMDiagnosticsSettings" }, {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXX-RG/providers/Microsoft.Compute/virtualMachines/XXXXXXXXXXXXX/extensions/MicrosoftMonitoringAgent" }, {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXX-RG/providers/Microsoft.Compute/virtualMachines/XXXXXXXXXXXXX/extensions/tscaddusers" }, {"id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXX-RG/providers/Microsoft.Compute/virtualMachines/XXXXXXXXXXXXX/extensions/VMAccessAgent" } ],"type": "Microsoft.Compute/virtualMachines","location": "canadaeast","id": "/subscriptions/XXXXXXXXXXXXXXXXX/resourceGroups/XXXXXXXXXXXXX/providers/Microsoft.Compute/virtualMachines/XXXXXXXXXXXXX","name": "XXXXXXXXXXXXXXX" },
Please share your views on it.
Cheers, Gourav Please remember to mark the replies as answers if it helped.
Cannot connect to OpenSSH (windows server 2016 datacenter)
I started the project with FileZilla template which seems to work. Port 21, 990 are accessible via the internet.
trying to install net framework 3.5 on VM Windows 2016
I would like to install .NET Framework 3.5 on Windows Server 2016 VM . Please see error messages below.
PS C:\Users\veryimportantpu> Add-WindowsFeature NET-Framework-Core
Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
One or several parent features are disabled so current feature can not be enabled. Error: 0xc004000d
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind owsFeatureCommand+ Add-WindowsFeature NET-Framework-Core
Enable / Install .NET 3.5 on Azure Windows Server 2016 hangs and never complete.
Hi Team,
I am trying to enable .NET 3.5 feature on some Windows Servers 2016 I have in my Azure tenancy but it seems there is no way to get it to work. Tried from roles and features, tried with Powershell, tried with DISM on cmd prompt and same result. The process hangs at around 25% and never completes. intall-windowsfeature on Powershell gives me an OperationTimeout. Any idea? If I try on my Windows Server 2016 I have in house it all works and complete within few minutes.
I already tried to specify a source location for the sxs files and also the image.wim file from a copy of Windows Server 2016 I have but I have never received the error message complaining about sources missing.
Is there way to Install and configure SQL and SharePoint (Single) on Azure VM using VSTS or anything else
Hello
Wanted to know if there is a way to Install and Configure SharePoint / SQL unattended or automatically from VSTS or any another way. Goal is to create a Infra in Azure without any Manual intervention.
SQL and SharePoint will need to be configured on different VMs in Azure.
Thanks in Advance.
Kubernetes/AKS and Hybrid connections - do they connect?
AAD login to a Linux Virtual Machine doesn't work anymore!
Hi,
I have used the AADLoginForLinux
all extension in the VM. The login stopped to work at last night. When I try login to the VM by using device code authentication, I received
"Access denied: to sign in you must be assigned a role with action 'Microsoft.Compute/virtualMachines/login/action', for example 'Virtual Machine User Login'
Access denied"
The RBAC roles are defined as yesterday and nothing should be changed in the VM. I rebooted the VM, no effect. I removed the AADLoginForLinux extension
and installed it again, no help. If I create a totally new VM and install the extension there the AAD login works.
How I can get the AAD login working again on the existing VM?
Increase Total Regional vCPUs
Am trying to increase the Total Regional vCPU in East US as an account Owner.
But
1. I donot see any option to increase that from Request Quota
2. The support has been totally unhelpful, they want a Global Admin to make this request but i donot see any Role of Global Admin in IAM roles and i am already the owner of the account.
Kubernetes/AKS and Hybrid connections - do they connect?
Join Azure VM to Azure Active Directory
I truly hope I can get some help on this. I have an Azure Active Directory. It was created with our Office 365 subscription. It has all of our users in the Azure AD and this would be great to use. I have added a paid subscription to the service so that I could create an Azure VM. My plan was to create an Azure VM and then integrate the VM with the Azure AD. Therefore, I could use the users from the Azure AD on my VM. I tried this based on the article.
https://docs.microsoft.com/en-us/azure/active-directory-domain-services/active-directory-ds-admin-guide-join-windows-vm
When I attempt to do this I receive an error that an Active Directory Domain controller could not be found. The article says verify that the VM is in the same network(VNET) as the Azure Active Directory services. I have spent a few days and do not see anything or any tool that would let me determine what network the Azure AD is running on. Hopefully someone can help with this.
In summary I am trying to sync users from the Azure AD onto the Azure VM.
How to get the Azure VM metric using powershell
Team,
Thanks in advance, I know we can see the diagnotic CPU usage metric in average using azure portal.
But wanted to know if we can find the same using powershell? Below command is going to be deprecated.
Get-AzureRmMetric WARNING: 9.50.21 PM - *** The namespace for all the model classes will change from Microsoft.Azure.Management.Monitor.Management.Models to Microsoft.Azure.Man agement.Monitor.Models in future releases. WARNING: 9.50.21 PM - *** The namespace for output classes will be uniform for all classes in future releases to make it independent of modifications in the m odel classes. WARNING: [Get-AzureRmMetric] Parameter deprecation: The DetailedOutput parameter will be deprecated in a future breaking change release.