OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
171 stars 504 forks source link

Adds workaround for cmdlet changes #1444

Closed twerthi closed 1 year ago

twerthi commented 1 year ago

Background

It was recently brought to my attention that MS released updates to the Az.App PowerShell module. A previously optional argument is now required and fails if it's not present.

Results

This PR places an workaround in place to successfully create an Azure Container App Environment

Before

Template would fail with

InvalidOperation: [ManagedEnvironmentInvalidRequest] : Invalid request body for environment 'development'. Must contain 'properties'.

After

Template now successfully creates an Azure Container App Environment.

Pre-requisites

Fixes issue that was reported via Disqus on the blog post for these templates.