azure-virtual-machine

Connecting existing asp.net application to azure sql server vm without SDK

余生颓废 提交于 2019-12-11 10:53:29
问题 I need to be moving an existing Asp.NET application to Azure, where I've also set up a virtual machine hosting sql server. Now, I obviously don't want to keep deploying all the time, and I haven't even configured Azure for the application to exist within yet. I only want to make sure I can get the application to connect to the sql server instance on the virtual machine. I'm a complete newbie when it comes to Azure. So I've absolutely no idea what I'm doing, but I'm using tutorials and good ol

Add VM to existing vnet and subnet

半城伤御伤魂 提交于 2019-12-11 10:45:54
问题 I am using a json file to create a VM. Everything works good with exception of the vnet and subnet, every time I created a new VM, it creates a new vnet and subnet, how can I create VMs and assign them to an existing vnet and subnet using a json template? 回答1: Have you tried below sample template https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-different-rg-vnet you should be able to update your ARM template to create your VM into an existing VNet. 回答2: am assuming by

How to restrict Resources count in GET request in AzureRM

三世轮回 提交于 2019-12-11 09:24:26
问题 How to filter the resources count in GET Request in AzureRM ? For an example in List Virtual Machines in an subscription . We get all the Vm's running in an account . But I need to get 10 VM's alone in ascending or any sorting order . Is there any filter available like that ? 回答1: If the sorting order does not matter for you, you can filter the resource count for the top 10 VMs in the GET request below: I've tried the requests below and tweak resource count for filtering and they all worked

Azure App Service and VNet to VNet Connectivity

房东的猫 提交于 2019-12-11 08:28:57
问题 I'm trying to setup an app service to connect to a SQL database on a VM in two different subscriptions. I configured the app service to use Point to Site VPN through a VNET gateway. Then configured VNET peering in both subscriptions. I still cannot connect to the database from the app service. I have verified that the network service groups configured for the VM subnet aren't the reason the connection is failing. What other configuration could I be missing? 回答1: I was able to get it working.

Azure: disable .ppk file for ssh connection

↘锁芯ラ 提交于 2019-12-11 06:45:15
问题 I'm using macos and required to connect to an azure server via ssh. The previous system admin provided me with a .ppk file which he was using to open ssh connection via putty. I want to connect to the server via ssh shell, I believe I need to convert the .ppk file to .pem but the when I run the below command it's prompting me for passphrase which I don't have. puttygen server.ppk -O private-openssh -o server.pem I'm thinking of connecting to the server from a windows pc and disable the .ppk

Issue in Creating windows virtual machine from customized Image created myself using azure CLI 2.0

被刻印的时光 ゝ 提交于 2019-12-11 06:33:31
问题 I am new to azure and I wanted to create new windows 2012 virtual machine from the image i just created using following steps. 1) Created w2k12 virtual machine using following azure cli 2.0 cmd az vm create -n W2k12-host -g Naresh-test --image MicrosoftWindowsServer:WindowsServer:2012-R2-Datacenter:latest --vnet-name Naresh-test-vnet --subnet default --admin-username Administrator1 --admin-password R@ckware1234 --authentication-type password --storage-account nareshteststorage --use-unmanaged

Resizing Azure VM image automagically

依然范特西╮ 提交于 2019-12-11 06:31:26
问题 Is it possible to trigger a resize of an Azure VM automatically based on a set condition? For example, increase from a 'Medium' machine to 'Large' if the processor/RAM is over 90% usage out for 5 minutes? Then, obviously scale back down when usage reduces? Or... is it possible to schedule a resize between (peak) UK office hours then downscale off-peak? Just a thought... 回答1: Worth checking out the Auto Scaling Building Block from the patterns and practices team, part of the Enterprise Library

Check if an Azure VM is running

依然范特西╮ 提交于 2019-12-11 05:23:44
问题 I want to query an existing azure virtual machine to check whether it is fully deployed and able to be connected to remotely. Is there any way to do this using the Azure Rest API? I've outlined my current process and why I desire such a call below. I am using the Windows Azure management library to create a VM using ComputeManagementClient and the CreateDeploymentAsync function. This then returns a status of Succeeded, if I then do a get on the deployment it has a status of DeploymentStatus

Azure Virtual Machine not accessible after RDP port changed

混江龙づ霸主 提交于 2019-12-11 04:44:57
问题 I've changed RDP port to 8080 in registry on my Azure Virtual Machine (Windows Server). Now it is not accessible from outside, I cant connect it. Azure VM is managed by Resource Manager (not Classic VM). UPDATE: Turning secuiruty rules so allow all not helped. 回答1: I've changed RDP port to 8080 in registry on my Azure Virtual Machine (Windows Server) We can use CustomScriptextension to check if RDP listening on port 8080. netstat -ant | findstr "8080" If your port not listening on Port 8080,

Azure VMSS Powershell extension copying files from url

烂漫一生 提交于 2019-12-11 04:19:32
问题 Using PS to create a extension that needs to do the following for right now. 1: Get zip 2: Unzip and copy into directory in C:\Scripts Here is the PS to install the extension (this does infact create the extension in extensions under the scale set) $dscConfig = @{ "wmfVersion" = "latest"; "configuration" = @{ "url" = "https://foo.blob.core.windows.net/dsc.zip"; "script" = "configure.ps1"; "function" = "AzureDscDemo"; }; } $vmss = Get-AzVmss ` -ResourceGroupName "FooVmssResource" `