
Set-VBRAzureBlobAccount
Short Description
Modifies Azure Blob credentials records.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Set-VBRAzureBlobAccount -Account <VBRAzureBlobAccount> [-Name <string>] [-SharedKey <string>] [-Description<string>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies credentials records for Azure Blob storage.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Account | Specifies Azure Blob credentials records that you want to modify. Accepts the VBRAzureBlobAccount type. | True | Named | True (ByValue) |
|
Name | Specifies the Azure Blob login name. The cmdlet will add this login name to Azure Blob credentials records. | False | Named | False |
|
SharedKey | Specifies the shared key. The cmdlet will use this shared key to add Azure Blob credentials records. | False | Named | False |
|
Description | Specifies a description. The cmdlet will add this description to Azure Blob credentials records. | False | Named | False |
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Return Type
Example
This example shows how to modify an Azure Blob credentials record.
- Create a new secure password.
- Run the Read-Host cmdlet. Specify the message that the console will display as a prompt. Specify the AsSecureString parameter. Save the result to the $securepassword variable.
- Enter the password.
- Run Get-VBRAzureBlobAccount to get the Azure Blob credentials record. Save the result to the $account variable.
- Run Set-VBRAzureBlobAccount with the $account variable. Use the SharedKey parameter to set a new shared key.
$securepassword = Read-Host "Enter your password" -AsSecureString Enter your password: ********** $account = Get-VBRAzureBlobAccount -Name "Azure Blob" Set-VBRAzureBlobAccount -Account $account -SharedKey $securepassword |
Related Commands