Add-RedgateMonitorCloudProviderCredential
Published 11 March 2026
Adds a cloud provider credential to the specified base monitor.
Syntax
Add-RedgateMonitorCloudProviderCredential [-Credential] <CloudCredentialTransferObject> [<CommonParameters>]
Description
The Add-RedgateMonitorCloudProviderCredential cmdlet adds a cloud provider credential (Azure Service Principal or AWS IAM) to a Redgate Monitor base monitor. Use New-RedgateMonitorAzureTenantCredential or New-RedgateMonitorAwsIamUserCredential to create the credential object, then pipe it to this cmdlet.
Parameters
-Credential
<CloudCredentialTransferObject>
The cloud credential definition, as returned by New-RedgateMonitorAzureTenantCredential or New-RedgateMonitorAwsIamUserCredential.
| Aliases | None |
| Required? | true |
| Position? | 1 |
| Default Value | None |
| Accept Pipeline Input | True (ByValue) |
| 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.
-
[CloudCredentialTransferObject] As returned by New-RedgateMonitorAzureTenantCredential or New-RedgateMonitorAwsIamUserCredential.
Examples
-------------------------- EXAMPLE 1 --------------------------
New-RedgateMonitorAzureTenantCredential -BaseMonitor $BaseMonitor -Name "myPrincipal" -TenantId "tenant-id" -ClientId "client-id" -ClientSecret "client-secret" | Add-RedgateMonitorCloudProviderCredential
This command adds an Azure Service Principal credential.
-------------------------- EXAMPLE 2 --------------------------
New-RedgateMonitorAwsIamUserCredential -BaseMonitor $BaseMonitor -Name "my-aws-credentials" -Region "eu-west-2" -AccessKeyId "AKIAIOSFODNN7EXAMPLE" -SecretAccessKey "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" | Add-RedgateMonitorCloudProviderCredential
This command adds an AWS IAM credential.