How delete VM Azure using tags using powershell?
How do I delete a VM using tags? Let's say there is a VM with the tags "Name:Surname". How can I delete this VM without using the VM name or ID. Namely deletion using tags. I try to use: get-azvm…
How do I delete a VM using tags? Let's say there is a VM with the tags "Name:Surname". How can I delete this VM without using the VM name or ID. Namely deletion using tags. I try to use: get-azvm…
I have Azure Pipeline which creates VMs, Storage , NICs etc. And i want that these resources should be deleted if any of the task in the pipeline got failed. How this can be achieved, do I need to use…
I am a beginner learning Terraform and need some advice. I am trying to create a Linux VM Scale Set in Azure using Terraform. I used the code in the Terraform documentation to set the source_image_reference like this: # Configure…
I want to create a VM without nsg. In the New-AzVm cmdlet, I specify $null in the PublicIP parameter - and it works (i.e. it does not create a Public IP). But this does not work with nsg. Here is…
I want to create a Dockerfile that has node.js, here is my code: FROM node:latest WORKDIR /app After executing the command docker build . and checking my image with docker image it says <none> Any ideas?
Suddenly I am not able to take the RDP of the azure Machine. There is error that the virtual machine agent status is not ready I checked that RDP connectivity is OK. Tried to find from the internet to re-install…
I am using the Azure .NET SDK in C# to instantiate a VM of size NC4as_T4_v3. The problem that I am running into is that I need to define a VirtualMachineHardwareProfile object with a property VmSize of type VirtualMachineSizeType, but…
I created an AWS EC2 (ubuntu-20.04) instance and setup a mongo server as per https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-ubuntu/ (mongo server is running in default port 27017 and not secured by any username/password) I am able to connect to it from within the VM…
How can I prevent terraform from destroying and recreating azure vm extensions? Life cycle code block isn't working. Terraform persists on destroying the resources and fails when I have the locks enabled. Please can someone tell me where I am…
I have tried to resize the os disk on my Linux VM which is normally created by azure automatically. I am not been able to create a custom os disk - Please advise how do I do it? enter image…