0

I have tried installing the Azure and AZ cmdlet via the command with AllowClobber and that successfully installed. I am running PowerShell as administrator and have connected my Azure account by signing in. However, when running the command "Get-AzurePublishSettingFile" the following error appears:

Get-AzurePublishSettingFile : The term 'Get-AzurePublishSettingFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was

included, verify that the path is correct and try again. At line:1 char:1

  • Get-AzurePublishSettingFile
  •   + CategoryInfo          : ObjectNotFound: (Get-AzurePublishSettingFile:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
Adam Jones
  • 35
  • 5

1 Answers1

1

Make sure you have installed the ASM PowerShell module Azure, and I notice you missed an s in your command, it should be Get-AzurePublishSettingsFile, not Get-AzurePublishSettingFile.

Reference - https://learn.microsoft.com/en-us/powershell/module/servicemanagement/azure.service/get-azurepublishsettingsfile?view=azuresmps-4.0.0

Joy Wang
  • 39,905
  • 3
  • 30
  • 54
  • Hi there. Thanks for the answer. I should have marked this as solved earlier haha as I realised I had forgotten the "s" like an idiot. I spent so long browsing the web lol. Anyway thanks a lot. This question here will hopefully be a good reference to anyone that doesn't realise it should he "settings" instead of "setting" – Adam Jones Apr 07 '21 at 09:30