azure-virtual-machine

Azure Web Apps are really slow

岁酱吖の 提交于 2019-12-03 08:14:37
问题 I've been investigating a slow warmup time for my production app and I got some unexpected results. Testing on various Azure VMs showed the warmup time to be well-related to the application server performance (so it's not external request, including sql), but what's really interesting is the comparison to Azure Web Apps and my own local machine (all times are averages from at about 3 runs): VM A0: >1m VM A2: 13s VM D2V2: 6.8s VM D5V2: 7.8s Wep App P2: 25s Web App S2: 26.5s My local machine: 6

Azure VM: Adding a Reserved IP address to an existing VM

痞子三分冷 提交于 2019-12-03 02:37:49
What I have read so far on the web is that there is no way to add a reserved IP to an existing VM (unless I recreate the VM which I am trying to avoid). However, I have noticed that external IP of my VM and the cloud service is same. Reserved IP Addresses page explains how to "To use a Reserved IP with Cloud Services". I have looked everywhere in the Azure Management Portal but couldn't find a configuration setting for Service Configuration Schema. I am using the Azure scheduler to turn-off the VMs at night and on the weekends. From the following I understand is that there is something that I

Azure Web Apps are really slow

泄露秘密 提交于 2019-12-02 21:54:45
I've been investigating a slow warmup time for my production app and I got some unexpected results. Testing on various Azure VMs showed the warmup time to be well-related to the application server performance (so it's not external request, including sql), but what's really interesting is the comparison to Azure Web Apps and my own local machine (all times are averages from at about 3 runs): VM A0: >1m VM A2: 13s VM D2V2: 6.8s VM D5V2: 7.8s Wep App P2: 25s Web App S2: 26.5s My local machine: 6.6s My local machine is an i5 with 3.3GHz. The local machine is fastest even though it connects to the

Add SSL Cert to an existing VM linux vm from Azure key vault

那年仲夏 提交于 2019-12-02 17:20:09
问题 How you add SSL Cert to an existing azure Linux VM from Azure Key vault. for windows we use the following command $vaultId=(Get-AzureRmKeyVault -ResourceGroupName $resourceGroup -VaultName $keyVaultName).ResourceId $vm = Add-AzureRmVMSecret -VM $vm -SourceVaultId $vaultId -CertificateStore "My" -CertificateUrl $certURL Is there a similar one like this for linux vm? Is there a link similar to this for linux Secure IIS web server with SSL certificates on a Windows virtual machine in Azure 回答1:

View Fault and Update Domains of virtual machine in Azure through Python Script

我只是一个虾纸丫 提交于 2019-12-02 14:03:20
问题 Is there any way i can get the update domain and fault domain of the particular vm through python script. I don't want to use powershell commands. << In Power Shell we can do this >> http://windowsitpro.com/azure/view-fault-and-update-domains-azure-resource-manager << /Power Shell >> I am looking for azure python cli. which can do this task. 回答1: Maybe you could use the following command az vm show -g yourgroup -n vmname --expand instanceView You could get your VM's platformFaultDomain and

how to get cpu usage of azure vm throught powershell

冷暖自知 提交于 2019-12-02 13:06:13
can we see the metrics of the CPU usage and other details of the VM through power shell. i am trying to write a power shell script to get all the details of the azure virtual machine it show some error can any one have idea about how to write a script to get the details. i am able to get the vm details Get-AzureRmVM -ResourceGroupName "RG" -Name "VM" -Status but i am not getting cpu usage for that i tried some table contents "WADPerformanceCountersTable" rule:- "\Processor(_Total)\% Processor Time" Maybe we can use this Azure PowerShell command Get-AzureRmMetric to get CPU usage. We can use

View Fault and Update Domains of virtual machine in Azure through Python Script

好久不见. 提交于 2019-12-02 07:16:51
Is there any way i can get the update domain and fault domain of the particular vm through python script. I don't want to use powershell commands. << In Power Shell we can do this >> http://windowsitpro.com/azure/view-fault-and-update-domains-azure-resource-manager << /Power Shell >> I am looking for azure python cli. which can do this task. Maybe you could use the following command az vm show -g yourgroup -n vmname --expand instanceView You could get your VM's platformFaultDomain and platformUpdateDomain 来源: https://stackoverflow.com/questions/41606832/view-fault-and-update-domains-of-virtual

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

核能气质少年 提交于 2019-12-02 05:04:23
问题 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

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

泄露秘密 提交于 2019-12-02 04:44:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . i have created new VM in Azure with Managed disk. now i want to convert it to Unmanaged disk. Is it Possible? 回答1: 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

Azure Extension script for linux

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 04:17:22
问题 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