Closed tjgalama closed 5 years ago
@tjgalama Thanks for raising this! Per the rest doc, the 2 parameter should be optional. I will try to fix Powershell soon.
I think the cause might be deeper than Az.Storage. I just tried to call the api directly (see stackoverflow). I got the impression that also the api requires these arguments (confirm?).
Per the rest doc, the 2 parameters are optional, so I have raised a PR to change them optional, and the PR is already merged. (I also tested PSH, enable Static WebSite without the 2 parameter success in server.) So from next release, PSH will be aligned with rest design. I will close the issue now. Feel free to let us know if you need any further assistant.
Description
the method
Enable-AzStorageStaticWebsite
has argumentsIndexDocument
andErrorDocument404Path
which are required. This is in contrast with the behavior within the azure portal when enabling a static website where these argument are optional.Steps to reproduce
Environment data
Module versions
Debug output
Error output