OfficeDev / microsoft-teams-emergency-operations-center

The Microsoft Teams Emergency Operations Center (TEOC) solution template leverages the power of the Microsoft 365 platform to centralize incident response, information sharing and field communications using powerful services like Microsoft Lists, SharePoint and more.
MIT License
85 stars 33 forks source link

Line 72- Invoke-PnPSiteTemplate -Path $FilePath -ErrorAction Stop -Warning … - File not found #172

Closed IFIT-BruceG closed 4 months ago

IFIT-BruceG commented 4 months ago

I've got the TEOC script to run all the way to line 72 where the command is "Invoke-PnPSiteTemplate -Path $FilePath -ErrorAction Stop -WarningAction SilentlyContinue". There it stops with a "File not found" error. I have confirmed that the file is right where the variable says it should be.

CODE SNIP IT FROM THE POWERSHELL RUN:

================================================================================== PnP.PowerShell module found Creating lists in XXXXX Site site <--(Site name hidden on purpose) File Path is C:\TEMP\Cybersecurity_Incident_Response_Plan\TEOC\TEOC_Installation\Deployment\provisioning <-- (I added this and the following line for troubleshooting clarity) Press ENTER to continue...: <--(Added by me) Invoke-PnPSiteTemplate: C:\Temp\Cybersecurity_Incident_Response_Plan\TEOC\TEOC_Installation\Deployment\provisioning\EOC-Provision.ps1:72 Line | 72 | Invoke-PnPSiteTemplate -Path $FilePath -ErrorAction Stop -Warning … | ~~~~~~~~~~~~~ | File not found PS C:\Temp\Cybersecurity_Incident_Response_Plan\TEOC\TEOC_Installation\Deployment\provisioning>

================================================================================== AS CAN BE SEEN FROM THE LAST LINE ABOVE, I AM IN THE CORRECT FOLDER WHEN I RUN THE "EOC-Provision.ps1" FILE IN THE FIRST PLACE. SHOULDN'T THE COMMAND "Invoke-PnPSiteTemplate: ..." BE LOOKING FOR THE "EOC-SiteTemplate.xml" FILE, AND NOT THE "EOC-Provision.ps1" FILE?

WHEN I RUN THE COMMAND "get-Module -Name PnP.PowerShell -ListAvailable", IT RETURNS THE FOLLOWING:

Directory: C:\Program Files\WindowsPowerShell\Modules ModuleType Version PreRelease Name PSEdition ExportedCommands Manifest 2.3.0 PnP.PowerShell Desk {Add-PnPAdaptiveScopeProperty, Add-PnPEntraIDGroupMember, Add-PnPEntraIDGroupOwner, Add-PnPEntraIDServiceP…

================================================================================== BELOW IS THE PROPERTIES OF THE "EOS-Provision.ps1" FILE SHOWING THE PATH TO THE FILE. THE "EOC-SiteTemplate.xml" FILE IS IN THE SAME FOLDER LOCATION.

image

HOPEFULLY THERE IS AN EASY FIX FOR THIS

v-asshrirao commented 4 months ago

@IFIT-BruceG, Thank you for reporting this. Can you please confirm if you have provided full path for xml as shown in the screenshot below and as mentioned in the wiki?

image

Invoke-PnPSiteTemplate is looking for the xml file. Can you please provide xml file path as mentioned and let us know if its working for you?

IFIT-BruceG commented 4 months ago

v-asshrirao,

The two phrases, “Illegal headspace error” and “Brain Fart” equally describe my inability to see and comprehend that simple bit of information as it was written in the Wiki. Thank you for taking the time to point this out to me, I am now able to progress to the next stage of setting up TEOC!

Thank you,

Bruce Garoutte Network Security Engineer Industrial Finishes and Systems, Inc.

@.*** 541-206-4393 – cell industrialfinishes.comhttps://industrialfinishes.com/

@.***

From: v-asshrirao @.> Sent: Monday, February 19, 2024 9:44 PM To: OfficeDev/microsoft-teams-emergency-operations-center @.> Cc: DA BruceG @.>; Mention @.> Subject: Re: [OfficeDev/microsoft-teams-emergency-operations-center] Line 72- Invoke-PnPSiteTemplate -Path $FilePath -ErrorAction Stop -Warning … - File not found (Issue #172)

@IFIT-BruceGhttps://github.com/IFIT-BruceG, Thank you for reporting this. Can you please confirm if you have provided full path for xml as shown in the screenshot below and as mentioned in the wiki? image.png (view on web)https://github.com/OfficeDev/microsoft-teams-emergency-operations-center/assets/141898119/362cf29a-06ca-438e-84f6-7585570554cc Invoke-PnPSiteTemplate is looking for the xml file. Can you please provide xml file path as mentioned and let us know if its working for you?

— Reply to this email directly, view it on GitHubhttps://github.com/OfficeDev/microsoft-teams-emergency-operations-center/issues/172#issuecomment-1953524253, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGI2D3A63SKEI5ZV7HXI7LDYUQZ3XAVCNFSM6AAAAABDQAYZ62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGUZDIMRVGM. You are receiving this because you were mentioned.Message ID: @.**@.>>

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

v-saikirang commented 4 months ago

Hi @IFIT-BruceG ,

Thanks for confirming. I am closing this ticket. Please open a new issue if you still face any issues.

Thanks.