You can create a ZIP package that contains your PowerShell script and dependency modules for use in extensibility actions.
There are two methods of building the script for your extensibility actions:
- Writing your script directly in the extensibility action editor in Cloud Assembly.
- Creating your script on your local environment and adding it, with any relevant dependencies, to a ZIP package.
Furthermore, you can use a ZIP package in scenarios where modules associated with dependencies in your action script cannot be resolved by the Cloud Assembly service, such as when your environment lacks Internet access.
You can also use a ZIP package to create extensibility actions that contain multiple PowerShell script files. Using multiple script files can be useful for organizing the structure of your extensibility action code.
Prerequisites
Verify that you are familiar with PowerShell and PowerCLI. You can find a Docker image with PowerShell Core, PowerCLI 10, PowerNSX, and several community modules and script examples at Docker Hub .
Procedure
What to do next
Use the ZIP package to create an extensibility action script. See How do I create extensibility actions.