New-AzureRMVirtualMachine Requires Bettter Error Handling
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- azure, powershell
- 领域
- cloud, infrastructure
调研方向
从 IntelliTect.AzureRm.psm1 第 235 行开始,该行调用了 New-AzureRmVM,并使用报告中显示的不可用 MicrosoftVisualStudio Windows 映像重现该命令。跟踪故障的处理方式,并验证 New-AzureRmVM 返回错误后不会报告 VM Created successfully。
由索引模型根据 Issue 内容生成。
描述
When executing the New-AzureRMVirtualMachine command and filling in all the information, the script executed, output an error, then reported Success:
`
...
Creating new storage account
Creating new virtual network
Creating security group and rule
Creating new public IP address WITHOUT domain name
Creating new network interface
Creating VM configuration
Creating the VM ... this will take some time ...
New-AzureRmVM : The platform image 'MicrosoftVisualStudio:Windows:10-Enterprise-N:latest' is not available. Verify that all fields in the storage profile are correct.
ErrorCode: ImageNotFound
ErrorMessage: The platform image 'MicrosoftVisualStudio:Windows:10-Enterprise-N:latest' is not available. Verify that all fields in the storage profile are correct.
StatusCode: 404
ReasonPhrase: Not Found
OperationID : 1a477195-2bab-406a-bcbe-2115eae7bfe6
At C:\Program Files\WindowsPowerShell\Modules\IntelliTect.AzureRm\1.3.3.0\IntelliTect.AzureRm.psm1:235 char:5
-
New-AzureRmVM -ResourceGroupName $Inputs.ResourceGroupName -Locat ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : CloseError: (:) [New-AzureRmVM], ComputeCloudException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.NewAzureVMCommand
VM Created successfully
`
The script needs to have better error handling.
- 主要语言
- PowerShell
- 星标
- 11
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IntelliTect/PSToolbox 的其他 Issue
-
chore: add .gitattributes -- no line-ending normalization, CRLF and mixed endings already committed未关闭
难度 2/5 半天 新手友好度 80/100
IntelliTect/PSToolbox#119 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
IntelliTect/PSToolbox#118 ·
-
难度 5/5 一周以上 新手友好度 25/100
IntelliTect/PSToolbox#117 · 1 条评论 ·
-
Migrate non-related deliverables to its own repo可能重新可做 @BenjaminMichaelis 于 1701 天前认领,目前没有进行中的 PR。 未关闭
IntelliTect/PSToolbox#113 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 42/100
IntelliTect/PSToolbox#112 ·
查看 IntelliTect/PSToolbox 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 78/100
TheOdinProject/curriculum#31433 ·
维护者通常 1 天内回复
-
bug needs triage
难度 1/5 1 小时以内 新手友好度 92/100
aws-deadline/deadline-cloud#1373 ·
维护者通常 3 天内回复
-
area: cli area: cloud bug difficulty:2 help wanted S3: minor
难度 2/5 1-3 小时 新手友好度 84/100
manaflow-ai/cmux#15691 · 3 条评论 ·
维护者通常 1 天内回复
-
@aws-cdk/aws-bedrock-alpha needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
Tools4everBV/HelloID-Conn-Prov-Target-Microsoft-Entra-ID-Exchange-Online#52 ·