Quantcast
Channel: Azure Virtual Machines forum
Viewing all 12545 articles
Browse latest View live

Using powershell can we do automation script to auto restart the azure vm agent if the agent is not responding?

$
0
0
1) Verify Azure VM agent Status
2) IF status good, not require to restart agent. IF staus dellocated, require to restart agent.

How to deploy VM to Norway Regions?

$
0
0

Hey,

I am currently trying to deploy VMs to Norway regions. However I can not find this in Azure portal. Do I need to request access to this region or are VMs not available. From the documentation it appears Norway should be available with at least VM access. 

Thanks in advance,

Alex.

Create Azure VM with Powershell

$
0
0

I'm wondering if there is a way to create an Azure VM without the public interface and security group, to the VM. ( the public interface and security group will be created on the vnet later on insead, rather than on each VM/vnic.). 

The new-azVM command by default creates the VM public interface and security group, and I will have to go through the hassle of removing them after the VM is created. Also I tried to use "" for the -PublicIPAddressName and -SecurityGroupName, both errored out.

This is a bit of hassle in scenario where I will need to create a number of VMs in batch. If there is a way at the creation stage to tell not to create the public interface and security group that would be great. Somebody may already know some magic parameters of this new-azVM command? Thanks a lot.


unable to update new image to VM Scaleset with Azure Devops

$
0
0

Hello,

below is the solution I want to implement,

I want to setup CI/CD for angular application with VM Scale Set.

For that I create managed image name "vmssimage" then create scale set with this manage image and setup task for create image and update new image to instance but i am getting below error

Remove-AzureRmResource : OperationNotAllowed : Operation 'Image Delete' is not allowed since the Virtual Machine ScaleSet 
'/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups//providers/Microsoft.Compute/virtualMachineScaleSets/' is currently using the Image 'vmssimage'.


How to give rights to start/stop/reboot particular VMs ?

$
0
0

Hello all,

I wanted to give one person an ability to start/stop/reboot particular VMs. Ideally it should be something as simple as possible. I mean he/she can logon and then select one or more VMs and then reboot them. So he/she cannot see and do anything else. Is there anything like that possible on Azure portal ?

Thanks

P.

Can we do script to auto restart for Services if the VM Agent status is not ready using Powershell ?

$
0
0

Hi everyone, 

This is my current scenario:  
VM status is "Running",  VMAgent is "Not Ready",Windows Azure Guest Agent  service is "Stopped".

I will manually start Windows Azure Guest Agent whenever my VMAgent is not ready. 

So is there any script I can write using Powershell to automatically Start the service whenever VMAgent is not ready ?



 

Inbound NAT Rule portal Support for Load Balancers associated to Virtual Machine Scale Sets

$
0
0

Currently, if you attempt to add or edit an Inbound NAT Rule on a Load Balancer with an association to a Virtual Machine Scale Set, you receive a warning stating:

"Full virtual machine scale set support for the portal is coming soon. Adding or editing references between load balancers and scale set virtual machines is currently disabled for load balancers to contain an existing association with a scale set"

Could we please get an ETA on this? I believe it's holding up several integration activities with regards to Docker Enterprise.

Remote Desktop Services question

$
0
0
I have a Windows 10 Professional instance running in Azure.  With my instance, I can only have 1 person connected via RDP at a time.  What type of instance do I need so multiple users can log in simultaneously?

Unable to find Azure VM size in tenant

$
0
0

Hey!

Question for y'all, I am unable to find a certain size VM that's included in the Azure Pricing Calculator on North-Europe but not in my tenant. This is regarding: E8as VM size. Is this a special VM or ?

Thx!


Network Traffic Capture on VM for IDS

$
0
0

I'm new to Azure, and I'm looking for a way to capture traffic (pcap) to/from my VMs. 

For example, I have multiple Linux VMs and a SecurityOnion VM. I would like my SecurityOnion VM to capture all traffic so it can function as an IDS (Intrusion Detection System). However, I'm not sure how to configure this in Azure. With a physical setup I would use a SPAN/Mirror port or network tap, or in ESXi I would enable Promiscuous Mode on the virtual switch, but I understand that Azure does not support this feature (https://social.msdn.microsoft.com/Forums/en-US/fc567169-74d1-44c9-aea3-f8c93829b51b/is-it-possible-to-put-the-network-card-into-promiscuous-mode-within-a-virtual-machine-in-azure?forum=WAVirtualMachinesforWindows). 

What's the best approach to take for accomplishing this task? 

Cannot connect to vm

$
0
0

I see this:

<label class="fxc-essentials-label fxs-portal-subtext" data-bind=""text":label,"attr":{"id":"fxc-label-623e6389-6c6a-484c-9d8f-b04f9f930d79-" + $index(),"title":$data.label}" id="fxc-label-623e6389-6c6a-484c-9d8f-b04f9f930d79-1" style="font-weight:inherit;line-height:17px;color:#646464;" title="Status">Status</label>

Stopped (deallocated)

<svg aria-hidden="true" focusable="false" height="100%" role="presentation" width="100%"><use href="#FxSymbol0-050"><svg class="msportalfx-svg-palette-inherit" data-type="338" focusable="false" id="FxSymbol0-050" role="presentation" viewBox="0 0 14 16" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M14 6.3V16H4v-3H0V0h6.7l3 3h1zM4 3h4.3l-2-2H1v11h3zm9 4h-3V4H5v11h8zm-2-1h1.3L11 4.7z"></path></g></svg></use></svg>

And when I try to start my vm, I get this message"

Failed to start virtual machine
Failed to start the virtual machine 'FourWindsRemote'. The operation '7923e155ac9a3dcca34a52c98b740c9f' failed: 'The server encountered an internal error. Please retry the request.'.

Help me log into my machine, please.

port forwarding port 27015 for counter-strike CS CZero.

$
0
0

Hello everyone. i need help port forwarding 27015 for counter strike condition zero on my Azure Virtual machine. i want to host a Counter strike server on my Azure Windows VM.

please provide assistance.

Cuenta de azure

$
0
0

Hola, tengo una suscripción a Microsoft Azure en la cual tengo varias maquinas virtuales creadas y desde ahi me puedo conectar a las bases de datos, en cada maquina tengo varios usuarios creados pero un usuario me esta consumiendo todos los recursos de la maquina virtual al punto que no deja conectar a nadie.

La pregunta es: si entro a mi cuenta de Microsoft Azure puedo saber que usuario me esta consumiendo todos los recursos?


Pricing implications for Azure VM with Sql Server installed

$
0
0

Our company plan is to have a SQL server installed on a Microsoft VM.

Question #1:

If we delete and restore a 50 gig database every day, is there a higher price tag due to our activity, and if so, is it significant?

We will be receiving new file daily on ftp.

Question #2:

Because we have an instance on a VM, we should just be able to install SQL server and use it as a normal server, meaning we should be able to have stored procedures, views, etc. that you cannot get when you let Microsoft host  your server--Is this a true statement?

Thank you

Kam

Unable to assign public IP when creating VM

$
0
0

I'm working on creating a VM as part of a Squared Up application dashboard trial solution.  When I get to the networking step, I keep getting a spinning status and "Loading..." when trying to select the public IP address.  Any thoughts?

I have tried through Chrome and Edge, both on my laptop and my phone.  Through different ISPs as well.



Azure License Keys

$
0
0
I hope this is the correct place to post but please correct me if i'm wrong. I am enrolled in college and have access to the Azure Education Hub and see theres Windows Server 2019 and 2016 standard and DataCenter ISOs available for download with license keys. I am wondering what are the limitations on those keys? how many times can i use them? do they ever expire? Do i get a new key every time i click show key?

Dudefoxlive

Connection from Azure to IPv6 with socat

$
0
0

Hello Community,

i hope you guys can help me. I have an Azure Ubuntu 18.04 VM with an public IP. At Home (behind a DSLite network) my apache server has an ipv6 address.

I try to connect to my webserver using socat - but i do not get a connection. Maybe you can tell me why?

socat TCP4-LISTEN:82,fork TCP6[IPv6_Homserver]:81

I want to open my home apache server with http://azure_public_IP:82 which is locally reachable over the port 81. I dont get a connection.

Possible to pass login information in fileUris for CustomScriptForLinux?

$
0
0
We use the CustomScriptForLinux extention to setup our virtual machines. Currently it downloads the script from an Azure file share, but the script actually lives in our private bitbucket repository. So now I tried to point to the file direcly in git, using this URL format:

https://username:password@bitbucket.org/owner/project/raw/testBranch/path/init.sh

This URL works fine using wget and curl. But when I try this url in the fileUris property for the CustomScriptForLinux extention, it fails with the error "nonnumeric port: 'password@bitbucket.org'".

So, it seams it can't handle this way of keeping the authentication information in the URL. Is there some way around this? We are not willing to make our repository public, or move outside bitbucket.

I know that we can make the init script minimal, and use it to download the main script from git. But that still means that this init script needs to live in two places (git and the file storage), and we need to make sure both are up to date. Also it means that we need to generate a SAS token for the storage account (we don't use such a token for anything else). So we would really prefer a solution that is 100% git based.

Provisioning of Azure VM extension timeout

$
0
0

Hi I am using a custom script extension to do some post deployment tasks in the virtual machine. But the provisioning of the extension times out. waagent logs show an error but it is incomprehensible for me. Can someone please guide me about this problem.

2019/10/30 10:34:52.569846 ERROR ExtHandler Event: name=Microsoft.Compute.CustomScriptExtension, op=Install, message=eJytkbFqxDAQRHt9xX5ALJ99NsFuj4NrkkBSHuaQpdUhsHeNtEpMvj7GRUiZ4pphioHHzFzPqyClwPS2YDSymXOMHAd4ZSq+MTLgGgQsO+yhqp+foPw0sZzCWH4Zc0eS8iXYyIm96BPPSxbUp5yE5w8bwyK/gKLSnW7LQEnMNGk7O3VN4jjLoNRuMcZBvWeiQHdIlhcEkyBTkB7+CbntkFvbOV8f665onW+Kxla+GL3b5HB0LR4Q28bonaAeV2fbp3/gOj2Mgf5mL4bchFHjul1BLOA5k1M/YnmhEQ==, duration=0

logs are as follows.

2019/10/30 10:28:03.232795 INFO Daemon Azure Linux Agent Version:2.2.40
2019/10/30 10:28:03.239817 INFO Daemon OS: ubuntu 18.04
2019/10/30 10:28:03.252758 INFO Daemon Python: 3.6.8
2019/10/30 10:28:03.261718 INFO Daemon Daemon process id 1226 is tracked in systemd cgroup walinuxagent.service
2019/10/30 10:28:03.266467 INFO Daemon CGroups: successfully set up agent cgroup
2019/10/30 10:28:03.279735 INFO Daemon Run daemon
2019/10/30 10:28:03.282276 INFO Daemon Clean protocol
2019/10/30 10:28:03.286203 INFO Daemon Running CloudInit provisioning handler
2019/10/30 10:28:03.293189 INFO Daemon Detect protocol endpoints
2019/10/30 10:28:03.297527 INFO Daemon Clean protocol
2019/10/30 10:28:03.300010 INFO Daemon WireServer endpoint is not found. Rerun dhcp handler
2019/10/30 10:28:03.304443 INFO Daemon Test for route to 168.63.129.16
2019/10/30 10:28:03.309542 INFO Daemon Route to 168.63.129.16 exists
2019/10/30 10:28:03.313392 INFO Daemon Wire server endpoint:168.63.129.16
2019/10/30 10:28:03.321647 INFO Daemon Fabric preferred wire protocol version:2015-04-05
2019/10/30 10:28:03.327337 INFO Daemon Wire protocol version:2012-11-30
2019/10/30 10:28:03.333347 INFO Daemon Server preferred version:2015-04-05
2019/10/30 10:28:03.395736 INFO Daemon ssh host key found at: /etc/ssh/ssh_host_rsa_key.pub
2019/10/30 10:28:03.405643 INFO Daemon Thumbprint obtained from : /etc/ssh/ssh_host_rsa_key.pub
2019/10/30 10:28:03.411447 INFO Daemon Finished provisioning
2019/10/30 10:28:04.426774 INFO Daemon RDMA capabilities are not enabled, skipping
2019/10/30 10:28:04.435486 INFO Daemon Installed Agent WALinuxAgent-2.2.40 is the most current agent
2019/10/30 10:28:04.759016 INFO ExtHandler Agent WALinuxAgent-2.2.40 is running as the goal state agent
2019/10/30 10:28:04.799007 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:04.827223 INFO ExtHandler Tracking systemd cgroup for WALinuxAgent
2019/10/30 10:28:04.835283 INFO ExtHandler Now tracking cgroup walinuxagent.service
2019/10/30 10:28:04.849760 INFO ExtHandler Start env monitor service.
2019/10/30 10:28:04.859707 INFO ExtHandler Configure routes
2019/10/30 10:28:04.868199 INFO ExtHandler Gateway:None
2019/10/30 10:28:04.875745 INFO ExtHandler Routes:None
2019/10/30 10:28:04.882801 INFO ExtHandler Hostname record does not exist, creating [/var/lib/waagent/published_hostname] with hostname [Numtra-DSW]
2019/10/30 10:28:04.913469 INFO ExtHandler WALinuxAgent-2.2.40 running as process 1435
2019/10/30 10:28:04.922349 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:04.940592 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:05.017940 INFO ExtHandler Route table: [{"Iface": "eth0", "Destination": "0.0.0.0", "Gateway": "10.0.0.1", "Mask": "0.0.0.0", "Flags": "0x0003", "Metric": "100"},{"Iface": "eth0", "Destination": "10.0.0.0", "Gateway": "0.0.0.0", "Mask": "255.255.255.0", "Flags": "0x0001", "Metric": "0"},{"Iface": "eth0", "Destination": "168.63.129.16", "Gateway": "10.0.0.1", "Mask": "255.255.255.255", "Flags": "0x0007", "Metric": "100"},{"Iface": "eth0", "Destination": "169.254.169.254", "Gateway": "10.0.0.1", "Mask": "255.255.255.255", "Flags": "0x0007", "Metric": "100"}]
2019/10/30 10:28:05.090591 INFO ExtHandler Initial NIC state: [{ "name": "lo", "link": "<LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00" }, { "name": "eth0", "link": "<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\    link/ether 00:0d:3a:5a:00:89 brd ff:ff:ff:ff:ff:ff" }]
2019/10/30 10:28:05.230516 INFO ExtHandler Successfully added Azure fabric firewall rules
2019/10/30 10:28:05.266457 INFO ExtHandler Firewall rules:
Chain INPUT (policy ACCEPT 5 packets, 148772 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 5 packets, 260 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
       0        0 ACCEPT     tcp  --  *      *       0.0.0.0/0            168.63.129.16        owner UID match 0
       0        0 DROP       tcp  --  *      *       0.0.0.0/0            168.63.129.16        ctstate INVALID,NEW

2019/10/30 10:28:05.347842 INFO ExtHandler Set block dev timeout: sdb with timeout: 300
2019/10/30 10:28:05.359511 INFO ExtHandler Set block dev timeout: sda with timeout: 300
2019/10/30 10:28:05.710658 INFO ExtHandler Agent WALinuxAgent-2.2.40 discovered update WALinuxAgent-2.2.44 -- exiting
2019/10/30 10:28:06.456763 INFO Daemon Agent WALinuxAgent-2.2.40 launched with command 'python3 -u /usr/sbin/waagent -run-exthandlers' is successfully running
2019/10/30 10:28:06.469315 INFO Daemon Determined Agent WALinuxAgent-2.2.44 to be the latest agent
2019/10/30 10:28:07.250184 INFO ExtHandler Agent WALinuxAgent-2.2.44 is running as the goal state agent
2019/10/30 10:28:07.283050 INFO ExtHandler Distro info: ubuntu 18.04, osutil class being used: Ubuntu18OSUtil, agent service name: walinuxagent
2019/10/30 10:28:07.332641 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:07.352381 INFO ExtHandler Start env monitor service.
2019/10/30 10:28:07.362064 INFO ExtHandler Configure routes
2019/10/30 10:28:07.375737 INFO ExtHandler Gateway:None
2019/10/30 10:28:07.388935 INFO ExtHandler Routes:None
2019/10/30 10:28:07.456720 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:07.451234 INFO ExtHandler WALinuxAgent-2.2.44 running as process 1548
2019/10/30 10:28:07.498939 INFO ExtHandler Route table: [{"Iface": "eth0", "Destination": "0.0.0.0", "Gateway": "10.0.0.1", "Mask": "0.0.0.0", "Flags": "0x0003", "Metric": "100"},{"Iface": "eth0", "Destination": "10.0.0.0", "Gateway": "0.0.0.0", "Mask": "255.255.255.0", "Flags": "0x0001", "Metric": "0"},{"Iface": "eth0", "Destination": "168.63.129.16", "Gateway": "10.0.0.1", "Mask": "255.255.255.255", "Flags": "0x0007", "Metric": "100"},{"Iface": "eth0", "Destination": "169.254.169.254", "Gateway": "10.0.0.1", "Mask": "255.255.255.255", "Flags": "0x0007", "Metric": "100"}]
2019/10/30 10:28:07.489872 INFO ExtHandler CGroups Status: The cgroup filesystem is ready to use
2019/10/30 10:28:07.571645 INFO ExtHandler Started tracking new cgroup: walinuxagent.service, path: /sys/fs/cgroup/cpu/system.slice/walinuxagent.service
2019/10/30 10:28:07.620095 INFO ExtHandler Started tracking new cgroup: walinuxagent.service, path: /sys/fs/cgroup/memory/system.slice/walinuxagent.service
2019/10/30 10:28:07.643977 INFO ExtHandler Initial NIC state: [{ "name": "lo", "link": "<LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00" }, { "name": "eth0", "link": "<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\    link/ether 00:0d:3a:5a:00:89 brd ff:ff:ff:ff:ff:ff" }]
2019/10/30 10:28:07.792385 INFO ExtHandler Successfully added Azure fabric firewall rules
2019/10/30 10:28:07.830852 INFO ExtHandler Firewall rules:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
       0        0 ACCEPT     tcp  --  *      *       0.0.0.0/0            168.63.129.16        owner UID match 0
       0        0 DROP       tcp  --  *      *       0.0.0.0/0            168.63.129.16        ctstate INVALID,NEW

2019/10/30 10:28:08.027173 INFO ExtHandler Created slice for walinuxagent extensions system-walinuxagent.extensions.slice
2019/10/30 10:28:08.040924 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:08.139902 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:08.330415 INFO ExtHandler Wire server endpoint:168.63.129.16
2019/10/30 10:28:08.338840 INFO ExtHandler ProcessGoalState completed [incarnation 1; 199 ms]
2019/10/30 10:34:50.072576 INFO ExtHandler Found private key matching thumbprint D2FE9B9F5FA4ED90A64E68E3F2C5824C775B0C07
2019/10/30 10:34:50.136927 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] Target handler state: enabled
2019/10/30 10:34:50.140899 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] [Enable] current handler state is: notinstalled
2019/10/30 10:34:50.145766 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] Downloading extension package: https://zrdfepirv2by4prdstr09.blob.core.windows.net/bfd5c281a7dc4e4b84381eb0b47e3aaf/Microsoft.Compute__CustomScriptExtension__1.9.5
2019/10/30 10:34:50.247634 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] Unzipping extension package: /var/lib/waagent/Microsoft.Compute.CustomScriptExtension__1.9.5.zip
2019/10/30 10:34:50.327393 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] Initializing extension Microsoft.Compute.CustomScriptExtension-1.9.5
2019/10/30 10:34:50.529547 INFO ExtHandler Created slice for system-walinuxagent.extensions-Microsoft.Compute.CustomScriptExtension_1.9.5.slice
2019/10/30 10:34:50.534978 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] Update settings file: 0.settings
2019/10/30 10:34:50.538664 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] Install extension [install.cmd]
2019/10/30 10:34:50.544112 INFO ExtHandler Started extension using scope 'Microsoft.Compute.CustomScriptExtension_1.9.5_59df2329-5df4-4c1f-bfdf-b03d5e0ee54a'
2019/10/30 10:34:50.552458 INFO ExtHandler Started tracking new cgroup: Microsoft.Compute.CustomScriptExtension-1.9.5, path: /sys/fs/cgroup/cpu/system.slice/Microsoft.Compute.CustomScriptExtension_1.9.5_59df2329-5df4-4c1f-bfdf-b03d5e0ee54a.scope
2019/10/30 10:34:50.559631 INFO ExtHandler Started tracking new cgroup: Microsoft.Compute.CustomScriptExtension-1.9.5, path: /sys/fs/cgroup/memory/system.slice/Microsoft.Compute.CustomScriptExtension_1.9.5_59df2329-5df4-4c1f-bfdf-b03d5e0ee54a.scope
2019/10/30 10:34:52.569846 ERROR ExtHandler Event: name=Microsoft.Compute.CustomScriptExtension, op=Install, message=eJytkbFqxDAQRHt9xX5ALJ99NsFuj4NrkkBSHuaQpdUhsHeNtEpMvj7GRUiZ4pphioHHzFzPqyClwPS2YDSymXOMHAd4ZSq+MTLgGgQsO+yhqp+foPw0sZzCWH4Zc0eS8iXYyIm96BPPSxbUp5yE5w8bwyK/gKLSnW7LQEnMNGk7O3VN4jjLoNRuMcZBvWeiQHdIlhcEkyBTkB7+CbntkFvbOV8f665onW+Kxla+GL3b5HB0LR4Q28bonaAeV2fbp3/gOj2Mgf5mL4bchFHjul1BLOA5k1M/YnmhEQ==, duration=0
2019/10/30 10:34:52.602020 INFO [Microsoft.Compute.CustomScriptExtension-1.9.5] Remove extension handler directory: /var/lib/waagent/Microsoft.Compute.CustomScriptExtension-1.9.5
2019/10/30 10:34:52.803191 INFO ExtHandler ProcessGoalState completed [incarnation 2; 2784 ms]
2019/10/30 10:38:08.530075 INFO ExtHandler Stopped tracking cgroup: Microsoft.Compute.CustomScriptExtension-1.9.5, path: /sys/fs/cgroup/cpu/system.slice/Microsoft.Compute.CustomScriptExtension_1.9.5_59df2329-5df4-4c1f-bfdf-b03d5e0ee54a.scope
2019/10/30 10:38:08.541849 INFO ExtHandler Stopped tracking cgroup: Microsoft.Compute.CustomScriptExtension-1.9.5, path: /sys/fs/cgroup/memory/system.slice/Microsoft.Compute.CustomScriptExtension_1.9.5_59df2329-5df4-4c1f-bfdf-b03d5e0ee54a.scope
2019/10/30 10:43:07.193677 INFO Daemon Agent WALinuxAgent-2.2.44 launched with command 'python3 -u bin/WALinuxAgent-2.2.44-py2.7.egg -run-exthandlers' is successfully running

Custom script: 

#!/bin/bash

sed -i '/COSMOS_CONN/d' /etc/profile
sed -i '/COSMOS_DB/d' /etc/profile

echo "export COSMOS_CONN=$1" >> /etc/profile

echo "export COSMOS_DB=$2" >> /etc/profile

source /etc/profile

What I am trying to do here is that I get cosmos connection string in the template and have to save it some how in the virtual machine for further use.

new vmss with extension timeout

$
0
0

Hello, 

I used terraform to stand a new vmss with oms extension, how ever I am getting timeout at the end after running 20 min or so. when I check the vmss install the agents on early stage but something happen and stop the progress and died. 

this is the code I have used

data "azurerm_resource_group" "rg" {
  name     = "xxxxxx"
  }
resource "azurerm_virtual_machine_scale_set" "vmss" {
  name                = "xxxxxxx"
  location            = "${data.azurerm_resource_group.rg.location}"
  resource_group_name = "${data.azurerm_resource_group.rg.name}"

  # automatic rolling upgrade
  upgrade_policy_mode  = "Manual"
  sku {
    name     = "Standard_B1ms"
    tier     = "Standard"
    capacity = 1
  }
 extension {
 name                          = "OMSExtension"
 publisher                     = "Microsoft.EnterpriseCloud.Monitoring"
 type                          = "OmsAgentForLinux"
 type_handler_version          = "1.11"

 settings = <<-BASE_SETTINGS
 {"workspaceId" : "xxxxxxxxxxxxxxxxx"
 }
 BASE_SETTINGS

 protected_settings = <<-PROTECTED_SETTINGS
 {"workspaceKey" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxx="
 }
 PROTECTED_SETTINGS
}
extension {
    name                 = "DependencyAgentLinux"
    publisher            = "Microsoft.Azure.Monitoring.DependencyAgent"
    type                 = "DependencyAgentLinux"
    type_handler_version = "9.5"
  }
  storage_profile_image_reference {
    id   = "/subscriptions/xxxxxxxxxxx/resourceGroups/xxxxxx/providers/Microsoft.Compute/images/xxxxxxxxxx"
  }

  storage_profile_os_disk {
    name              = ""
    caching           = "ReadWrite"
    create_option     = "FromImage"
    managed_disk_type = "Standard_LRS"
  }

  os_profile {
    computer_name_prefix = "xxxxxxx"
    admin_username       = "xxxxxxxxxx"
  }

  os_profile_linux_config {
    disable_password_authentication = true

    ssh_keys {
      path     = "/home/mycloud/.ssh/authorized_keys"
      key_data = "xxxxxxxxxxxx"
    }
  }

  network_profile {
    name    = "teast-networkprofile"
    primary = true

    ip_configuration {
      name                                   = "test-IPConfiguration"
      primary                                = true
      subnet_id                              = "/subscriptions/xxxxxxxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.Network/virtualNetworks/xxxx/subnets/xxxxxxxxx"
    }
  }
}

what missing or cause the issue any idea?


raindrop18


Viewing all 12545 articles
Browse latest View live