A ProvisioningConfigurationSet was not found in the ConfigurationSet
Adding new Azure VM from PowerShell command via New-AzureVMConfig may cause and error message such as "A ProvisioningConfigurationSet was not found in the ConfigurationSet" This error is due to missing PowerShell Azure module called "Add-AzureProvisioningConfig". This module is used to set up user name and password for the provisioning Azure VM.
In order to get rid of this error, you need to provide Azure module with the following attributes Add-AzureProvisioningConfig -windows -adminusername “userName” -password “userPassword”
See detailed error message that you may run into with missing Add-AzureProvisioningConfig
New-AzureVM : BadRequest: A ProvisioningConfigurationSet was not found in the ConfigurationSet collection of the
virtual machine with name CTGDevTwo. When creating a virtual machine from an image, ProvisioningConfigurationSet must
be specified.
At line:1 char:470
+ New-AzureVMConfig -Name "VMName" -InstanceSize "Medium" -ImageName "VMName ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureVM], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.PersistentVMs.NewAzureVMCommand