azure-virtual-machine

Azure Custom Script Extension. Execute script as another user

匆匆过客 提交于 2019-12-02 02:36:11
I'm using command1.ps1 script to install Azure Custom Script Extension on the target VM and execute command2.ps1. command2.ps1 is supposed to run a script (that is inside ScriptBlock) as domain administrator (hence -Credential $Credentials ). When I run command2.ps1 manually and input $domainAdminName and $domainAdminPassword it works, but when running it through command1.ps1 it doesn't work. Maybe the problem is cause by Azure Custom Script Extension running command2.ps1 as System account? Please, help me make the script work. command1.ps1: param ( [Parameter(Mandatory)] [String]

Getting error “Changing property 'osDisk.name' is not allowed.” with Azure Powershell Script

元气小坏坏 提交于 2019-12-02 02:25:40
I'm trying to move an existing Azure VM with a Managed Disk into an existing Availability Set. However, when I apply the command: New-AzureRmVM -ResourceGroupName $rg -Location $OriginalVM.Location -VM $NewVM -DisableBginfoExtension I get the following error: New-AzureRmVM : Changing property 'osDisk.name' is not allowed. ErrorCode: PropertyChangeNotAllowed ErrorMessage: Changing property 'osDisk.name' is not allowed. StatusCode: 409 ReasonPhrase: Conflict OperationID : c179070b-e189-4025-84b0-87ba748f5844 At line:2 char:5 + New-AzureRmVM -ResourceGroupName $rg -Location $OriginalVM.Locati ...

Is it possible to convert azure VM from Managed Disk to UnManaged Disk? [closed]

心不动则不痛 提交于 2019-12-02 02:14:44
i have created new VM in Azure with Managed disk. now i want to convert it to Unmanaged disk. Is it Possible? now i want to convert it to Unmanaged disk. Is it Possible? There is no way to convert it to unmanaged disk direct. As a workaround, we can copy VHD from managed disk to unmanaged dis k, then use this VHD to create a new VM. We can do that with PowerShell command: $sas = Grant-AzureRmDiskAccess -ResourceGroupName "[ResourceGroupName]" -DiskName "[ManagedDiskName]" -DurationInSecond 3600 -Access Read $destContext = New-AzureStorageContext –StorageAccountName "[StorageAccountName]"

Azure Extension script for linux

我的梦境 提交于 2019-12-02 02:14:39
I am trying to execute multiple shell scripts by separating each command using '&&' using Azure Custom Extension script for Linux. ARM templates is the deployment model. Example Snippet: "settings": { "fileUris": "[script1,script2, script3]", "commandToExecute": "sh script1.sh && sh scrip2.sh && sh script3.sh" } But only the first script executes and the other two scripts doesn't execute. Note : There are no errors in Script logs path too. I see all the scripts downloaded in waagent folder path too. Any help will be be really great. Operating System: Linux SaiVikas ARM template Snippet

Is there any way, that I can make Android Emulator run on Azure Virtual Machine?

谁说我不能喝 提交于 2019-12-01 18:02:22
I installed Android Studio on Azure VM and installed all the prerequisites. When I try to run the emulator, I get the following error When I try to install HAXM, I get the following error: I checked that my Azure VM runs on AMD Processor. Is there any way, that I can make Android Emulator run on Azure Virtual Machine? Something that requires virtualization isn't going to run in an Azure VM (which is already virtualized). Same thing with, say, WP8 emulator (see this question, with the same answer). EDIT - As of mid-2017, there are now VMs that support nested virtualization (Dv3 and Ev3 series,

Create an Azure VM with an unmanaged disk

旧巷老猫 提交于 2019-12-01 11:04:45
I'm trying to create an Azure VM with an unmanaged disk via PowerShell since managed disks aren't supported in Azure Government yet. None of the documentation I could find for PowerShell VM creation references managed or unmanaged disks and the default seems to be managed disks. My VM creation fails with the following error: New-AzureRmVM : Managed Disks are not supported in this region. ErrorCode: BadRequest Here's the script I'm using: $location = "USGovTexas" New-AzureRmResourceGroup -Name myResourceGroup -Location $location # Create a subnet configuration $subnetConfig = New

azure bizspark - notification if balance below the threshold value

笑着哭i 提交于 2019-12-01 10:27:54
we are using azure BizSpark subscription. we are allowed 150USD for free for one month. The issue we are facing once we used 150 and credit become 0 the VM automatically disable and we have to recharge and start VM again. I want alert on credit threshold value i-e if balance < 10 then a notification email will be send to me. Please some one suggest can i configure this kind of alert notification via azure portal ? You could do it on Azure account manage Portal . More information about this please refer to this link: Set up billing or credit alerts for your Microsoft Azure subscriptions You

VM on Azure - Passive FTP Won't Work

折月煮酒 提交于 2019-12-01 09:11:40
I've tried the suggestions on a number of sites ( http://blogs.thesitedoctor.co.uk/tim/Trackback.aspx?guid=e81a4682-0851-490b-a3d2-adf254a701e7 and http://www.itq.nl/blogs/post/Walkthrough-Hosting-FTP-on-IIS-75-in-Windows-Azure-VM.aspx , and Passive FTP on Windows Azure Virtual Machine ) and it won't work. FTP active and passive both work from the VM to itself. FTP active works from the outside world. FTP passive fails with the server responding back with "550 The network connection was aborted by the local system" (this message returns on the control channel/port 21 immediately after the SYN

azure bizspark - notification if balance below the threshold value

喜你入骨 提交于 2019-12-01 07:24:04
问题 we are using azure BizSpark subscription. we are allowed 150USD for free for one month. The issue we are facing once we used 150 and credit become 0 the VM automatically disable and we have to recharge and start VM again. I want alert on credit threshold value i-e if balance < 10 then a notification email will be send to me. Please some one suggest can i configure this kind of alert notification via azure portal ? 回答1: You could do it on Azure account manage Portal. More information about

VM on Azure - Passive FTP Won't Work

会有一股神秘感。 提交于 2019-12-01 06:54:54
问题 I've tried the suggestions on a number of sites (http://blogs.thesitedoctor.co.uk/tim/Trackback.aspx?guid=e81a4682-0851-490b-a3d2-adf254a701e7 and http://www.itq.nl/blogs/post/Walkthrough-Hosting-FTP-on-IIS-75-in-Windows-Azure-VM.aspx, and Passive FTP on Windows Azure Virtual Machine) and it won't work. FTP active and passive both work from the VM to itself. FTP active works from the outside world. FTP passive fails with the server responding back with "550 The network connection was aborted