Quantcast
Channel: Azure Virtual Machines forum
Viewing all 12545 articles
Browse latest View live

Reserved Instance is not applied to VM

$
0
0

Hi,

So I have 1 VM running in 1 Subscription. I bought a reserved instance that match the region and the size.

But the reservation is not being applied to the VM. What could be missing?


Azure agent for Linux issue

$
0
0

Hello everyone

During customer compliance, the following vulnerability was found:

https://www.tenable.com/plugins/nessus/33851

The following running daemon is not managed by RPM : /var/lib/waagent/Microsoft.OSTCExtensions.LinuxDiagnostic-2.3.9021/bin/mdsd

As I understand it: this is the part of the Azure agent that is installed on Linux servers by the Azure Management Portal (in this case, AzureGov)
Perhaps there is an updated version of the agent in which this problem is fixed?

Add Extension script from Blob Storage during VM provisioning - GUI

$
0
0

Hi

I need to add an extension script that is stored in a blob storage on Azure for VM Provisioning.

I can see when I click the add extension option, only the local drives are visible.

Is there a way to map a file that is stored in azure storage as extension file during VM provisioning.

Thanks

Senthil

ARM Template for KQL Query Alert

$
0
0

Hi All,

I want to configure Log Analytics alert using ARM templates so just following given link:-https://docs.microsoft.com/en-in/azure/azure-monitor/insights/solutions-resources-searches-alerts#sample

But problem is, I am working on a requirement to create CPU, Memory and Disk alert. And for this I need to write 3 different ARM with different KQL.  Could anyone please help me to edit this given template to achieve my requirement to generate all alert using single ARM.

If I will create 3 different template then the major problem is I will have 3 solution under my Log Analytics as this template is creating solution for each alert. So just looking for a way to edit this template in such a way to configure multiple alert using single template.

Looking forward from your side.

Elaborating more about question:-

 

Why I want to create multiple alert using one template:-


As it is creating solution for every alert so if I will use new template for every single alert then I will have lots of solution under Azure.



And creation of multiple template will create a mess too.


Now suppose I need to create a new alert of Disk then I need to edit below fields in template (highlighted in Brown for Disk Alert).  This will create a new solution for alert but I want to create multiple alerts under this one solution.

"SolutionName": "SolutionTest2",

  "SolutionVersion": "1.0",

      "SolutionPublisher": "SolutionTesters",

      "ProductName": "SolutionTest2",

      "LogAnalyticsApiVersion": "2017-03-03-preview",

"MySearch": {

        "displayName": "Disk over 70%",

        "query": 'Perf | where ObjectName=="LogicalDisk" and CounterName=="% Free Space" and CounterValue>70 ',

        "category": "Samples",

        "name": "Samples-Count of  Disk Data"

      },

      "MyAlert": {

        "Name": "[toLower(concat('myalert-',uniqueString(resourceGroup().id, deployment().name)))]",

        "DisplayName": "Disk over 70%",

        "Description": "Disk alert.  Fires when 3 error records found over hour interval.",

        "Severity": "critical",

        "ThresholdOperator": "gt",

        "ThresholdValue": 70,

        "Schedule": {

          "Name": "[toLower(concat('myschedule-',uniqueString(resourceGroup().id, deployment().name)))]",

          "Interval": 15,

          "TimeSpan": 60

        },

        "MetricsTrigger": {

          "TriggerCondition": "Consecutive",

          "Operator": "gt",

          "Value": 3

        },

        "ThrottleMinutes": 60,

        "AzNsNotification": {

          "GroupIds": [

            "[parameters('actiongroup')]"

          ],

And I also got to know the API used in given link are deprecated however still working. So we need to create template THESE APIs.




Cheers, Gourav Please remember to mark the replies as answers if it helped.


Tryng to delete the Start-Stop-VM[VM name] Solution

$
0
0

Hi there

I have a Start-Stop-VM Solution which I want to delete, but I am getting the following

Deleting Solution 'Start-Stop-VM[VM name]'

and then

Failed to delete your Solution 'Start-Stop-VM[VM name]'. Error: ajaxExtended call failed

Not sure how to proceed and could use some help

Powershell to find un-attached disk to VM

$
0
0

Hi,

Anybody help me to get the un attached disks to VM in Azure [my disk] section by running power shell script as i want to remove the unattached disks in our subscription i need this query. Help is greatly appreciable.

Thanks,


Thanks, SaravanaBharathi.A

How do I create a VM with a smaller hard drive?

$
0
0

I have created a bunch of VMs each of which is of size B2s, which suits me fine. I don't need a huge amount of compute or memory, but I do need them to each have their own IP address. I don't need them on all the time either, so most of my cost actually comes from the storage rather than the compute.

They are based on Windows 10 Client image, which gives me a disk size of 127 GiB, which is way more than I need. So I end up paying for a lot of storage I'm not using. 

How can I create Windows 10 Client VMs with a smaller disk size?

And how can I reduce the disk size of the VMs I already have?

Thanks.

Is there a way to change the external IP address on a VM?

$
0
0

Is there a way to reserve a bunch of external IP addresses and then programatically set a VM to use a specific one?

Thanks


Azure PowerShell not finding my VM

$
0
0

I was trying to increase the size of the OS-disk on my Azure VM Classic (Windows Server 2008 R2). I was following this MS doc:

MS Doc Expand VM OS-Disk

I can connect to my Subscription, but it can't seem to find my VM ('jsvm1') under the Resource Group (also named 'jsvm1'). I did a search on MSDN Forums, and found other people having a similar problem, but with no definitive answer. I only one subscription, so it is not a matter of referencing the wrong one. I have tried it with the VM Classic running and stopped (deallocated).

I have attached a screenshot that shows (I think) I am using the correct names and syntax, etc.

Any ideas why this would be happening?... Jon

A screenshot of my error in the Portal

Recovery Services Vault

$
0
0

How to delete recovery services vault forcefully ? 

Because i don't have any inside resources, but am unable to delete it.

IIS configuration error for python Django project

$
0
0

i configure python Django web application using IIS (using Fast CGI) on azure VM but getting this

"HTTP error 500.0 internal server error An unknown Fast-CGI error occurred"

i research on this error and also watch video on you-tube related to same error but i cant able to solve this error can any one have any idea how to solve this error thanks in advances 



Ip address change virtual machine when setting to static

$
0
0
Recently I got a new job and I'm going over all the configurations of the current servers in Azure. One of our VM's needed a restart and I noticed the ip address changed afterwards. So I wanted to set all the vm's to a static ip address as this makes life a bit easier. Our test vm changed from a 55.xxx.xx.xxx address to a 13.xxx.xx.xxx address after a reboot. Not a huge problem. However our production VM has an ip in the same range 55.xxx.xx.xxx. Azure portal warns me that the ip address might change. This would cause some issues with the dns and I want to minimise downtime. I did notice when changing our test VM to a static ip address, the ip did not change anymore. I want to know if this would be the same case when I set the ip address of our production VM to static?

Accessing Python application hosted on Azure VM (Windows OS) from outside.

$
0
0

I have hosted a Python flask web application on Azure virtual machine (Windows OS). When I start the Python application, it gets hosted on 127.0.01:5000 i.e. localhost. I can access this in the browser by providing localhost:5000 in the URL. I want to access this from outside the VM machine. The problem here is that Azure VMs have an internal IP and external IP.

I tried to use the external VM IP as parameter in app.run() but it is throwing an error and not able to host it on external IP.

app.run(HOST =external Azure VM  IP”)

It is throwing the below error when trying to host on external IP:

"Error : s.bind(get_sockaddr(hostname, port, address_family)) OSError: [WinError 10049] The requested address is not valid in its context"

Is there any way I can make it work?

Also, I tried hosting it on Azure web app services and I was successfully able to host there but I am not able to install external libraries like (beautifulsoup4) into flask application hosted on Azure App Services.

Any help would be appreciated!

Powershell Script to Create Azure VM from a file

$
0
0

Hello,

i would like to build a simple powershell script to create vm on azure. The only thing that i would like to understand is how i have to declare to take vmname, resource group etcc.... from an excel file.

I don't have enough knowledge to do this but with the right advice i can start with this challenge.

Waiting for your feedback

Thanks :)


Provisioning failed. Disk size reduction is not supported. Current size is 31457280512 bytes, requested size is 2147484160 bytes.. ResizeDiskError

$
0
0

Provisioning failed. Disk size reduction is not supported. Current size is 31457280512 bytes, requested size is 2147484160 bytes.. ResizeDiskError

Path: VM->Settings->Disk->Edit->Size.

By mistake changed the value from 32GB to 2GB. It got saved with error and now it raises permanent Resizedisk error. No option to edit it again and set it back to 32GB. Server is in failed state.

Even az is not showing the disk associated with the VM instance. Please advise!


Imaging fail, can no longer access VM

$
0
0

I attempted to create an image image of my VM. However when running waaagent -deprovision+user it threw back an error saying my /home/{user} directory could not be removed.

Now I am unable to access the VM at all, as it seems to have removed my user. I tried to add a new administrator and reset hte password for the old user with azure cloud shell but it is throwing back errors. I cannot reset the password within Azure portal either.

Any thoughts on how I can fix this? Ideally I want to be able to access the data I had on the drives connected to my VM.

First time AKS cluster creation westeurope fails

$
0
0

Hi there,

when I create a AKS cluster in westeurope with an VM of Size Standard_D2_V2 it takes a long time to setup and then it turns into failed state. But when I scale it up and down after that all is fixed. Does this happen to anyone else?

With best regards.

Not able to tag some AZ RG using PS

$
0
0

I am doing tagging on my Az resources but what I have noticed query is running fine however it were not able to apply same tags that are applied to their successor resource group.

Attaching my findings to elaborate further about this: -

We could see “prod-TSC-0498-db-rg” RG have 8 tags that we have applied.

Now when I have tried to force these tags (that are applied to RG where resources are sitting) using PowerShell then it is forcing wrong tags, We could see Tags value in output.



Cheers, Gourav Please remember to mark the replies as answers if it helped.



Reserved Instance is not applied to VM

$
0
0

Hi,

So I have 1 VM running in 1 Subscription. I bought a reserved instance that match the region and the size.

But the reservation is not being applied to the VM. What could be missing?

Azure VHD size limit and VHDX support

$
0
0

Hi,

I want to upload a VHD disk to Azure. What I am trying to do is to attach a VHD to local Hyper-V machine and move files into it and then detach it and upload to Azure and attach it to an Azure VM.

I wonder if there  is a limit on the size of VHD files you can have on Azure. I have seen some MS documents stating only 1 TB is supported but I have been able to create a 3.5 TB unmanaged disk for my Azure VM.


Viewing all 12545 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>