Kulasangar
Kulasangar

Reputation: 9464

Import-AzurePublishSettingsFile : A positional parameter cannot be found that accepts argument 'path'

I'm newbie in using the Azure PowerShell, and I'm trying to import the AzurePublishSettingsFile using this command:

Import-AzurePublishSettingsFile C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings

I'm following these steps to configure the power shell where i found this error when i tried to execute the above command:

Import-AzurePublishSettingsFile : A positional parameter cannot be found that accepts argument 'G\Downloads\Visual'.

The whole error has been pasted here. What could be the issue? Any help would be appreciated.

Upvotes: 1

Views: 492

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136386

Please put the path to your publish settings file in double quotes.

Import-AzurePublishSettingsFile "C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings"

Because you have a space in the path, PowerShell Cmdlet is considering the path as two parameters C:\Users\Kulasangar and G\Downloads\<SubscriptionName>-credentials.publishsettings and hence the error.

Upvotes: 2

Related Questions