Set-VBREntraIDTenant
Short Description
Modifies a Microsoft Entra ID tenant added to the backup infrastructure.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
SecretKey (Default)Set-VBREntraIDTenant -Tenant <VBREntraIDTenant> [-Description <String>] [-ApplicationId <String>]
[-SecretKey <SecureString>] [-CacheRepository <CBackupRepository>]
[-ProtectedScope <VBREntraIDTenantProtectedScope[]>] [<CommonParameters>]
-
CertificateSet-VBREntraIDTenant -Tenant <VBREntraIDTenant> [-Description <String>] [-ApplicationId <String>]
[-CertificatePath <String>] [-Password <SecureString>] [-CacheRepository <CBackupRepository>]
[-ProtectedScope <VBREntraIDTenantProtectedScope[]>] [<CommonParameters>]
Detailed Description
This cmdlet modifies an Entra ID tenant added to the backup infrastructure.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ApplicationId |
Specifies the ID of an application. The cmdlet will use this application to access Entra ID resources. |
|
False |
Named |
False |
|
CacheRepository |
Specifies a cache repository. The cmdlet will use this repository to store temporary cache files for log processing.
Accepts the |
|
False |
Named |
False |
|
CertificatePath |
For the certificate-based authentication. Specifies the path to the certificate. The cmdlet will use this certificate to authenticate to Entra ID. |
|
False |
Named |
False |
|
Description |
Specifies the description for the tenant that you want to add. |
|
False |
Named |
False |
|
Password |
For the certificate-based authentication. Specifies the password that the cmdlet will use to authenticate to Entra ID. |
|
False |
Named |
False |
|
ProtectedScope |
Specifies the tenant protection scope. Note: If you do not specify this parameter, the following tenant resources will be protected by default:
Accepts the |
False |
Named |
False |
|
|
SecretKey |
For the password-based authentication. Specifies an application secret. The cmdlet will use this secret to authenticate to Entra ID. |
|
False |
Named |
False |
|
Tenant |
Specifies the Entra ID tenant that you want to change.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBREntraIdTenant object that contains settings of the added tenant.
Examples
Modifying Entra ID Tenant
This example shows how to modify an Entra ID tenant and change the authentication method for the certificate-based authentication.
|
$tenant = Get-VBREntraIdTenant -AzureTenantId "xxxxx" $psswd = Read-Host -Prompt "Enter password" -AsSecureString $cacheRepo = Get-VBRBackupRepository -Name "Default Backup Repository" $scope = New-VBREntraIDTenantProtectedScope -ResourceType Users, Groups, AdminUnits, ConditionalAccessPolicies Set-VBREntraIdTenant -Tenant $tenant -ApplicationId $appId -CertificatePath "C:\Users\Administrator\Locked\certificate-3518.pfx" -Password $psswd -CacheRepository $cacheRepo -ProtectedScope $scope |
Perform the following steps:
- Run the
Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure. cmdlet. Specify theAzureTenantIdparameter value. Save the result to the$tenantvariable. - Create the
$psswdvariable. Use theRead-Hostcmdlet to get the password and convert it to a secure string. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$cacheRepovariable. - Run the
New-VBREntraIDTenantProtectedScopeSpecifies the tenant protection scope. cmdlet. Specify theResourceTypeparameter value. Save the result to the$scopevariable. - Run the
Set-VBREntraIdTenantcmdlet. Specify the following settings:- Set the
$tenantvariable as theTenantparameter value. - Set the
$appIdvariable as theApplicationIdparameter value. - Specify the
CertificatePathparameter value. - Set the
$psswdvariable as thePasswordparameter value. - Set the
$cacheRepovariable as theCacheRepositoryparameter value. - Set the
$scopevariable as theProtectedScopeparameter value.
- Set the
Related Commands
Get-VBREntraIdTenantReturns Microsoft Entra ID tenants added to the backup infrastructure.Get-VBRBackupRepositoryReturns a list of backup repositories.New-VBREntraIDTenantProtectedScopeSpecifies the tenant protection scope.