azure-virtual-machine

Unable to copy files using Azure Custom script extension

你离开我真会死。 提交于 2019-12-24 23:14:39
问题 I want to install tools like NAGIOS inside an Azure virtual machine once it is provisioned. I want to use "Azure Custom Script" to install the tools. Below is the code that I am using. Powershell script that is being sent as custom script: new-item "C:\newfile.txt" -Type file copy-item -Path "\\xxx.xx.x.x\c$\Nagios for windows" -Destination "C:\nagios" -Recurse Start-Process "c:\nagios\NSCP-0.4.3.143-x64.msi" /qn -Wait Problem: The first line of code is working (I have it as a sanity check to

Azure Created Image Without Generalizing

被刻印的时光 ゝ 提交于 2019-12-24 19:42:39
问题 So I made the mistake of trying to capture an image of my VM without first running sysprep /generalize on it. Now I have a VM I can't start and an image I can't create a VM from. Is there any way I can restore my original VM so I can create a valid image from it? I saw this blog post https://blogs.technet.microsoft.com/shwetanayak/2017/03/19/captured-the-virtual-machine-didnt-intend-to-generalize-it-now-what/ that seems to imply that I can, but it's solution says to create a copy of a VHD

Azure VM - Can't connect to a TCP server that listens on a specific port

感情迁移 提交于 2019-12-24 19:28:32
问题 I'm trying to establish a TCP connection between an on-prem client and an Azure VM (Standard D1 v2) running Windows 2K16. On the VM I'm running a simple TCP server (see code below) that receives the port. I've passes port 51515 in the arguments. The network interface have a public IP I'm trying to use. I've added an inbound port rule on TCP port 51515 on the portal (source=any, source port=*, destination=any, dest. port=51515, protocol=TCP, action=allow). Windows Firewall on the VM is off

Manage / debug virtual machines on someone elses azure subscription

泪湿孤枕 提交于 2019-12-24 19:17:07
问题 I have two users, A and B. Both users have azure subscriptions. User A creates a VM, running some software, but wants to grant User B access to administer / debug this virtual machine. Weve added User B as an owner of the virtual machine on User A's subcription, but they are not able to see the virtual machine. Is there a way of doing this? If there is, are we going about it the right way? 回答1: Is there a way of doing this? Yes, we can do this, we can invite user B to manager user A resource

How to add additional IP to an azure VM which is running

半城伤御伤魂 提交于 2019-12-24 13:12:03
问题 I have a running VM. I need to add one additional IP for distributing traffic. VM is in Prod, I am looking for adding IP which takes least time. As per my knowledge I can't use azure portal for the same. How this could be done using PS. Is it achievable with zero downtime ? 回答1: There is no direct PS command for doing it. One possible solution is to export the vm config file. Create a new node/attribute for the second ip in the xml file. Look for its patttern for multi nic vm, create the same

Download Azure VHD to local use powershell

 ̄綄美尐妖づ 提交于 2019-12-24 12:18:11
问题 How can I download azure vhd with powershell to local machine? I read the document, but I can't find the blob url like "https://XXX.blob.core.windows.net/vhds/XXX.vhd" Anybody know that? Thanks 回答1: According to your description, your VM uses managed disk not unmanaged disk. So, you could not find the VHD file in storage account. More information about managed disk please refer to this link. If you want to download the VHD in managed disk, you should copy it to a storage account first. #

How to set custom domain name for nodejs app hosting on azure linux VM

拟墨画扇 提交于 2019-12-24 12:11:24
问题 I am hosting my nodejs project on microsoft azure. Now i wanted do custom domain but i don't know how to do, I have external go daddy domain. Presently my project running on azure vm's default DNSName.southindia.cloudapp.azure.com domain, now I wanted to change my goDaddy domain. How can I do that, Can anyone help to do this below is my vm's configuration. 回答1: According to your description, we can add A record to map your domain name to this VM's public IP address, or you can add CNAME to

Add VM to Azure App Gateway python

丶灬走出姿态 提交于 2019-12-24 11:15:40
问题 How do I add an existing VM to an existing App gateway via the Python SDK for Azure? I've looked at this, and used it too, to create an app gateway programatically, but how do I go about adding newly created VMs to the existing gateway? 回答1: You could check this answer. Note: Firstly, your existing VM should be in your application gateway's VNet. If you add your VM's public IP to application, you could use like below: "backend_address_pools": [{ "name": appgateway_backend_pool_name, "backend

Azure cloud service network bandwith

天涯浪子 提交于 2019-12-24 07:37:09
问题 I have an Azure web role on 3 Standard_A3s. The web api has a heavy load and it transfers lot of large objects. I am trying to find out at what RPS we might hit network bandwith limit. Is there a way to find this out. 回答1: Maximum network bandwidth is the maximum aggregated bandwidth allocated and assigned per VM type. The maximum bandwidth provides guidance for selecting the right VM type to ensure adequate network capacity is available. When moving between Low, Moderate, High and Very High,

How can I get the URL of a captured VM Image stored in Azure Resource Manager?

浪子不回头ぞ 提交于 2019-12-24 07:19:45
问题 I am trying to create a new VM in Azure RM based on the sysprepped capture of an existing VM installation. That is: $urlOfCapturedImage = <I cannot find this> ... $vm = Set-AzureRmVMOSDisk -VM $vm -Name $osDiskName -VhdUri $newOsDiskUri ` -CreateOption fromImage -SourceImageUri $urlOfCapturedImage -Windows New-AzureRmVM -ResourceGroupName $resourceGroupName -Location $location -VM $vm My current problem is finding the correct URL for the stored VM image, since it doesn't appear to be stored