azure-virtual-machine

How to detach/dissociate public IP of ARM VM

寵の児 提交于 2019-12-13 07:33:11
问题 I have an ARM VM with a public IP. I want to detach/dissociate this public IP after my test. I can see there is an option using azure portal- I want to do the same thing using azure powershell. I tried finding azure cmdlets related to public IP but couldn't achieve it. If someone can give me some clue how this can be done ? 回答1: You need to get the Network Interface object and remove the Ip Address Id from it and push changes back to Azure. $nic = Get-AzureRmNetworkInterface -Name bla

ReservedIPs for Azure VMs in a single VNet/subnet

给你一囗甜甜゛ 提交于 2019-12-13 05:59:14
问题 I've 8 VMs (linux based) running a single VNet on Azure. If I've two VMs running a service on the same port which shows me machine status or shows some common details which is specific to the VM. Say for example VM-1 runs a service on 8080 port and same same service has been deployed on VM-2 which runs on the same port 8080. To access to a service running on port 8080 I am opening a port on VM-1 through end points. I am able to access 8080 from web browser through VM-1 using servicename

How to run Azure VM CustomScriptExtension as domain user? (part 2)

早过忘川 提交于 2019-12-13 05:14:27
问题 Updated to explain my root problem: If Azure has extensions for VM's, as they are being provisioned , to join a domain, and to run scripts, how can I run a script as a domain user? The script needs to be run as a domain user in order to access a file share to retrieve installation files and other scripts that are neither part of the VM template image nor can (reasonably) be uploaded to Azure blob storage and downloaded as part of provisioning. I split this question in two because the 2nd half

Unable to access a self-hosted WCF service on azure virtual machine

十年热恋 提交于 2019-12-13 04:44:20
问题 I have self-hosted a WCF service on base adress new Uri("http://" + Environment.MachineName + ":1235/myService") on an Azure Virtual Machine. I have printed this address and I get it as http://TRIALVM:1235/IRChatbotService . The DNS name of my virtual machine is trialvm.cloudapp.net . As I have hosted this service on port 1235, I have added the inbound rule with following properties: Still the created service is not accessible from outside VM. I am able to get service page when I go to the

Get StdOut from RunCommand using Azure VM Javascript SDK

别说谁变了你拦得住时间么 提交于 2019-12-13 01:10:59
问题 I'm using the Azure VM Javascript SDK in my Node.js webApp. I'm trying to use the RunCommand Function to run a custom script on my Azure virtual machines. The problem I'm having is with obtaining the response from running the command which should contain the StdOut and StdErr strings. If I run the command from the Azure CLI, Like the following: az vm run-command invoke -g 'myResource' -n 'myVm' --command-id RunPowerShellScript --scripts 'Get-ChildItem -Name' Then I am able to receive the

Migrate Azure classic VM to ARM. error in Virtual Network validation

旧巷老猫 提交于 2019-12-12 21:30:13
问题 I tried to migrate Azure classic ASM virtual machine to ARM by following the instruction. At the beginning of Step 5 , the validation command in Option 1; $validate = Move-AzureService -Validate -ServiceName $serviceName ` -DeploymentName $deploymentName -CreateNewVirtualNetwork $validate.ValidationMessages gives following error. ResourceType : Deployment ResourceName : database-vm Category : Error Message: Deployment database-vm in HostedService database-vm belongs to Virtual Network Group

Windows Azure VM RDP issue

烂漫一生 提交于 2019-12-12 16:27:10
问题 I followed this http://blogs.technet.com/b/keithmayer/archive/2013/04/17/step-by-step-build-a-free-sharepoint-2013-lab-in-the-cloud-with-windows-azure-31-days-of-servers-in-the-cloud-part-7-of-31.aspx#.UX_iF7XvvQI I created a VM using the datacentre Image it created successfully and the status shows Its running. I am trying to RDP It says Remote Desktop cant connect to the remote computer for one of these reasons: 1) Remote access to the server is not enabled 2) The remote computer is turned

Azure VM, Cloud service or Web job?

若如初见. 提交于 2019-12-12 16:22:48
问题 I am quite new to Azure and not quite sure what service I need to achieve this: What I want to do is developing an application/service to do some computing tasks. I have created a web API for sending data to my database. I will use the data from my database to perform some computing and store results back in the database. This app/service will be run continuously. I am not sure if I should use a web job or a cloud service or a virtual machine. They all seem to be able to achieve what I want..

Service Fabric Application vmImageSku

馋奶兔 提交于 2019-12-12 16:04:01
问题 When you deploy a Service Fabric Cluster as an ARM template you have the option of specify Windows Version (OS) of the Virtual Machine via the VmImageSku parameter. It is per default set to "2012-R2-Datacenter". I have not been able to find any examples of other values for this. My real question is can a Service Fabric Cluster be deployed to a Server Core? "vmImagePublisher": { "type": "string", "defaultValue": "MicrosoftWindowsServer", "metadata": { "description": "VM image Publisher" } },

Move a Microsoft Azure VM to a Different Subnet Within a vNet

限于喜欢 提交于 2019-12-12 14:56:10
问题 Can't we Move a Microsoft Azure VM to a Different Subnet Within a vNet using the azure new portal or the azure classic portal ? if not possible through portal then how to do so ?then how to edit the properties of a VM after creation, like moving to a different subnet,, etc.,? 回答1: It is possible through the new portal. First I want to ask you if you're using a Classic VM or a Resource manager VM. If you're using the last one you can easily switch between subnets by changing the configuration