SOLVED

Retriving diagnostic data in Azure

%3CLINGO-SUB%20id%3D%22lingo-sub-153629%22%20slang%3D%22en-US%22%3ERetriving%20diagnostic%20data%20in%20Azure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-153629%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20studying%20for%20the%2070-533%20and%20I'm%20currently%20in%20the%20objective%20where%20you%20have%20to%20know%20how%20to%20retrieve%20diagnostic%20data.%20I%20am%20following%20along%20with%20a%20video%20and%20I've%20opened%20PowerShell%2C%20logged%20into%20Azure%2C%20and%20the%20instructor%20is%20using%20the%20command%20%22Save-AzureWebsiteLogs%22%20When%20I%20go%20to%20input%20it%2C%20I%20get%20an%20error%20telling%20me%20to%20set%20my%20description%20as%20default%20and%20to%20use%20%22Select-AzureSubscription%20-Default%20%22subscription%20name%22.%20Ok%2C%20so%20I%20input%20that%2C%20and%20get%20another%20error%20telling%20me%20the%20string%20for%20%22DefaultProfile%22%20is%20incorrectly%20stated.%20So%2C%20I%20instead%20did%20%22Select-AzureRMSubscription%20-subscriptionname%20%22pay-as-you-go%22%20and%20it%20worked%2C%20but%20the%20command%2C%20%22Save-AzureWebsiteLogs%22%20is%20input%2C%20it%20still%20gives%20me%20the%20same%20error.%20I've%20found%20that%20this%20command%20was%20used%20with%20ASM%2C%20which%20is%20associated%20with%20classic%20shell%2C%20which%20I%20can%20no%20longer%20access.%20So%20my%20question%20is%2C%20there%20a%20way%20currently%20in%20AzureRM%20to%20download%20diagnostic%20logs%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-153629%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Services%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Friday%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Resource%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENetworking%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-153639%22%20slang%3D%22en-US%22%3ERe%3A%20Retriving%20diagnostic%20data%20in%20Azure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-153639%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20also%20figured%20out%20I%20have%20to%20use%20Add-AzureAccount.%20Oops.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-153634%22%20slang%3D%22en-US%22%3ERe%3A%20Retriving%20diagnostic%20data%20in%20Azure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-153634%22%20slang%3D%22en-US%22%3E%3CP%3ENevermind.%20I%20figured%20out%20that%20I'm%20just%20going%20to%20have%20to%20use%20the%20FTP%20server%20or%20Kudu%20to%20retrieve%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

I'm studying for the 70-533 and I'm currently in the objective where you have to know how to retrieve diagnostic data. I am following along with a video and I've opened PowerShell, logged into Azure, and the instructor is using the command "Save-AzureWebsiteLogs" When I go to input it, I get an error telling me to set my description as default and to use "Select-AzureSubscription -Default "subscription name". Ok, so I input that, and get another error telling me the string for "DefaultProfile" is incorrectly stated. So, I instead did "Select-AzureRMSubscription -subscriptionname "pay-as-you-go" and it worked, but the command, "Save-AzureWebsiteLogs" is input, it still gives me the same error. I've found that this command was used with ASM, which is associated with classic shell, which I can no longer access. So my question is, there a way currently in AzureRM to download diagnostic logs?

2 Replies
Highlighted
Best Response confirmed by Susan Verdin (New Contributor)
Solution

Nevermind. I figured out that I'm just going to have to use the FTP server or Kudu to retrieve them.

Highlighted

I've also figured out I have to use Add-AzureAccount. Oops.