Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

New-AzureRMVirtualMachine Requires Bettter Error Handling

Aperta
#22 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
azure, powershell

Direzione di ricerca

Iniziare dalla riga 235 di IntelliTect.AzureRm.psm1, dove viene invocato New-AzureRmVM, e riprodurre il comando con l'immagine Windows MicrosoftVisualStudio non disponibile mostrata nel report. Tracciare la gestione dell'errore e verificare che VM Created successfully non venga segnalato dopo che New-AzureRmVM restituisce un errore.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PowerShell
Stelle
11
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntelliTect/PSToolbox

Tutte le issue di IntelliTect/PSToolbox

Issue simili

Altre issue su Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.