Title: [SecretManagement] Register-SecretVault - Non terminating if vault exists · Issue #92 · PowerShell/Modules · GitHub
Open Graph Title: [SecretManagement] Register-SecretVault - Non terminating if vault exists · Issue #92 · PowerShell/Modules
X Title: [SecretManagement] Register-SecretVault - Non terminating if vault exists · Issue #92 · PowerShell/Modules
Description: Register-SecretVault - Non terminating if vault exists It could be useful if vault already existing was not a terminating error when calling Register-SecretVault. To achieve that currently, I have to include in my script (that use remove...
Open Graph Description: Register-SecretVault - Non terminating if vault exists It could be useful if vault already existing was not a terminating error when calling Register-SecretVault. To achieve that currently, I have ...
X Description: Register-SecretVault - Non terminating if vault exists It could be useful if vault already existing was not a terminating error when calling Register-SecretVault. To achieve that currently, I have ...
Opengraph URL: https://github.com/PowerShell/Modules/issues/92
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[SecretManagement] Register-SecretVault - Non terminating if vault exists","articleBody":"# Register-SecretVault - Non terminating if vault exists\r\n\r\nIt could be useful if vault already existing was not a terminating error when calling `Register-SecretVault`.\r\n\r\nTo achieve that currently, I have to include in my script (that use remove vault) the following. \r\n \r\n\r\n```Powershell\r\n$VaultParams = @{\r\n Name = 'CICD-Azkeyvault' \r\n ModuleName = 'Az.KeyVault' \r\n VaultParameters = @{ AZKVaultName = 'cicd-key01'; SubscriptionId = '111111-11111-3333-4444-1p030450' }\r\n}\r\n\r\n# Method 1\r\nif ($null -eq (Get-SecretVault -Name $VaultParams.Name)) {\r\n Register-SecretVault @VaultParams\r\n}\r\n\r\n#Or \r\ntry {Register-SecretVault @VaultParams}catch {}\r\n```\r\n\r\nWith the proposing non-terminating error change, simply ignoring the already exist non-terminating error using : \r\n\r\n```Powershell\r\nRegister-SecretVault @VaultParams -ErrorAction SilentlyContinue\r\n```\r\n\r\nwould be enough.","author":{"url":"https://github.com/itfranck","@type":"Person","name":"itfranck"},"datePublished":"2020-06-16T13:04:12Z","url":"https://github.com/PowerShell/Modules/issues/92"}
| 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:4dac16e6-8d78-5a4a-2f30-e1a2030371d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4BA:2DDD46:2C56F3:3AC20C:6AFD35D5 |
| html-safe-nonce | f73d1df6a972958f3ab8cbefcc408cac41f0cebb4a1515d396f60795811de383 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEJBOjJEREQ0NjoyQzU2RjM6M0FDMjBDOjZBRkQzNUQ1IiwidmlzaXRvcl9pZCI6IjYxOTA4MjIxNzM1NjU1OTcxNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 00834704cfd3fafd6f85ad8e71c57c566839898554cf128128b0f2e0291ae04a |
| hovercard-subject-tag | issue:639647967 |
| 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/92/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66dde34a2fa4ba26bea88af3563e64fbef8ef831d960cb0d3a71f64011e60b33/PowerShell/Modules/issues/92 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66dde34a2fa4ba26bea88af3563e64fbef8ef831d960cb0d3a71f64011e60b33/PowerShell/Modules/issues/92 |
| og:image:alt | Register-SecretVault - Non terminating if vault exists It could be useful if vault already existing was not a terminating error when calling Register-SecretVault. To achieve that currently, I have ... |
| 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 | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| 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 | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width