Get-AzKeyVaultSecret cmdlet'i bir anahtar kasasında gizli dizileri alır.
Bu cmdlet, bir anahtar kasasındaki belirli bir gizli diziyi veya tüm gizli dizileri alır.
Örnekler
Örnek 1: Anahtar kasasında tüm gizli dizilerin tüm geçerli sürümlerini alma
Get-AzKeyVaultSecret -VaultName 'Contoso'
Vault Name : contoso
Name : secret1
Version :
Id : https://contoso.vault.azure.net:443/secrets/secret1
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Vault Name : contoso
Name : secret2
Version :
Id : https://contoso.vault.azure.net:443/secrets/secret2
Enabled : True
Expires :
Not Before :
Created : 4/11/2018 11:45:06 PM
Updated : 4/11/2018 11:45:06 PM
Content Type :
Tags :
Bu komut, Contoso adlı anahtar kasasındaki tüm gizli dizilerin geçerli sürümlerini alır.
Örnek 2: Belirli bir gizli dizinin tüm sürümlerini alma
Vault Name : contoso
Name : secret1
Version : 7128133570f84a71b48d7d0550deb74c
Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Vault Name : contoso
Name : secret1
Version : 5d1a74ba2c454439886fb8509b6cab3c
Id : https://contoso.vault.azure.net:443/secrets/secret1/5d1a74ba2c454439886fb8509b6cab3c
Enabled : True
Expires :
Not Before :
Created : 4/5/2018 11:44:50 PM
Updated : 4/5/2018 11:44:50 PM
Content Type :
Tags :
Bu komut, contoso adlı anahtar kasasında secret1 adlı gizli dizinin tüm sürümlerini alır.
Örnek 3: Belirli bir gizli dizinin geçerli sürümünü alma
Vault Name : contoso
Name : secret1
Version : 7128133570f84a71b48d7d0550deb74c
Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Bu komut Contoso adlı anahtar kasasında secret1 adlı gizli dizinin geçerli sürümünü alır.
Örnek 4: Belirli bir gizli dizinin belirli bir sürümünü alma
Vault Name : contoso
Name : secret1
Version : 5d1a74ba2c454439886fb8509b6cab3c
Id : https://contoso.vault.azure.net:443/secrets/secret1/5d1a74ba2c454439886fb8509b6cab3c
Enabled : True
Expires :
Not Before :
Created : 4/5/2018 11:44:50 PM
Updated : 4/5/2018 11:44:50 PM
Content Type :
Tags :
Bu komut Contoso adlı anahtar kasasında secret1 adlı gizli dizinin belirli bir sürümünü alır.
Örnek 5: Uri kullanarak belirli bir gizli dizinin geçerli sürümünü alma
Vault Name : contoso
Name : secret1
Version : 7128133570f84a71b48d7d0550deb74c
Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Bu komut Contoso adlı anahtar kasasında secret1 adlı gizli dizinin geçerli sürümünü alır.
Örnek 6: Uri kullanarak belirli bir gizli dizinin belirli bir sürümünü alma
Vault Name : contoso
Name : secret1
Version : 7128133570f84a71b48d7d0550deb74c
Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Bu komut Contoso adlı anahtar kasasında secret1 adlı gizli dizinin belirli bir sürümünü alır.
Örnek 7: Uri kullanarak tüm gizli dizilerin geçerli sürümünü alma
Vault Name : contoso
Name : secret1
Version : 7128133570f84a71b48d7d0550deb74c
Id : https://contoso.vault.azure.net:443/secrets/secret1/7128133570f84a71b48d7d0550deb74c
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Vault Name : contoso
Name : secret2
Version : 7128133570f84a71b48d7d0550deb74c
Id : https://contoso.vault.azure.net:443/secrets/secret2/7128133570f84a71b48d7d0550deb74c
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Bu komut Contoso adlı anahtar kasasındaki tüm gizli dizilerin geçerli sürümünü alır.
Örnek 8: Belirli bir gizli dizinin geçerli sürümünün düz metin değerini alma
Vault Name : contoso
Name : secret1
Version : 689d23346e9c42a2a64f4e3d75094dcc
Id : https://contoso.vault.azure.net:443/secrets/secret1/689d23346e9c42a2a64f4e3d75094dcc
Deleted Date : 4/4/2018 8:51:58 PM
Scheduled Purge Date : 7/3/2018 8:51:58 PM
Enabled : True
Expires :
Not Before :
Created : 4/4/2018 8:51:03 PM
Updated : 4/4/2018 8:51:03 PM
Content Type :
Tags :
Bu komut, Contoso adlı anahtar kasasında daha önce silinmiş ancak temizlenmemiş 'secret1' gizli dizisini alır.
Bu komut, silme tarihi ve bu silinen gizli dizinin zamanlanmış temizleme tarihi gibi meta verileri döndürür.
Örnek 11: Filtrelemeyi kullanarak bir anahtar kasasındaki tüm gizli dizilerin tüm geçerli sürümlerini alma
Vault Name : contoso
Name : secret1
Version :
Id : https://contoso.vault.azure.net:443/secrets/secret1
Enabled : True
Expires : 4/6/2018 3:59:43 PM
Not Before :
Created : 4/5/2018 11:46:28 PM
Updated : 4/6/2018 11:30:17 PM
Content Type :
Tags :
Vault Name : contoso
Name : secret2
Version :
Id : https://contoso.vault.azure.net:443/secrets/secret2
Enabled : True
Expires :
Not Before :
Created : 4/11/2018 11:45:06 PM
Updated : 4/11/2018 11:45:06 PM
Content Type :
Tags :
Bu komut Contoso adlı anahtar kasasındaki "gizli dizi" ile başlayan tüm gizli dizilerin geçerli sürümlerini alır.
Örnek 12: Microsoft.PowerShell.SecretManagement modülünde komut Get-Secret ile Azure Key Vault'ta gizli dizi alma
Bu örnek Azure Key Vault'ta adlı secureSecret bir gizli diziyi modülündeki test-kvkomutuyla Get-Secret adlandırırMicrosoft.PowerShell.SecretManagement.
Parametreler
-AsPlainText
Ayarlandığında, cmdlet güvenli dizedeki gizli diziyi şifresi çözülmüş düz metin dizesine çıkış olarak dönüştürür.
Bu cmdlet'in bir gizli dizinin tüm sürümlerini aldığını gösterir.
Bir gizli dizinin geçerli sürümü listedeki ilk sürümdür.
Bu parametreyi belirtirseniz Name ve VaultName parametrelerini de belirtmeniz gerekir.
IncludeVersions parametresini belirtmezseniz, bu cmdlet belirtilen Ada sahip gizli dizinin geçerli sürümünü alır.
Gizli dizinin ait olduğu anahtar kasasının adını belirtir.
Bu cmdlet, bu parametrenin belirttiği ada ve geçerli ortamınıza göre bir anahtar kasasının tam etki alanı adını (FQDN) oluşturur.
Gizli dizi sürümünü belirtir.
Bu cmdlet, anahtar kasası adına, seçili durumdaki ortamınıza, gizli dizi adına ve gizli dizi sürümüne göre bir gizli dizinin FQDN'sini oluşturur.
Bu cmdlet yaygın parametreleri destekler: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction ve -WarningVariable. Daha fazla bilgi için bkz. about_CommonParameters.
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.