Skip to main content
SnapCenter 4.9 cmdlets

Add-SmCredential

Contributors

Register the credential with SnapCenter Server.

Syntax

Add-SmCredential [-Name]  <String>  [-Type]  <SmAuthMode>  [-SubscriptionId]  <String>  [-ClientSecret]  <SecureString>  [-TenantId]  <String>  [-ClientId]  <String>  [-InstanceName]  <String>  [-Credential]  <PSCredential>  [-EnableSudoPrevileges]  <Boolean>  [-Force]  <>

Detailed Description

Register the credential with SnapCenter Server. The credentials can be for other plug-ins or for other NetApp cloud storage.

Parameters

Name Description Required? Pipeline Input Default Value

Name

Specifies the name of the Credential Account.

true

true (ByPropertyName)

Type

Specifies the authentication mode.

false

true (ByPropertyName)

SubscriptionId

Specifies the Azure NetApp subscription ID.

false

true (ByPropertyName)

ClientSecret

Specifies the Azure NetApp client secret.

false

true (ByPropertyName)

TenantId

Specifies the Azure NetApp tenant ID.

false

true (ByPropertyName)

ClientId

Specifies the Azure NetApp client ID.

false

true (ByPropertyName)

InstanceName

false

true (ByPropertyName)

Credential

true

true (ByPropertyName)

EnableSudoPrevileges

false

true (ByPropertyName)

Force

false

true (ByPropertyName)

Examples

Example 1: Create Credential

 Add-SmCredential -Name RunAs1 -Type Windows -Credential $cred

Example 2: Create Azure Credential

 Add-SmCredential -Name azure1 -Type AzureCredential -SubscriptionId 54967c34-6e2a-47fb-v43b-0f679710037d -ClientSecret d7c7656b-a07a-4es5-b19e-12376bdef493 -TenantId 6r21f23a-98b9-46fb-9d50-720ef604h328j -ClientId 984d66aa-0faf-jh34-8ca9-05lgs95fc92b

Note: Add-SmCredential with AzureCredential requires the following mandatory parameters SubscriptionId, ClientSecret, TenantId, and ClientId.

Example 2: Create AIX Credential

 Add-SmCredential -Name RunAs2 -CredentialType AIX -Credential $cred