< Back

Get-AzureKeyVaultManagedStorageAccount

Tue Jan 29, 2019 9:50 pm

NAME Get-AzureKeyVaultManagedStorageAccount



SYNOPSIS

Gets Key Vault managed Azure Storage Accounts.





SYNTAX

Get-AzureKeyVaultManagedStorageAccount [-VaultName] <String> [-AccountName] <String> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]





DESCRIPTION

Gets a Key Vault managed Azure Storage Account if the name of the account is specified and the account keys are managed by the specified vault. If

the account name is not specified, then all the accounts whose keys are managed by specified vault are listed.





PARAMETERS

-AccountName <String>

Key Vault managed storage account name. Cmdlet constructs the FQDN of a managed storage account name from vault name, currently selected

environment and manged storage account name.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-VaultName <String>

Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.ManagedStorageAccount, Microsoft.Azure.Commands.KeyVault,

Version=2.5.0.0, Culture=neutral, PublicKeyToken=null]]

Microsoft.Azure.Commands.KeyVault.Models.ManagedStorageAccount





NOTES









Example 1: List all Key Vault managed Storage Accounts



PS C:\\> Get-AzureKeyVaultManagedStorageAccount -VaultName 'myvault'



Lists all the accounts whose keys are managed by vault 'myvault'





Example 2: Get a Key Vault managed Storage Account



PS C:\\> Get-AzureKeyVaultManagedStorageAccount -VaultName 'myvault' -Name 'mystorageaccount'



Gets the details of Key Vault managed Storage Account of 'mystorageaccount' if its keys are managed by vault 'myvault'







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ageaccount

https://msdn.microsoft.com/en-us/library/dn868052.aspx https://msdn.microsoft.com/en-us/library/dn868052.aspx