azure-virtual-machine

Windows Azure: Delete disk attached to non-existent VM

和自甴很熟 提交于 2019-12-23 09:00:43
问题 Just found out I was taking up - and paying for - a lot of storage due to abandoned disks from long ago deleted VMs. I manged to delete most of them, but now I'm stuck with a set that cannot be deleted as they remain attached to VMs nowhere to be found. Any ideas how to get rid of these disks, PowerShell tricks maybe? 回答1: If I am understanding correct, Once you delete a Virtual Machine, it delete the service but keep a copy of the VHD image under Disks. So please go to the Disks tab under

Upgrading from A-series to D-series Azure virtual machine

拜拜、爱过 提交于 2019-12-22 10:59:40
问题 We have SQL Sever setup on A-series virtual machines. We are wanting to upgrade to the D-series virtual machine. Is it as simple as just upgrading the VM in Azure and clicking save or are there any other things I need to watch out for? I have heard of people having issues upgrading due to the level not being available in the cluster that their Virtual Machines sit in. 回答1: The hardware infrastructure used for A series VM is not suitable for D series VM. It might be possible that the cluster

Azure: List OS Images

丶灬走出姿态 提交于 2019-12-22 09:15:20
问题 Im new to windows azure, Ive looked to this documentation, to me it works, Listing Images on gallery. https://management.core.windows.net/subscription-id/services/images But this isnt what Im looking for, Is there a way to list the My Images on my account and not the images on gallery. 回答1: If you run the PowerShell cmdlet Get-AzureVMImage , you'll see all images. As stated by @Gaurav, The ones that correlate to My Images have a PublisherName of User . So, again, using PowerShell, here's how

Why I can't ping Azure VM from my local PC [closed]

♀尐吖头ヾ 提交于 2019-12-19 21:49:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have a Windows VM on Azure and I don't understand why my ping times out . I found a probable reason: on Azure portal I see public IP "40.127.163.20", but inside VM when I do ipconfig I see different IP that is strange. Do you have any ideas? 回答1: ICMP protocol is not permitted through the Azure load balancer

How Storage API can be used to get Azure Classic VM metrics?

巧了我就是萌 提交于 2019-12-18 09:18:07
问题 Can we collect metrics for Azure Classic VM using Storage API or is there any other way to get the metrics for Azure Classic VM please suggest. 回答1: To get the Azure VM metrics from a Azure Storage Service, you need to enable Diagnostics and configure the Storage Account on Azure portal. After that, you will find that multi tables will be created to store the metrics. The tables are with the following naming conventions: WADMetrics : Standard prefix for all WADMetrics tables PT1H or PT1M :

How to run Azure CLI commands using python?

╄→гoц情女王★ 提交于 2019-12-18 06:49:30
问题 I want to use Azure CLI to get the list of all the VMs in my resource group. But I want to implement the same using a python script. For example, I will use the following command in Azure CLI to list the VMs in my resource group: " az vm list -g MyResourceGroup " But, I want the python script to do the same, where I just have to incorporate the CLI command in the python program. 回答1: I have been implementing this over the last couple days. The method that @cbehrenberg provides is mostly what

IIS/HTTP Endpoint on Azure VM (non-classic)

╄→гoц情女王★ 提交于 2019-12-18 05:48:19
问题 With the classic Azure VMs, one set up IIS on an Azure VM and then went to the (old) portal and set up an HTTP endpoint for it. On the new VMs, this is apparently done through the Network Security Group in the (new) portal as described here: How I add new endpoints to my VM on new azure portal (preview)? However, I can't seem to find how to actually set up an HTTP endpoint... the only available protocols seem to be TCP or UDP. What settings do I need here to allow http connections to IIS on

Connection timeout during file provision to azurerm vm

痞子三分冷 提交于 2019-12-14 03:09:30
问题 I am getting below timeout message once trying to provision file to an azure RM VM . unknown error Post http://terraform.eastus.cloudapp.azure.com:3389/wsman: read tcp 192.168.0.4:59745->52.224.162.240:3389: wsarecv: An existing connection was forcibly closed by the remote host. I am trying file provision and the VM already there and no need to create it. I only need to copy a text file to an existing VM using below config. provider "azurerm" { } resource "null_resource" "test" { provisioner

Securing access to redis & solr clusters from azure websites

南楼画角 提交于 2019-12-13 17:12:58
问题 We are looking at deploying an application on azure web sites and deploying a redis and solr clusters on sets of azure virtual machines. What is the best practise for restricting access so just my azure web site can access these boxes? We store private information in the redis and solr cluster so cannot risk allowing other azure websites access to the redis and solr clusters so allowing the complete IP range of the azure data centres is a no go. 回答1: Azure Web Sites do not have dedicated

How can I use my webcam inside an Azure windows server virtual machine?

有些话、适合烂在心里 提交于 2019-12-13 07:59:23
问题 I have a Windows server 2016 vm on Azure and I am trying to do some work in Augmented Reality using Vuforia and Unity. An essential part of this is being able to use my webcam but once I am inside the VM it doesnt recognise my integrated webcam. I tried to connect a webcam through USB as well but this doesn't work either. Is this an impossible task...getting a server instance to recognise webcams on my laptop or is it actually possible? Any help would be appreciated. 回答1: You could achieve it