5/7/2023 0 Comments Wordservice app powershell![]() ![]() He is currently a Senior Technical Specialist and consultant at OGD ict-diensten, specialized in Exchange and Office 365. But long ago he started his Exchange career with Exchange 2003 and that version got him hooked. TECHNICAL REVIEWER DAVE STORK Dave Stork is an Exchange/Office Apps and Services MVP since 2014. He hopes you will enjoy reading it as much as he did writing it. As a third time author, Damian has poured his knowledge of the Security and Compliance Center as well as PowerShell into this book. Contributions to the community include helping on TechNet forums, creating PowerShell scripts that are located in the TechNet Gallery, writing detailed PowerShell / Office365 / Exchange blog articles (), tweets () and creating PowerShell videos on YouTube (). He has worked with Office 365 since BPOS and has experience with Azure AD, the Security and Compliance Center, and Exchange Online. He is currently based out of the Chicago area and started out managing Exchange 5.5 and Windows NT. Library of Congress Control Number: 2020934650 ISBN: 978-1-734 ePUB Edition - created digitally in the United States of America First Printing Technical Reviewers: Dave Stork & Jaap Wesselius Indexing: Indexmatic2 by Indiscripts CopyEditor: Deb Scoles Cover: Damian Scoles * McWay Falls, CaliforniaĪUTHOR DAMIAN SCOLES Damian Scoles has been a Microsoft MVP for the past seven years, specifically for Office Apps and Services and now Cloud and Datacenter Management. For permission requests, write to the publisher, addressed “Attention: Permissions Coordinator,” to Any company, event, person, domain name, email address, logo and any other detail provided in examples are all fictitious and no associate with these fictitious items be inferred. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. If I copy the command from the logfile verbatim - and run it on the cmdline, it runs with no issue.PUBLISHED BY Practical PowerShell Press Naperville, IL 60565 Copyright (C) 2020 by Damian Scoles All rights reserved. I would expect it to throw some sort of error or warning but nothing I cannot seem to get any output from the azcopy cmd, I just get a return success in the function app and I see the messages in the log "Running." and "Done!" like a second after, which tends to mean this does nothing. ![]() Write-Log -level ERROR -message "$_.Message" Write-Log -level ERROR -message "Error running script" ![]() & $azcopy copy $blogArg $fileArg -overwrite=ifsourcenewer -check-md5=FailIfDifferent -recursive Write-Log -level INFO -message "Running: $azcopy copy $blogArg $fileArg -overwrite=ifsourcenewer -check-md5=FailIfDifferent -recursive" $BlobURI = "'" -f $BlobURI, $SAS # tried this with and without SAS ![]() $CopyToDumpScript = "$baseFolder/azcopy/CopyToDump.ps1" I've modified the function app to handle copying files to a Linux VM, here is my new Powershell Function app: # Input bindings are passed in via param block. I was able to figure out how to run the Invoke-AzVMRunCommand to run a PowerShell script on a Windows VM to run azcopy.exe to download a file from blob storage to an azure windows VM, here is that question answered. ![]()
0 Comments
Leave a Reply. |