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

Problems connect remote vmachine

$
0
0

Hello. I have a virtualmachine with windows 2016.

Yesterday i got the problem "u can´t access to vmmake sure is connected toi the network and remote access is enabled".

The vm appear like running.

Anyone would be say me how can i fix this problem and access again to my vm rwith Remote?


migration failed classic to arm vm

$
0
0
Hello,

While initiating move cmd for migration PS is not recognizing "Move-AzureVirtualNetwork" cmd. However, i was able to get the virtual network name with cmd "Get-AzVirtualNetwork", so i tried cmd "Move-AzVirtualNetwork" even this did not work.

Kindly suggest if there anything wrong with the script. I'm referring to Azure Doc -"Migrate IaaS resources from classic to Azure Resource Manager by using Azure PowerShell"

CMD used - Move-AzureVirtualNetwork -Prepare -VirtualNetworkName $vnetname                             

Move-AzureVirtualNetwork : The term 'Move-AzureVirtualNetwork' 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
correct and try again.
At line:1 char:1
+ Move-AzureVirtualNetwork -Prepare -VirtualNetworkName $vnetname
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Move-AzureVirtualNetwork:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Thanks,

VPN can't connect

$
0
0

Hi, 

i recently setup a VPN connection but cant seem to connect via PPTP from my azure VM. Can some please assist me as i did allow ports inbound and outbound nothing seems to resolve my issue

Regards

Failed to monitor apache: write /var/lib/gonit/state: no space left on device

$
0
0

I have this problem in my vm and i cant log in to my rdp and ssh 

or restart apache my website is down 

Error message: "VMAccess Extension does not support Domain Controller."

$
0
0

Dear,

I have set up an ADFS test lab in my Azure Portal. After some time I have tryed to log-in, but somehow I got asked to change my password because it's expired. Now I know that this is my admin password, that I have made during making the VM and it should be(correct me if wrong) automatically set to password never expire? When I try to reset my DC password or local password I get the following errormessage: Error message: "VMAccess Extension does not support Domain Controller."

Now I managed to login to the ADFS server with my ADFS service account. But I want the domain/local account issue resolved...

Could anyone help me out with this issue? Thanks in advance!

Regards,

Kerim Tupkovic

Monitor and alerts when vm services are stoped

$
0
0

Hello,

I just started using azure and i would like some help setting up a solution i'm trying to test.

I would like to setup an alert ( sending a mail for exemple) when a service on an azure vm is stopped.

I started looking in the documentation about azure monitor but i'm a little bit overwhelmed, does someone as a way to set that up ?

Thanks

Anyone doing PCF?

$
0
0

Hi all, 

aplogies not sure where to post this so i have seen some discussions re PCF in this forum hence posting here,

Is someone doing PCF, 

if yes how have they designed their subscription for Azure?

added it to their main subscriptions or created new ones dedicated for PCF?#

any help would be appreciated 

Thanks 

Ubuntu server setup - Experiencing authentication issues

$
0
0

Hi I am setting up Ubuntu server to run Ruby on Rails app. 

While I am installing resources , I am getting error of "

Experiencing authentication issues

The portal is having issues getting an authentication token. The experience rendered may be degraded. Additional information from the call to get a token: Extension: microsoft_azure_compute Details: Service returned error. Check InnerException for more details"

Please advise me how to fix this problem.

Thanks

Younghee Kwon



PTR record not created Automatically for my provisionned VMs in Azure

$
0
0

Hello ,

Our DC is in onpremise and our virtual network in Azure configured to use our onpremise DNS .when i deploy a new windows a VM in Azure , the PTR record is not created automatically , but for the VMs created in our onpremise infra , the PTR is created automatically .the reverse lookup Zone is already created in our AD with the right subnet in our azure .

how could i resolve this issue ?

Regards


Step-By-Step-Connect-your-AWS-and-Azure-environments-with-a-VPN

$
0
0

Hello Bharadwaj,

I am required to investigate the working in my organisation between azure and aws vpn by referring this site 
https://pixelrobots.co.uk/2019/03/create-a-site-to-site-vpn-between-existing-azure-and-aws-resources/


However, I was advised by the support group to refer this site https://techcommunity.microsoft.com/t5/ITOps-Talk-Blog/Step-By-Step-Connect-your-AWS-and-Azure-environments-with-a-VPN/ba-p/339211

and i am stuck at these steps in the above document,
****
At this point I deployed 2 VM on the network.  One Windows 2019 DC and one Linux box.

Install domain services and DNS on this server and Promote the Windows machine to a DC
Set Vnet DNS setting to use the Windows DC as the vnet DNS
****

As the support had requsted me to raise a ticket - i have done the same and here is the ticket
 https://social.msdn.microsoft.com/Forums/en-US/b80b4d9c-bc97-48f3-8a49-1519c4299228/stepbystepconnectyourawsandazureenvironmentswithavpn?forum=WAVirtualMachinesforWindows

Please help me out here.

regards,
sunil 

subbaiah scott sunil <ssuns2004@gmail.com>

Azure VM - Windows Server 2019 - ASP.NET MVC / Sql Server Spatial Types Issue

$
0
0

I'm trying to migrate my ASP.NET MVC web app from an Azure App Service to a VM.  Everything looks good with the exception of the following error I can't seem to resolve:

Spatial types and functions are not available for this provider because the assembly 'Microsoft.SqlServer.Types' version 10 or higher could not be found.

I originally had the same error in my App Service but was able to resolve doing the following:

1. Installing the Microsoft.SqlServer.Types nuget package

2. Adding this line to the Application_Start() of the Global.asax.cs

SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));

  I haven't changed anything in my application that is currently working in an App Service.  I have only migrated the code to a Windows Server 2019 VM.  I have also tried installing the SqlClrTypes manually but still receiving the error.

Has anyone been able to get Spatial Types to work on an Azure Windows VM for their ASP.NET MVC app?

Removing privacy settings window when launching a Windows 10 VM from an image

$
0
0

Hi,

is there a way to get rid of the "Choose privacy settings for your device" window when launching a new VM based on a Win 10 image?

The VM is launched by our Jenkins buildserver in order to run some UI tests.

Would it be possible to kill the task by a script (I don't know the tasks name though) or remove the dialog completely by deleting the exe and creating a new image?

Any hint would be much appreciated.

Kind regards

OrangeTomato

How do I detect that an Azure VM Scale set has scaled down manually or automatically to fire an Azure Function

$
0
0

How do I detect that an Azure VM Scale set has scaled down manually or automatically to fire an Azure Function?

I have taken a look in Azure Monitor but the only event which fires when scaling up or down manually is the "Create or Update Virtual Machine Scale Set (Microsoft.Compute/virtualMachineScaleSets)" event. This has an Accepted event which shows the instance count.

I would be surprised if there isnt a way of detecting that the scale set has scaled down automatically?



Can't add a VM created using the GUI to domain on virtual network in WindowsAzure

$
0
0

The environment: I'm doing all this on Azure. So, there is no VPN involved. I have a domain controller and a virtual network up and running on Azure. I successfully deployed a SQL Server machine using PowerShell, and that machine was provisioned fine and added to the domain. So, recapping: domain controller up and running, and another VM up and running, joined to the domain successfully and running SQL Server.

Now, here's the issue. I wanted to try and create another VM using the GUI in windows Azure instead of using PowerShell. I went ahead and created the VM successfully. Then when right-clicking on Computer/properties for this new VM, I see that it is NOT joined to the domain. It's in the default WORKGROUP. I try joining the domain and I get the message "An Active Directory domain controller for the domain <domain.com> could not be contacted".

So, what gives? How do I join VMs created through the Azure GUI to my domain. I already know it is up and running and it should be able to take new VMs. I can do it using PowerShell. But I do not want to. Is it a limitation of WindowsAzure? Only VMs created using PowerShell can be added to the domain?? If that is the case this sounds like a really bad job from Microsoft.

Any help much appreciated.

Raphael

Not able to delete Recovery Services vault

$
0
0

Hi,

I am doing training on Azure for AZ103 course. I have initiated to delete myRecoveryServicesVault But, the system is saying it will take 14 days to delete it. Can you please delete it immediately. As I have all resources pilled up for deletion.



Regards,
Shariq




is there an option to transfer VM image from region to different region ?

$
0
0
is there an option to transfer VM image from region to different region ?

Windows Virtual Desktop pool deployment failing

$
0
0

Hi,

I am trying to create windows virtual desktop pool and its failing with below error. Anyone know the reason?

{ "id": "/subscriptions/9b3fea0c-2cd5-4542-a973-de40e2508c3a/resourceGroups/AAD-RG/providers/Microsoft.Resources/deployments/rds.wvd-provision-host-pool-20191016111741/operations/A6E51AE29D5EEBEE", "operationId":"A6E51AE29D5EEBEE", "properties": { "provisioningOperation": "Create", "provisioningState": "Failed", "timestamp": "2019-10-16T06:28:04.913171Z", "duration": "PT25M21.9431122S","trackingId": "6f48e9ee-18a5-44ae-97c8-cc19dc7ac186", "statusCode": "Conflict", "statusMessage": { "status": "Failed", "error": { "code": "ResourceDeploymentFailure","message": "The resource operation completed with terminal provisioning state 'Failed'.", "details": [ { "code": "VMAgentStatusCommunicationError", "message": "VM 'cloudwvd-0' has not reported status for VM agent or extensions. Please verify the VM has a running VM agent and can establish outbound connections to Azure storage." } ] } }, "targetResource": { "id": "/subscriptions/9b3fea0c-2cd5-4542-a973-de40e2508c3a/resourceGroups/AAD-RG/providers/Microsoft.Compute/virtualMachines/cloudwvd-0/extensions/joindomain","resourceType": "Microsoft.Compute/virtualMachines/extensions", "resourceName": "cloudwvd-0/joindomain" } }}

Cuckoo in Azure VM

$
0
0

Hi, I was simply wondering if it is a possibility, both legally and practically to analyze malware on an Azure virtual machine using the Cuckoo sandbox?

Thanks.

the Shared Gallery Image to which to publish the managed image version to does not exist in the resource group

$
0
0

Hi, 

I am trying to move VM image from one RG to Shared Image gallery using packer. But am getting the following error. 

The Shared Gallery Image to which to publish the managed image version to does not exist in the resource group.

Kindly suggest me any solution for this. 

Please find the script below.

{
  "builders": [{
    "type""azure-arm",
    "client_id""",
    "client_secret""",
    "subscription_id""",
    "tenant_id""",
    "os_type""Windows",
    "image_publisher""MicrosoftWindowsServer",
    "image_offer""WindowsServer",
    "image_sku""2012-R2-Datacenter",
    "communicator""winrm",
    "winrm_use_ssl""true",
    "winrm_insecure""true",
    "winrm_timeout""5m",
    "winrm_username""packer",
    "managed_image_resource_group_name""shivu",
    "managed_image_name""myPackerImg12",
    "shared_image_gallery_destination": {
        "resource_group":"shivu",
        "gallery_name""sharedimage",
        "image_name""test",
        "image_version""1.0",
        "replication_regions": ["South India"]
    },
    "azure_tags": {
        "dept""Engineering",
        "task""Image deployment"
    },
    "location""East US",
    "vm_size""Standard_D2_v2"
  }],
  "provisioners": [{
    "type""powershell",
    "inline": [
      "Add-WindowsFeature Web-Server",
      "& $env:SystemRoot\\System32\\Sysprep\\Sysprep.exe /oobe /generalize /quiet /quit",
      "while($true) { $imageState = Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\State | Select ImageState; if($imageState.ImageState -ne 'IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE') { Write-Output $imageState.ImageState; Start-Sleep -s 10  } else { break } }"
    ]   
  }]
}


Azure Policy is not picking up new Machine with different image offer, publisher and Sku

$
0
0

Hi,

I have the below Azure Policy to install Microsoft Antimalware

{"properties": {"displayName": "Ent-Non-Prod-Antimalware-Win-10","policyType": "Custom","mode": "Indexed","metadata": {"createdBy": "c82bad04-55c7-46f0-9944-d5c5edbf914b","createdOn": "2019-10-16T00:40:49.2829054Z","updatedBy": "c82bad04-55c7-46f0-9944-d5c5edbf914b","updatedOn": "2019-10-16T23:58:24.5242162Z"
    },"parameters": {},"policyRule": {"if": {"allOf": [
          {"field": "type","equals": "Microsoft.Compute/virtualMachines"
          },
          {"field": "Microsoft.Compute/imagePublisher","in": ["microsoftvisualstudio","MicrosoftWindowsServer"
            ]
          },
          {"field": "Microsoft.Compute/imageOffer","in": ["WindowsServer","Windows"
            ]
          },
          {"field": "Microsoft.Compute/imageSKU","in": ["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn","Windows-10-N-x64"
            ]
          }
        ]
      },"then": {"effect": "deployIfNotExists","details": {"type": "Microsoft.Compute/virtualMachines/extensions","existenceCondition": {"allOf": [
              {"field": "Microsoft.Compute/virtualMachines/extensions/type","equals": "IaaSAntimalware"
              },
              {"field": "Microsoft.Compute/virtualMachines/extensions/publisher","equals": "Microsoft.Azure.Security"
              }
            ]
          },"roleDefinitionIds": ["/providers/Microsoft.Authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"
          ],"deployment": {"properties": {"mode": "incremental","template": {"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion": "1.0.0.0","parameters": {"vmName": {"type": "string"
                  },"location": {"type": "string"
                  },"ExclusionsPaths": {"type": "string","defaultValue": "","metadata": {"description": "Semicolon delimited list of file paths or locations to exclude from scanning"
                    }
                  },"ExclusionsExtensions": {"type": "string","defaultValue": "","metadata": {"description": "Semicolon delimited list of file extensions to exclude from scanning"
                    }
                  },"ExclusionsProcesses": {"type": "string","defaultValue": "","metadata": {"description": "Semicolon delimited list of process names to exclude from scanning"
                    }
                  },"RealtimeProtectionEnabled": {"type": "string","defaultValue": "true","metadata": {"description": "Indicates whether or not real time protection is enabled (default is true)"
                    }
                  },"ScheduledScanSettingsIsEnabled": {"type": "string","defaultValue": "false","metadata": {"description": "Indicates whether or not custom scheduled scan settings are enabled (default is false)"
                    }
                  },"ScheduledScanSettingsScanType": {"type": "string","defaultValue": "Quick","metadata": {"description": "Indicates whether scheduled scan setting type is set to Quick or Full (default is Quick)"
                    }
                  },"ScheduledScanSettingsDay": {"type": "string","defaultValue": "7","metadata": {"description": "Day of the week for scheduled scan (1-Sunday, 2-Monday, ..., 7-Saturday)"
                    }
                  },"ScheduledScanSettingsTime": {"type": "string","defaultValue": "120","metadata": {"description": "When to perform the scheduled scan, measured in minutes from midnight (0-1440). For example: 0 = 12AM, 60 = 1AM, 120 = 2AM."
                    }
                  }
                },"resources": [
                  {"name": "[concat(parameters('vmName'),'/IaaSAntimalware')]","type": "Microsoft.Compute/virtualMachines/extensions","location": "[parameters('location')]","apiVersion": "2015-06-15","properties": {"publisher": "Microsoft.Azure.Security","type": "IaaSAntimalware","typeHandlerVersion": "1.3","autoUpgradeMinorVersion": true,"settings": {"AntimalwareEnabled": true,"RealtimeProtectionEnabled": "[parameters('RealtimeProtectionEnabled')]","ScheduledScanSettings": {"isEnabled": "[parameters('ScheduledScanSettingsIsEnabled')]","day": "[parameters('ScheduledScanSettingsDay')]","time": "[parameters('ScheduledScanSettingsTime')]","scanType": "[parameters('ScheduledScanSettingsScanType')]"
                        },"Exclusions": {"Extensions": "[parameters('ExclusionsExtensions')]","Paths": "[parameters('ExclusionsPaths')]","Processes": "[parameters('ExclusionsProcesses')]"
                        }
                      }
                    }
                  }
                ]
              },"parameters": {"vmName": {"value": "[field('name')]"
                },"location": {"value": "[field('location')]"
                },"RealtimeProtectionEnabled": {"value": "true"
                },"ScheduledScanSettingsIsEnabled": {"value": "true"
                }
              }
            }
          }
        }
      }
    }
  },"id": "/providers/Microsoft.Management/managementGroups/Enterprise-NonProduction-EMG-v01/providers/Microsoft.Authorization/policyDefinitions/f37e3ed9-a0e1-4637-8ab6-bb4dd1f9889a","type": "Microsoft.Authorization/policyDefinitions","name": "f37e3ed9-a0e1-4637-8ab6-bb4dd1f9889a"
}

However, I spin a new 2016-Datacentre VM and it does not have the extension, how to troubleshoot? What is the issue?

Azure Policy is the correct tag but since it was not there I choose closest one, Azure Virtual Machine.

Please assist.

Viewing all 12545 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>