New-RedgateMonitorAzureTenantCredential
Published 11 March 2026
Creates a new temporary object that holds information about an Azure tenant credential.
Syntax
New-RedgateMonitorAzureTenantCredential [-BaseMonitor] <BaseMonitor> [-Name] <string> [-TenantId] <string> [-ClientId] <string> [-ClientSecret] <string> [<CommonParameters>]
Description
The New-RedgateMonitorAzureTenantCredential cmdlet creates a new temporary object that holds information about an Azure Service Principal credential. The returned object needs to be passed to Add-RedgateMonitorCloudProviderCredential, as it does not add anything to Redgate Monitor on its own.
Parameters
-BaseMonitor
<BaseMonitor>
The base monitor to add the credential to.
| Aliases | None |
| Required? | true |
| Position? | 1 |
| Default Value | None |
| Accept Pipeline Input | False |
| Accept Wildcard Characters | false |
-Name
<String>
A display name for the credential.
| Aliases | None |
| Required? | true |
| Position? | 2 |
| Default Value | None |
| Accept Pipeline Input | False |
| Accept Wildcard Characters | false |
-TenantId
<String>
The Azure Active Directory Tenant Id.
| Aliases | None |
| Required? | true |
| Position? | 3 |
| Default Value | None |
| Accept Pipeline Input | False |
| Accept Wildcard Characters | false |
-ClientId
<String>
The Azure Application (Client) Id.
| Aliases | None |
| Required? | true |
| Position? | 4 |
| Default Value | None |
| Accept Pipeline Input | False |
| Accept Wildcard Characters | false |
-ClientSecret
<String>
The Azure Application Client Secret.
| Aliases | None |
| Required? | true |
| Position? | 5 |
| Default Value | None |
| Accept Pipeline Input | False |
| Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable, and -ProgressAction. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
None.
You cannot pipe input to this cmdlet.
Examples
-------------------------- EXAMPLE 1 --------------------------
New-RedgateMonitorAzureTenantCredential -BaseMonitor $BaseMonitor -Name "myPrincipal" -TenantId "tenant-id" -ClientId "client-id" -ClientSecret "client-secret" | Add-RedgateMonitorCloudProviderCredential
-------------------------- EXAMPLE 2 --------------------------
$credential = New-RedgateMonitorAzureTenantCredential -BaseMonitor $BaseMonitor -Name "myPrincipal" -TenantId "tenant-id" -ClientId "client-id" -ClientSecret "client-secret" $credential | Add-RedgateMonitorCloudProviderCredential