【发布时间】:2022-02-08 19:52:50
【问题描述】:
## 获取要从中检索容器的存储帐户
$StorageKey = Get-AzStorageAccountKey -ResourceGroupName $resourceGroupName -Name $storageAccName
出现错误: [错误] Import-AzContext:术语“Import-AzContext”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。在 run.ps1:第 3 行+ Import-AzContext+ ________________+ CategoryInfo : ObjectNotFound: (Import-AzContext:String) [] , CommandNotFoundException+FullyQualifiedErrorId : CommandNotFoundException 2022-02-08T10:26:01.327 [错误]:由于缺少一个或多个强制参数,无法处理命令:Name.at run.ps1:第 4+++ 行 CategoryInfo:InvalidArgument:(:) [Import-Module], ParameterBindingException+ FullyQualifiedErrorId : MissingMandatoryParameter,Microsoft.PowerShell.Commands.ImportModuleCommand,run.ps1 2022-02-08T10:26:01.468 [错误] 参数:术语“参数”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。在 run.ps1:第 7 行+ param+ _____+ CategoryInfo : ObjectNotFound: (param:String) [], CommandNotFoundException+ FullyQualifiedErrorId : CommandNotFoundException 2022-02-08T10:26:01.546 [错误] 执行函数时出现异常:Functions.HttpTrigger2。 Microsoft.Azure.WebJobs.Script:PowerShell 脚本错误。 System.Management.Automation:术语“Import-AzContext”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。 2022-02-08T10:26:01.561 [错误] 功能完成(失败,Id=2339b513-6a62-4687-b418-c31db73fd8c8,持续时间=408ms)
【问题讨论】:
-
请Format你的问题
标签: azure powershell