Get-MBSStorageAccount


Get MBS storage accounts assigned to the MBS user.

Get-MBSStorageAccount 
        [[-ID] <String>] 
        [[-Name] <String>] 
        [<CommonParameters>]

Description

Get MBS storage accounts assigned to the MBS user by storage account ID or Name.


Examples

Example 1: Get all storage account.

This example removes backup agent from the machine.

PS C\:> Get-MBSStorageAccount | ft

Example 2: Get storage account by ID.

This example gets storage account by ID.

PS C:\> Get-MBSStorageAccount -ID 92ad7b17-9e2a-41bb-b0e6-c11d60fe9c63 



DisplayName      : cblwesteurope
ID               : 92ad7b17-9e2a-41bb-b0e6-c11d60fe9c63
SGCloudTypeValue : Azure
Bucket           : backup
SGFolderPath     : MBS-bf3206df-ad73-4cdc-96ad-d4e3afa66ebc
IsRestoreOnly    : false
UseSSL           : true
BackupPath       : ALEXV-D
SGAccountID      : 05fc600b-337b-49a9-a187-9caae1bcdef9

Example 3: Force to reinstall the MBS backup agent.

This example gets storage account by Name.

PS C:\> Get-MBSStorageAccount -Name "Oracle Cloud"          

DisplayName      : Oracle Cloud
ID               : 303ac7c5-27ae-42e5-8e15-8031dd232a76
SGCloudTypeValue : S3Compatible
Bucket           : bucket-alexv
SGFolderPath     : MBS-bf3206df-ad73-4cdc-96ad-d4e3afa66ebc
IsRestoreOnly    : false
UseSSL           : true
BackupPath       : ALEXV-D
SGAccountID      : 263b854e-a160-4647-93b8-0ce8e1960577

Parameters

-ID

Storage account ID.

Type String
Required: false
Position 1
Default value: Null
Accept pipeline input: False
Accept wildcard characters: False

-Name

Storage account name

Type String
Required: false
Position 2
Default value: Null
Accept pipeline input: False
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.