GithubHelp home page GithubHelp logo

azure / azure-support-scripts Goto Github PK

View Code? Open in Web Editor NEW
45.0 1.2K 35.0 353 KB

Public repository for Azure Support scripts and artifacts

License: Other

Shell 1.83% PowerShell 85.45% Python 12.73%

azure-support-scripts's People

Contributors

axelgms avatar craiglandis avatar craigwiand avatar dibaskar avatar divargas-msft avatar microsoft-github-policy-service[bot] avatar nkuchta avatar sebdau avatar sedau avatar sujasd avatar timbasham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-support-scripts's Issues

"[Error] Unable to snapshot and copy the problem VM's OS disk." when running on CloudShell

We are getting the error below consistently when running the RecoveryScript on CloudShell. If we download and run manually, it works - Only CloudShell is affected.

//////////////////////////////////////////////////////////////////////////////

_[2019-07-01 14:21:27Z] [Success] Problem VM xyzw-1 OS disk VHD URI: https://xyzwstorageacc.blob.core.windows.net/xyzw/rescuefixedosxyzw-test.vhd
[2019-07-01 14:21:27Z] [Running] Getting the storage connection info for Storage xyzwstorageacc
[2019-07-01 14:21:28Z] [Success] Gathered the connection info for Storage xyzwstorageacc
[2019-07-01 14:21:30Z] [Running] Creating snapshot of OS disk for problem VM xyzw-1
[2019-07-01 14:21:30Z] [Success] Created snapshot of OS disk for problem VM xyzw-1
/usr/bin/sort: cannot read: System.Collections.Hashtable: No such file or directory
[2019-07-01 14:21:30Z] [Error] Snapshot copy failed.
[2019-07-01 14:21:30Z] [Error] Unable to snapshot and copy the problem VM's OS disk.
[2019-07-01 14:21:30Z] [Running] Posting Telemetry data to AppInsights
[2019-07-01 14:21:30Z] [Success] Request was successfully logged to AppInsights.

result : False
restoreScriptCommand :
rescueScriptCommand : ./New-AzureRMRescueVM.ps1 -ResourceGroupName xyzw -VmName xyzw-1
failureReason : [Error] Unable to snapshot and copy the problem VM's OS disk.
cleanupScript :
restoreOriginalStateScript :_

//////////////////////////////////////////////////////////////////////////////

Issue restoring disk

I'm testing this script (thanks for this by the way!)

I'm having an issue running the recovery script, it could not remove the data disk (I even made sure to stop the VM via Azure portal so it said "deallocated" and tried again.

[2018-08-14 13:18:58Z] [Running] Removing data disk from rescue VM rescueNatTest-SRV2016
[2018-08-14 13:18:58Z] [Error] Unable to remove data disk from rescue VM.
[2018-08-14 13:18:58Z] [Error] Unable to remove data disk from rescue VM. - System.Management.Automation.ParameterBindingValidationException
[2018-08-14 13:18:58Z] Exception Message: Cannot validate argument on parameter 'DataDiskNames'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try the command again.

Any ideas?

Thanks

the parameter isn't clear

While trying to execute "./New-AzureRMRescueVM.ps1 -ResourceGroupName -VmName ", it turns out the '-VmName ' is the the faulty VM instead of the 'new' rescue VM, it is kinda confusing if you are new to the script.

Idea: can we create a version of this script for nested virtualisation?

This script is very handy for Nested Virtualisation with a few amendments - firstly, always need to use Windows Server 2016, and a D or Ev3 series VM.

Next, is it possible to use a CSE or DSC at build time to install Hyper-V and all management tools and subfeatures?
That way, we are pretty much ready to start working within Hyper-V straight away after the script runs!

Thanks,
Adam

Directory structure in the md instructions needs update

Thanks for this awesome script! (azure-support-scripts/VMRecovery/ResourceManager/)

Couple of issues with the following instructions though
"Switch into the the folder by running:
cd c:\azure-support-scripts\RecoverVM\ResourceManager"

The directory should include additional subfolder:
"c:\azure-support-scripts\RecoverVM\ResourceManager\ResourceManager"
or
"c:\azure-support-scripts\RecoverVM\ResourceManager\Classic"

Otherwise you get an error when it can't find the file
Also a typo, there are 2 "the" in the instruction line :P

Pulling the wrong subscription ID when we have multiple subscriptions to script

[Error] Problem VM UbuntuServer not found in resource group TESTRG in subscription xxxxx-xxxx-xxxxxx-WRONGSUBID. Verify the vmName, resourceGroupName, and subscriptionId and run the script again.

In short, everytime I try to run the command ps script {New-AzureRMRescueVM.ps1} for repair vm as this article says, the scripts goes after wrong subscription ID.
I have set the **

az account set --subscription --------CorrectSubID

**
but, it comes back saying that the VM is not found in this RG in this subscription (WrongsubID).

here, take a look at the attached screen shot after setting the correct sub and running the script again, please help.

WrongSUbID

Submodule for azhpc-diagnostics

The HPC Platform team just published a repo with a support script tailored for use on HPC-sized VMs, and we have gotten requests to make it easy to find through this repo. Would it be alright to add it as a submodule here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.