Title: [SecretManagement] Set-Secret does not accept string value. · Issue #93 · PowerShell/Modules · GitHub
Open Graph Title: [SecretManagement] Set-Secret does not accept string value. · Issue #93 · PowerShell/Modules
X Title: [SecretManagement] Set-Secret does not accept string value. · Issue #93 · PowerShell/Modules
Description: Steps to reproduce Set-Secret -Vault MyAzVaultName -Name 'Staging-SomeSecreet' -Secret 'SomeSecret' Expected behavior Secret is set in the vault Actual behavior Set-Secret: Cannot bind parameter 'SecretValue'. Cannot convert the "SomeSec...
Open Graph Description: Steps to reproduce Set-Secret -Vault MyAzVaultName -Name 'Staging-SomeSecreet' -Secret 'SomeSecret' Expected behavior Secret is set in the vault Actual behavior Set-Secret: Cannot bind parameter 'S...
X Description: Steps to reproduce Set-Secret -Vault MyAzVaultName -Name 'Staging-SomeSecreet' -Secret 'SomeSecret' Expected behavior Secret is set in the vault Actual behavior Set-Secret: Cannot b...
Opengraph URL: https://github.com/PowerShell/Modules/issues/93
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[SecretManagement] Set-Secret does not accept string value.","articleBody":"# Steps to reproduce\r\n\r\n```powershell\r\nSet-Secret -Vault MyAzVaultName -Name 'Staging-SomeSecreet' -Secret 'SomeSecret'\r\n```\r\n\r\n# Expected behavior\r\n\r\nSecret is set in the vault\r\n```none\r\n\r\n```\r\n\r\n# Actual behavior\r\n\r\n```none\r\nSet-Secret: Cannot bind parameter 'SecretValue'. Cannot convert the \"SomeSecret\" value of type \"System.String\" to type \"System.Security.SecureString\".\r\n```\r\nString is part of the [Microsoft.PowerShell.SecretManagement.SecretType] enum types. \r\nThere is also a distrinct `-SecureStringSecret` parameter so I'd expect to be able to set my secret as a string by using the `-Secret` instead of having to to a ConvertTo-SecureString -AsPlainText -Force first to be able to set it. \r\n\r\n# Environment data\r\n\r\nModule version:\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nPSVersion 7.1.0-preview.3\r\nPSEdition Core\r\nGitCommitId 7.1.0-preview.3\r\nOS Microsoft Windows 10.0.18363\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/itfranck","@type":"Person","name":"itfranck"},"datePublished":"2020-06-16T14:56:14Z","url":"https://github.com/PowerShell/Modules/issues/93"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0ca58d73-4a7b-6adc-28a2-e262c58cbad2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E644:1861F0:B45C46:F82CBC:6AFD3CEB |
| html-safe-nonce | e16e577a5fc36f5985d298cdf06346d1eb28e34739bf4974e3f95bb107482290 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjQ0OjE4NjFGMDpCNDVDNDY6RjgyQ0JDOjZBRkQzQ0VCIiwidmlzaXRvcl9pZCI6IjIzNzQyNDM4NjEzMDA4NTM5OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 094fbf80e4bba03ac6c3bb96384c363a378be70852d00acbaf76c38ea13af539 |
| hovercard-subject-tag | issue:639735910 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/Modules/93/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2fafdaedcab12024696f95b56608d89bb3dca2081ece4e135363f69a7a01f681/PowerShell/Modules/issues/93 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2fafdaedcab12024696f95b56608d89bb3dca2081ece4e135363f69a7a01f681/PowerShell/Modules/issues/93 |
| og:image:alt | Steps to reproduce Set-Secret -Vault MyAzVaultName -Name 'Staging-SomeSecreet' -Secret 'SomeSecret' Expected behavior Secret is set in the vault Actual behavior Set-Secret: Cannot bind parameter 'S... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | itfranck |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/Modules git https://github.com/PowerShell/Modules.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 197814114 |
| octolytics-dimension-repository_nwo | PowerShell/Modules |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 197814114 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/Modules |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width