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

Featured pages

Services

Windows Azure has several services available for use when you first sign up with Azure. Some of the…

PowerShell

Azure PowerShell scripts are integral part of Microsoft Azure environment. It is designed to help A…

Errors

Azure Cloud Services are very information when it comes to producing error messages. Some of the co…

Pricing

Windows Azure has difference services and pricing normally calculated via Online Azure Pricing Calc…