Questions tagged [azure-vm-templates]

36 questions
2
votes
1 answer

How to retrieve deployment username in azure vm template

I'm currently building out a number of virtual machines in azure using a template that we've built out. I would like to be able to pull the name of the user who chose to deploy this template so that we can verify a number of things exist on the…
lazuhrus
  • 21
  • 1
1
vote
2 answers

azure vms creating failed

I created 2 VMs, one is the domain controller, another is for hosting the applications, then I created 2 images from these VMs by following this article. But now I cannot create VM from the images, even manually create the image from the Azure…
Sue Su
  • 301
  • 1
  • 2
  • 11
1
vote
2 answers

While setting kubernetes cluster, kubeadm initialization command is giving error

I am trying to set up Kubernetes cluster on Azure ubuntu-16.04 LTS VM. I installed docker 17.03.2~ce-0~ubuntu-xenial version on VM and followed all steps mentioned on kubernetes official website but while running kubeadm command on my master node I…
user3541321
  • 165
  • 5
  • 19
1
vote
1 answer

How to run a 2 VM custom script extensions on Azure VM at the same time

I have create a Azure VM using ARM template and want to run a 2 VM script extensions on the same VM after VM is deployed. How can I achieve using the ARM template? { "apiVersion": "[variables('resourceDeploymentApiVersion')]", …
Galet
  • 5,853
  • 21
  • 82
  • 148
1
vote
1 answer

Unable to execute "custom script extension" on Azure VM using azure CLI from linux sub system

I am working on developing post-deployment Pester validation script for my project. I need to push pester scripts into the VM as custom script extension using Azure CLI. Following is the command I executed: az vm extension set --resource-group…
Melbin K
  • 55
  • 1
  • 2
  • 6
1
vote
1 answer

How to access environment variables in custom script extension script on Azure

I have created a RHEL Linux VM and installed Oracle JDK in it. Post creation of VM, I am executing script using Custom Script extension in VM. Below is my script. Myscript.sh echo "$$ $JAVA_HOME $$" >> output.log echo `env` >>…
1
vote
2 answers

Create Azure VM from existing VHD without powershell

As for 28/05/2018 I'm wondering if we can create a VM from VDH without using the azure powershell templates. I found many tutorials on the web, I tried one saying to attach vhd to current VM through a storage account. But thats not what I want since…
zahma
  • 412
  • 4
  • 14
1
vote
3 answers

Azure VM resize in same physical cluster

I am trying to resize an Azure VM using command line. The VM size is listed in the list of sizes that this VM can be resized to. But when I try to resize this VM I am unable to do because of this error Unable to resize the VM 'XYZ' because the…
user1142317
  • 533
  • 1
  • 8
  • 20
1
vote
3 answers

availability set can be used along with scale set or scale set is enough

I am new to azure & learning to design application in Azure. The question might be too naive for someone but I am really confused. Do availability set are also required when we have scale set or scale set is enough for High availability & automatic…
Pranav Singh
  • 17,079
  • 30
  • 77
  • 104
1
vote
0 answers

Setting environment variables in an azure vm template

Hi I'm curious if some one can help me with settings for adding environment variables to a vm in an azure template. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", …
Pablo Jomer
  • 9,870
  • 11
  • 54
  • 102
0
votes
0 answers

How to monitor AZURE VMS with OPEN SOURCE SOFTWARE (NAGIOS/SENSU)

I am looking for a monitoring tool for CPU,MEMORY resources running under AZURE VM and Need Alerts also. We are not looking for paid solutions, but we would like to run a monitoring server. In our cloud, we will launch and remove servicesI wonder…
0
votes
1 answer

Dynamically pass ARM parameter as customscriptextension parameter

I would like to run a PowerShell custom script inside arm template, so it sets port forwarding and set firewall, script is as following function set-proxy { param( [parameter(ValueFromPipeline = $True, ValueFromPipelineByPropertyName =…
Roger Chen
  • 233
  • 3
  • 15
0
votes
1 answer

Terraform for_each?

I have been working on this terraform azure vm template and the goal is use for_each to make the module more dynamic in nature but i'm not able to figure out how to reference one resource_id in another resource block. If you see in first resource…
0
votes
0 answers

Azure Windows VM with Azure AD Authentication

I am building a few VMs in Azure Windows Server Data Center 2019 Windows Server 2019 with SQL Server 2019 Enterprise Windows Server 2019 with SQL Server 2019 Developer I want these VMs to be authenticated using my Azure AD (available in the same…
0
votes
0 answers

Initialize a new data disk in azure VM with template

We are trying to automate the deploy of an azure virtual machine, right now we have a template that creates the VM with 4 data disks, but after the deployment is done we have to rdp the machine and go to Disk management and initialize the disk one…
1
2 3