-
Notifications
You must be signed in to change notification settings - Fork 21
Publish-NewServiceFabricApplication or equivalent should be part of the SDK #135
Comments
The Scripts\Deploy-FabricApplication.ps1 is tied to you SF Application project in VS and part of the tooling, not the SDK/API. You could go ahead and change it to your applications need. It is also being used by VS to deploy locally. For any automation scenarios, I would recommend not relying on this script, but rather use the SDK provided functions or the CMDlets / APIs in the runtime. We don't consider the SDK provided functions to be APIs. |
which require quite some arguments getting which is many lines of boilerplate. I'd say providing analog to your call anyway, but SDK does not seem very friendly when it comes to publishing, imo the amount of boilerplate could be less |
I agree that it is clean using Publish-NewServiceFabricApplicaiton. We are having issues identifying how to pass a publish profile via the API? I'm not seeing any other powershell that allows you to pass the publish profile, just the Hashtable to override the values? https://docs.microsoft.com/en-us/powershell/servicefabric/vlatest/new-servicefabricapplication [-ApplicationParameter ] Am I missing something? |
@gperrego The API does not support Publish Profiles, but the scripts and functions you've discovered in the SDK does. You can use these scripts to see how it can be done. |
@mikkelhegn do you use the SDK cmdlets (Copy-, Register-,New-*) for upgrading existing SF apps? |
@alltej 2 of 3 :-)
Now it's either New- or Start-ServiceFabricApplicationUpgrade New- (Creates a new Application Instance of the specified type+version. Becomes a unique app instance in the cluster with the uri fabric:/MyAppInstance). |
Do any of you guys have a good walkthrough of automation of deployment of application outside of Visual Studio for windows containers. Since container applications do not contain any code and only configuration files. |
VS generated
Scripts\Deploy-FabricApplication.ps1
usesPublish-NewServiceFabricApplication
which is dynamically imported as:Such API should really be part of the SDK (
ServiceFabric
PowerShell module), right now to automate application deployment using PowerShell we have to manually import said function from said location.The text was updated successfully, but these errors were encountered: