azure-virtual-machine

Windows Azure Powershell Copying file to VM

走远了吗. 提交于 2019-11-30 15:20:34
问题 I am trying to use Windows Azure PowerShell to copy a zip file into VM. I have managed to connect to VM following the documentation. But, I cannot find any tutorial to upload / copy / transfer a zip file to VM Disk, say into the C drive. Can any one please help me giving any link for the tutorial or any idea how can I copy this? 回答1: You cannot use PowerShell to copy a file directly to a Virtual Machine's OS disk (or even to one of its attached disks). There's no API for communicating

Windows Azure Powershell Copying file to VM

≯℡__Kan透↙ 提交于 2019-11-30 14:04:13
I am trying to use Windows Azure PowerShell to copy a zip file into VM. I have managed to connect to VM following the documentation. But, I cannot find any tutorial to upload / copy / transfer a zip file to VM Disk, say into the C drive. Can any one please help me giving any link for the tutorial or any idea how can I copy this? You cannot use PowerShell to copy a file directly to a Virtual Machine's OS disk (or even to one of its attached disks). There's no API for communicating directly with a Virtual Machine's innards (you'd need to create your own custom service for that. You can use

Using Terraform to import existing resources on Azure

橙三吉。 提交于 2019-11-30 05:01:36
问题 I have an existing resource group on Azure with a VM running on it and have been playing around with Terraform to try and import the resource to my state file. I have set up a skeleton file, and as far as my understanding is once I import TF should populate this with the values on my resource group in Azure resource "azurerm" "example" { # ...instance configuration... name = "MyResourceGroup" } Command I am running from CLI: terraform import azurerm_resource_group.MyResourceGroup

Multiple extensions for a VM with Azure ARM

ぐ巨炮叔叔 提交于 2019-11-29 18:05:48
We are configuring our VM with ARM. We use the DSC to install most of the requirements, however, installing the anti malware extension together with the DSC does not work. We are getting the following error: Multiple VMExtensions per handler not supported for OS type 'Windows'. VMExtension 'dscExtension' with handler 'Microsoft.Powershell.DSC' already added or specified in input. The resources look like this: { "type":"Microsoft.Compute/virtualMachines/extensions", "name":"[concat(variables('vmName'),'/', 'antiMalwareExtension')]", "apiVersion":"[variables('api-version')]", "location":"

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

蹲街弑〆低调 提交于 2019-11-29 17:09:25
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. 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 : Signifies that the table contains aggregate data over 1 hour or 1 minute P10D : Signifies the table will

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

依然范特西╮ 提交于 2019-11-29 09:57:33
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 the VM? I tried source: any; protocol: any; source port range: *; destination: any; destination port

Azure VMs Virtual Network inter-communication

空扰寡人 提交于 2019-11-29 03:07:49
问题 I'm new to Azure (strike 1) and totally suck at networking (strike 2). Nevertheless, I've got two VMs up and running in the same virtual network; one will act as a web server and the other will act as a SQL database server. While I can see that their internal IP addresses are both in the same network I'm unable to verify that the machines can communicate with each other and am sort of confused regarding the appropriate place to address this. Microsoft's own documentation says All virtual

Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet

戏子无情 提交于 2019-11-29 01:01:32
I was trying to install Azure using Install-Module Azure in PowerShell. I got the following error: PS C:\Windows\system32> Install-Module Azure Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is corre ct and try again. At line:1 char:1 + Install-Module Azure + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Why is PS not recognizing

Multiple extensions for a VM with Azure ARM

落爺英雄遲暮 提交于 2019-11-28 12:51:52
问题 We are configuring our VM with ARM. We use the DSC to install most of the requirements, however, installing the anti malware extension together with the DSC does not work. We are getting the following error: Multiple VMExtensions per handler not supported for OS type 'Windows'. VMExtension 'dscExtension' with handler 'Microsoft.Powershell.DSC' already added or specified in input. The resources look like this: { "type":"Microsoft.Compute/virtualMachines/extensions", "name":"[concat(variables(

How to login into DC-OS slave through Master

这一生的挚爱 提交于 2019-11-28 11:33:13
问题 I created DC-OS cluster on azure, after creating with ssh public key I can access to master with the following commands, sudo ssh -v -A -p 2200 user@master-ip -i /root/.ssh/id_rsa After getting into Master I want to access agents so I copied id_rsa and id_rsa.pub key from host to master node. and run the following command. ssh -p 22 10.32.0.4 debug1: No more authentication methods to try. Permission denied (public key) but unfortunately it will give following error, I have tried so many ways