Closed Willem-J-an closed 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.
Author: | Willem-J-an |
---|---|
Assignees: | - |
Labels: | `App Services`, `Service Attention`, `customer-reported`, `question` |
Milestone: | - |
Should be solved by #13866
Description
We update app settings by retrieving existing app settings, then adding new ones to the hashtable, and then run Set-AzWebApp(Slot). When doing this, the DOCKER_REGISTRY_SERVER_PASSWORD is removed from the hashtable, and therefore finally from the app settings, causing problems.
This happens because the cmdlet does not check if a new DOCKER_REGISTRY_SERVER_PASSWORD is provided, as it does with other docker parameters, this one is simply removed in all cases. (Row 242 see: https://github.com/Azure/azure-powershell/blob/75952e8149f64da6f579566573bdccddbbcfe79d/src/Websites/Websites/Cmdlets/WebApps/SetAzureWebApp.cs)
The app continues to run fine until it tries to pull the image again.
Steps to reproduce
Make sure the DOCKER_REGISTRY_SERVER_PASSWORD app setting is available on the app settings, then:
Environment data
Module versions
Debug output
Error output