Notifications
Announcements
No record found.
Hello! i'm familiar with Angular and want to customise eventManagment app that hosts on my customer dynamics365. But have an issues and misunderstanding about process of deployment.I have read this doc https://docs.microsoft.com/en-us/dynamics365/marketing/developer/portal-hosted#automatic-deployment and tried to setup Powershell on my Mac os. But it doesnt work. Seems it will work only on Windows, but i have no opportunity to setup Windows or take Windows PC.I have searched for an information about a manual deployment, but it's unclear. https://docs.microsoft.com/en-us/dynamics365/marketing/developer/manually-overwriting-sample-website I have no ability to use "Configuration tool".Also, I dont want to manually upload each file in "Web files". Is it possible to upload an archive of Angular build or found a comfortable way to update at least the main files of Angular build.I hope my issue is clear and will be grateful for help.Thanks
Are you saying that you tried PowerShell pkg but didn't succeed?
To make things easier, I suggest you install OS X VirtualBox and run the script in Windows VM.
Yes, i tried DeployToDynamics365Instance.ps1, but it doesnt work
Is it possible to do this without Virtual Box's installation?
Hi Partner,
Firstly, I would suggest running a simple script to make sure PowerShell has been configured well on your Mac.
Secondly, please check what the errors are given when executing DeployToDynamics365Instance.ps1. From my using experience, even though in Windows, I still took some extra steps to get the deployment script to finally work.
See the last answer of following thread:
https://community.dynamics.com/365/marketing/f/dynamics-365-for-marketing-forum/396613/how-can-i-insert-the-copywriting-privacy-statement-in-the-event-registration
In addition, you could also refer to tutorial from Aileen Gusni and try InteractiveMode in the ps1 file.
https://community.dynamics.com/crm/b/misscrm360exploration/posts/tutorial-customize-and-deploy-dynamics-365-marketing-event-management-or-other-portal
Version of PowerShell may also has impact on the script.
https://github.com/MicrosoftDocs/dynamics-365-customer-engagement/issues/1697
Regards,
Clofly
I see a lot of errors, for example:
I have tried to run "Install-Module Microsoft.Xrm.Data.PowerShell -Scope CurrentUser", but I'm facing this:
Have you tried lower version(5.1) of PowerShell? (See the GitHub issue I posted.)
Yeah, i saw this issue on github, but as I figured out there are only PowerShell versions starting from 6.0. Isnt it?
You are right, it seems that PowerShell support for Mac starts from 6.0, and the user who opened the issue didn't mention that the script was running successfully in Mac and he just said that the script was working on 5.1.
In addition, according to following documentation:
https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.pssnapin?view=powershellsdk-1.1.0
System.Management.Automation.PSSnapIn is only available in PowerShell 5.1 packages.
In conclusion, I am afraid that you still have to run the script in a Windows VM which has 5.1 version of PowerShell.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 70 Super User 2025 Season 2
Gerardo RenterÃa Ga... 33 Most Valuable Professional
Daniyal Khaleel 32 Most Valuable Professional