{"id":360,"date":"2024-03-03T13:02:59","date_gmt":"2024-03-03T13:02:59","guid":{"rendered":"https:\/\/datadandies.nl\/?p=360"},"modified":"2024-03-03T13:11:46","modified_gmt":"2024-03-03T13:11:46","slug":"update-azure-key-vault-secrets-met-de-azure-cli","status":"publish","type":"post","link":"https:\/\/datadandies.nl\/index.php\/2024\/03\/03\/update-azure-key-vault-secrets-met-de-azure-cli\/","title":{"rendered":"Update Azure Key Vault Secrets met de Azure CLI"},"content":{"rendered":"\n<p>\ud835\udc06\ud835\udc1e\ud835\udc1b\ud835\udc2b\ud835\udc2e\ud835\udc22\ud835\udc24 \ud835\udc23\ud835\udc1e \ud835\udc00\ud835\udc33\ud835\udc2e\ud835\udc2b\ud835\udc1e \ud835\udc0a\ud835\udc1e\ud835\udc32 \ud835\udc15\ud835\udc1a\ud835\udc2e\ud835\udc25\ud835\udc2d \ud835\udc28\ud835\udc26 \ud835\udc20\ud835\udc1e\ud835\udc2f\ud835\udc28\ud835\udc1e\ud835\udc25\ud835\udc22\ud835\udc20\ud835\udc1e \ud835\udc22\ud835\udc27\ud835\udc1f\ud835\udc28\ud835\udc2b\ud835\udc26\ud835\udc1a\ud835\udc2d\ud835\udc22\ud835\udc1e \ud835\udc28\ud835\udc29 \ud835\udc2d\ud835\udc1e \ud835\udc2c\ud835\udc25\ud835\udc1a\ud835\udc1a\ud835\udc27?<\/p>\n\n\n\n<p>Wanneer je gevoelige informatie hebt en je wilt deze op een veilige plek opslaan, dan is Azure Key Vault een overweging waard. Je kunt gevoelige informatie in deze tool opslaan als zogeheten \u201csecrets\u201d. Hier heb ik het in een eerdere post al over gehad. Echter, wat als je een secret wilt updaten?<\/p>\n\n\n\n<p>Een eenvoudige wijze om dit te doen is door gebruik te maken van de Azure CLI (Command Line Interface). Wanneer je inlogt in de portal van Azure vind je rechts bovenin een knop \u201cCloud shell\u201d. Door op deze knop te drukken opent een terminal. Met behulp van deze terminal kun je met je Azure omgeving \u201cpraten\u201d en commando\u2019s geven. Een voorbeeld van een commando is het updaten van een secret in de Azure Key Vault. Dit kan door het volgende in te voeren in de CLI:<\/p>\n\n\n\n<p>\u27a1 \ud835\udc73\ud835\udc82\ud835\udc82\ud835\udc95 \ud835\udc86\ud835\udc86\ud835\udc93\ud835\udc94\ud835\udc95 \ud835\udc85\ud835\udc86 \ud835\udc94\ud835\udc96\ud835\udc83\ud835\udc94\ud835\udc84\ud835\udc93\ud835\udc8a\ud835\udc91\ud835\udc95\ud835\udc8a\ud835\udc90\ud835\udc8f\ud835\udc94 \ud835\udc9b\ud835\udc8a\ud835\udc86\ud835\udc8f \ud835\udc85\ud835\udc8a\ud835\udc86 \ud835\udc8a\ud835\udc8f \ud835\udc8b\ud835\udc86 \ud835\udc82\ud835\udc84\ud835\udc84\ud835\udc90\ud835\udc96\ud835\udc8f\ud835\udc95 \ud835\udc82\ud835\udc82\ud835\udc8f\ud835\udc98\ud835\udc86\ud835\udc9b\ud835\udc8a\ud835\udc88 \ud835\udc9b\ud835\udc8a\ud835\udc8b\ud835\udc8f<\/p>\n\n\n\n<p>az account show<\/p>\n\n\n\n<p>\u27a1 \ud835\udc7e\ud835\udc82\ud835\udc8f\ud835\udc8f\ud835\udc86\ud835\udc86\ud835\udc93 \ud835\udc8b\ud835\udc86 \ud835\udc8e\ud835\udc86\ud835\udc86\ud835\udc93\ud835\udc85\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc94\ud835\udc96\ud835\udc83\ud835\udc94\ud835\udc84\ud835\udc93\ud835\udc8a\ud835\udc91\ud835\udc95\ud835\udc8a\ud835\udc90\ud835\udc8f\ud835\udc94 \ud835\udc89\ud835\udc86\ud835\udc83\ud835\udc95, \ud835\udc8c\ud835\udc96\ud835\udc8f \ud835\udc8b\ud835\udc86 \ud835\udc8e\ud835\udc86\ud835\udc95 \ud835\udc83\ud835\udc86\ud835\udc89\ud835\udc96\ud835\udc8d\ud835\udc91 \ud835\udc97\ud835\udc82\ud835\udc8f \ud835\udc90\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc93\ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc82\ud835\udc8f\ud835\udc85\ud835\udc86 \ud835\udc93\ud835\udc86\ud835\udc88\ud835\udc86\ud835\udc8d \ud835\udc85\ud835\udc86 \ud835\udc93\ud835\udc86\ud835\udc8d\ud835\udc86\ud835\udc97\ud835\udc82\ud835\udc8f\ud835\udc95\ud835\udc86 \ud835\udc94\ud835\udc96\ud835\udc83\ud835\udc94\ud835\udc84\ud835\udc93\ud835\udc8a\ud835\udc91\ud835\udc95\ud835\udc8a\ud835\udc90\ud835\udc8f \ud835\udc94\ud835\udc86\ud835\udc8d\ud835\udc86\ud835\udc84\ud835\udc95\ud835\udc86\ud835\udc93\ud835\udc86\ud835\udc8f<\/p>\n\n\n\n<p>az account set &#8211;subscription JouwSpecifiekeSubscriptionNaam<\/p>\n\n\n\n<p>\u27a1 \ud835\udc6a\ud835\udc93\ud835\udc86\u00eb\ud835\udc86\ud835\udc93 \ud835\udc86\ud835\udc86\ud835\udc8f \ud835\udc8f\ud835\udc8a\ud835\udc86\ud835\udc96\ud835\udc98 \ud835\udc94\ud835\udc86\ud835\udc84\ud835\udc93\ud835\udc86\ud835\udc95, \ud835\udc90\ud835\udc87 \ud835\udc96\ud835\udc91\ud835\udc85\ud835\udc82\ud835\udc95\ud835\udc86 \ud835\udc86\ud835\udc86\ud835\udc8f \ud835\udc83\ud835\udc86\ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc82\ud835\udc8f\ud835\udc85 \ud835\udc94\ud835\udc86\ud835\udc84\ud835\udc93\ud835\udc86\ud835\udc95 \ud835\udc8e\ud835\udc86\ud835\udc95 \ud835\udc83\ud835\udc86\ud835\udc89\ud835\udc96\ud835\udc8d\ud835\udc91 \ud835\udc97\ud835\udc82\ud835\udc8f \ud835\udc85\ud835\udc86 \ud835\udc90\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc93\ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc82\ud835\udc8f\ud835\udc85\ud835\udc86 \ud835\udc93\ud835\udc86\ud835\udc88\ud835\udc86\ud835\udc8d<\/p>\n\n\n\n<p>az keyvault secret set &#8211;name JouwSecretNaam &#8211;vault-name JouwKeyVaultNaam &#8211;value &#8220;EenHeelGeheimEnMysterieusSecret&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud835\udc06\ud835\udc1e\ud835\udc1b\ud835\udc2b\ud835\udc2e\ud835\udc22\ud835\udc24 \ud835\udc23\ud835\udc1e \ud835\udc00\ud835\udc33\ud835\udc2e\ud835\udc2b\ud835\udc1e \ud835\udc0a\ud835\udc1e\ud835\udc32 \ud835\udc15\ud835\udc1a\ud835\udc2e\ud835\udc25\ud835\udc2d \ud835\udc28\ud835\udc26 \ud835\udc20\ud835\udc1e\ud835\udc2f\ud835\udc28\ud835\udc1e\ud835\udc25\ud835\udc22\ud835\udc20\ud835\udc1e \ud835\udc22\ud835\udc27\ud835\udc1f\ud835\udc28\ud835\udc2b\ud835\udc26\ud835\udc1a\ud835\udc2d\ud835\udc22\ud835\udc1e \ud835\udc28\ud835\udc29 \ud835\udc2d\ud835\udc1e \ud835\udc2c\ud835\udc25\ud835\udc1a\ud835\udc1a\ud835\udc27? Wanneer je gevoelige informatie hebt en je wilt deze op een veilige plek opslaan, dan is Azure Key Vault een overweging waard. Je kunt gevoelige informatie in deze tool opslaan als zogeheten \u201csecrets\u201d. Hier heb ik het in een eerdere post al over gehad.&hellip;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/datadandies.nl\/index.php\/2024\/03\/03\/update-azure-key-vault-secrets-met-de-azure-cli\/\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[34,33,36,15],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-blog","tag-azure","tag-azurefunctions","tag-azurekeyvault","tag-cybersecurity"],"_links":{"self":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/comments?post=360"}],"version-history":[{"count":2,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":362,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/360\/revisions\/362"}],"wp:attachment":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/categories?post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/tags?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}