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

Provisioning error trying to start/run my VM

$
0
0

Provisioning status: "Allocation failed. We do not have sufficient capacity for the requested VM size in this region. Read more about improving likelihood of allocation success at http://aka.ms/allocation-guidance. AllocationFailed"

Error code: "ProvisioningState/failed/AllocationFailed"

I'm trying to change the group, but it won't let me.

When the error comes out, it gives me an URL to try to solve the problem, but the URL redirects me to the Microsoft store.

Can anyone help me?


Message "please wait for the system Event Notification service" when trying to logoff from RDP session on Windows Server 2012 R2

$
0
0

Hi,

after days and weeks of no issues the message "please wait for the system Event Notification service"is displayed when logging off from an RDP session to Windows Server 2012 R2. Due to the issue it is not possible to logon/logoff anymore.

The Server is a VM running on Microsoft Azure but I think this is a native Windows issue. When searching the internet then is looks like the issue is there for yearsalready and different versions of Windows Server are affected. Some described workarounds like killing the SENS process are mentioned, but not a real fix of the root cause. It happened the second time now and the only way to solve was a hard reset of the Server.

Any hint to solve this issue is very much appreciated.

Regards

Scale set instance stuck in "Creating" when scaling up from zero instances

$
0
0
A few days ago I noticed that a scale set in our staging environment had stopped working. When looking in the instance view, the instance was stuck with status "Creating". Normally an instance is created and provisioned in a few minutes, but this one just kept staying in this state (I checked several hours later, with no change). Eventually I just deleted the whole scale set resource and recreated it again (using an ARM template with identical parameters/settings), and then it started working again.

But today the problem happened again. And I think I know what triggers it. It happens when the number of instances goes down to zero (ie no instances), and then goes up again. The first time this happened I had experimented with autoscaling it to zero instances during nights and weekends when the system isn't used. And today I manually lowered the instance count to zero and then increased it, in order to get a completely fresh instance (when I did a reimage it kept some old files). And the same thing happens to every instance, if I go from 1 instance to 2 when it is in this state.

Is this a known bug? Doesn't a virtual machine scale set support going from zero instances to non-zero? If not, then why is a value of zero even allowed? And is there a way to reset this scale set without deleting it and recreating it? It has an application gateway connected to it (same ARM template), and that one takes ages to delete and recreate.

The template deployment failed

$
0
0

I was going through this article:  https://docs.microsoft.com/en-us/learn/modules/create-serverless-logic-with-azure-functions/3-create-an-azure-functions-app-in-the-azure-portal?pivots=javascript.

Every time I click : "Create" (Step 12), I see next error:

The template deployment failed because of policy violation. Please see details for more information.

I've tried to logout, to remove all resources and wait until new sandbox appear. But it nothing helped.

Best Regards, Serhii Bilyk

Cannot delete VM eastus2

$
0
0

My eastus2 VM has been deleting for a few hours now, I've tried multiple Deletes at the Resource Group level and the VM level.  Error message says:

{"Error":{"Code":"ServerTimeout","Target":null,"Message":"The request to delete the resource '/subscriptions/6e65a4c1-18b6-40bd-b83b-cf80f1a0c45a/resourceGroups/XXX/providers/Microsoft.Compute/virtualMachines/k8s-master-16260370-0' timed out. Diagnostic information: timestamp '20191021T172359Z', subscription id '6e65a4c1-18b6-40bd-b83b-cf80f1a0c45a', tracking id 'c709ce12-1d4e-40fe-b160-3579f184f2b5', request correlation id '4a5b9b57-b903-48ce-9767-59952f86770e', Deployment location 'East US 2'.","Details":null,"AdditionalInfo":null}}


Disks attached to a VM Cannot get Detached or Deleted

$
0
0

Disks attached to a VM Cannot get Detached or Deleted.

I stopped the VM but still the Delete for a Disk continues to be disabled.

Is there anyway to do it.

Reset Firewall into VM

$
0
0

Hi!

Accidentally i reset the firewall into VM, and now i can't connect to my VM.

what can i do?


unable to connect to port 8080 on azure linux vm running ubuntu

$
0
0
I have configured the inbound rules and also have iptables rules set up for port 8080, I am still getting connection refused when I try to connect from a java client. Can someone help?

Reimaging vs Upgrade options

$
0
0

In looking at instnaces within a VMSS there are the Connect, Start, Restart, Deallocate, Reimage and Delete buttons in Azure. What is the difference in Reimaging a VM in a scale set versus Upgrading a VM in a scale set? Thanks!

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.

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



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?



cannot open port 443 on Azure VM

$
0
0

I created one Azure VM (centos linux), and I can logon by using SSH through public ip. However I cannot connect with port 443 from outside of Azure though public ip.

I opened port 443 by doing the folloing:

added inbound rule in Network security Group), and open port in the firewall-cmd.

What could be the reason??

Thanks,

Zhaoming

All VMs located in West Europe can not be started since 2018-10-23.

$
0
0

Hello all,

All VMs located in West Europe can not be started since 2018-10-23. Nothing has been changed between 2018-10-22 and 2018-10-23!

"statusMessage""{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceOperationFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"NetworkingInternalOperationError\",\"message\":\"An unexpected error occured while processing the network profile of the VM. Please retry later.\"}]}}"

I figured out, that it's not possible to create a Virtual Network in West Europe. That is not a global issue, because in different subscription I'm able to create virtual networks in West Europe.

Can anybody help?

Thanks

Andreas


CSP migration, cannot move VM: Resource move is not supported for resources that have plan with different subscriptions

$
0
0

Hi,

I'm trying to move a resource group to a new subscription. But the validation failed with the following error:

ResourceMoveFailed
Message: Resource move is not supported for resources that have plan with different subscriptions. Resources are 'Microsoft.Compute/virtualMachines/ZBFormulieren' and tracking id is 'bda43449-90a4-4bcc-960a-27dfa67bf8b3'.

I have checked the VM, but the subscription is the same as all the other VM's and apps. Any suggestion?

create desktop tenant for Windows

$
0
0

I'm following the white paper to setup Windows virtual desktop.

Every step goes fine until now.  This step blocks me in going further with the setup.

Add-RdsAccount -DeploymentUrl"https://rdbroker.wvd.microsoft.com"

If i use the global administrator account, i get the following error :

AADSTS50020: User account 'eric@mycompany.com' from identity provider 'live.com' does not exist in tenant 'MS Azure Cloud' and cannot access the application 'fa4345a4-a730-4230-84a8-7d9651b86739'(Windows Virtual Desktop Client) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.

In reading different articles on the net, i found this to be an issue with many users. One guy said you need to make another external user als global administrator and run the command again, so i did.

But then i get this error :

Add-RdsAccount : Er zijn één of meer fouten opgetreden.
At line:1 char:1
+ Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-RdsAccount], AggregateException
    + FullyQualifiedErrorId : System.AggregateException,Microsoft.RDInfra.RDPowershell.Context.AddRdsAccount

So now i'm stuck at this point.

Any help would be welcome.

Installation of Antimalware for Azure on Win2k8 R2 VM failed - Error code 52

$
0
0

Hi,

Installation of Antimalware for Azure on Win2k8 R2 VM (I know, don't ask) fails on serveral VM's with error code 52, not documented. Anyone seen this before? No clue with procmon either with filtering on mpclient.dll

Contents logfile:

[10/07/2019 03:00:59.08] Executing: C:\Packages\Plugins\Microsoft.Azure.Security.IaaSAntimalware\1.5.5.9\AntimalwareConfig.exe -enable

[10/07/2019 03:01:48.78] Execution Complete.
######
Execution Output:
Microsoft Antimalware Configuration Utility
Version 1.5.5.9
Please refer this TSG: 
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/iaas-antimalware-windows
- Current UTC time: 7-10-2019 3:00:59
- Getting InvalidOperationException when trying to find is MSMPSvc running, we will move on to check if WinDefend is running 7-10-2019 3:01:32
- Trying to find is Defender installed... 7-10-2019 3:01:32
- Getting Configuration 7-10-2019 3:01:32
- Getting Configuration Schema Type 7-10-2019 3:01:32
- Configuration settings file found: C:\Packages\Plugins\Microsoft.Azure.Security.IaaSAntimalware\1.5.5.9\RuntimeSettings\0.settings 7-10-2019 3:01:32
- Getting json Configuration 7-10-2019 3:01:33
- Deserializing Json Cfg 7-10-2019 3:01:33
- Enabling antimalware 7-10-2019 3:01:33
- Checking Is Defender or Camp Installed 7-10-2019 3:01:33
- Trying to find is Defender installed... 7-10-2019 3:01:33
- Defender Installed, ServiceName WinDefend 7-10-2019 3:01:33
- Checking Is Service Running 7-10-2019 3:01:33
- Getting InvalidOperationException when trying to find is MSMPSvc running, we will move on to check if WinDefend is running 7-10-2019 3:01:33
- Service is not Running, start enabling steps 7-10-2019 3:01:33
- Initializing CampEngine 7-10-2019 3:01:33
- Creating Engine Configurator 7-10-2019 3:01:33
- Register Microsoft Update For Mep 7-10-2019 3:01:33
- Start the registration script for Microsoft Update 7-10-2019 3:01:33
- End the registration script for Microsoft Update 7-10-2019 3:01:33
- Registered to receive antimalware updates via Microsoft Update 7-10-2019 3:01:48
- Start Enable AntiMalware for Engine Configurator Api 7-10-2019 3:01:48
- Fail to EnableAntiMalware::System.DllNotFoundException: Unable to load DLL 'MpClient.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Microsoft.Azure.Security.MpClient.MpManagerOpen(UInt32 dwReserved, IntPtr& pMpHandle)
   at Microsoft.Azure.Security.EngineConfiguratorApi.EnableAntiMalware(String ServiceName) 7-10-2019 3:01:48
* ERROR: Enable step getting DllNotFoundException: System.DllNotFoundException: Unable to load DLL 'MpClient.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Microsoft.Azure.Security.MpClient.MpManagerOpen(UInt32 dwReserved, IntPtr& pMpHandle)
   at Microsoft.Azure.Security.EngineConfiguratorApi.EnableAntiMalware(String ServiceName)
   at Microsoft.Azure.Security.CampEngine.Enable(AntimalwareConfig newConfig)


Execution Error:

######
Command C:\Packages\Plugins\Microsoft.Azure.Security.IaaSAntimalware\1.5.5.9\AntimalwareConfig.exe of Microsoft.Azure.Security.IaaSAntimalware has exited with Exit code: 52

Pros and cons of creating Multiple Subscriptions VS a Single Subscription

$
0
0
What are the advantages and disadvantage of creating Multiple Subscriptions Vs a Single Subscription under on Azure Account?  

Unable to access Oracle database in Azure Cloud VM from Local machine/Toad software

$
0
0

Hello Everyone,

How do I access Oracle Database hosted in Azure VM as it is unable to access from local machine via Toad software..

Appreciate your support...!

Regards,Rakesh


Viewing all 12545 articles
Browse latest View live