-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set-AzureWebsite doesn't update ConnectionStrings #340
Comments
I will investigate Thanks From: Rick Raineymailto:notifications@github.com $website = Get-AzureWebsite $websiteName -slot $websiteSlot $result = $connectionStrings.Remove(($connectionStrings | Where-Object {$_.Name -eq $connectionStringName})) Set-AzureWebsite $websiteName -slot $websiteSlot -ConnectionStrings $connectionStrings Reference: Reply to this email directly or view it on GitHub: |
Any updates on whether this is definitely a bug? |
Sorry, I have been OOF and didn't get a chance to debug this. Thanks From: Martin Costellomailto:notifications@github.com Any updates on whether this is definitely a bug? Reply to this email directly or view it on GitHub: |
Any updates on this? |
Any progress on this issue? |
Can we please have an update on this? |
$connStrings = @{ AzureWebJobsDashboard = @{ Type = "Custom"; Value = $AzureWebJobsDashboard }; Set-AzureRMWebApp -Name $webServiceName -ResourceGroupName $rgName -ConnectionStrings $connStrings |
@twitchax: "Azure PowerShell continues to maintain RDFE support on a legacy basis: new functionality and bug fixes are addressed sparingly. This issue does not meet the current threshold for consideration." |
Just for the sake of people who reach this thread via Google/Bing .. looks like nallurisrinu's suggestion is working out here... $connStrings = @{ AzureWebJobsDashboard = @{ Type = "Custom"; Value = $AzureWebJobsDashboard }; |
Also for people searching for this error :
The Type value in the HashTable must be the string, explicitly, with .ToString().
|
@umaknow-jeanluc thanks a lot for your brilliant comment, you saved my day \o/ |
$website = Get-AzureWebsite $websiteName -slot $websiteSlot
$connectionStrings = $website.ConnectionStrings
$result = $connectionStrings.Remove(($connectionStrings | Where-Object {$_.Name -eq $connectionStringName}))
Set-AzureWebsite $websiteName -slot $websiteSlot -ConnectionStrings $connectionStrings
Reference:
http://stackoverflow.com/questions/29648327/cannot-delete-all-azure-website-connection-strings
The text was updated successfully, but these errors were encountered: