< Back

Add-AzureRmServiceFabricClusterCertificate

Tue Jan 29, 2019 10:07 pm

NAME Add-AzureRmServiceFabricClusterCertificate



SYNOPSIS

Add a secondary cluster certificate to the cluster.





SYNTAX

Add-AzureRmServiceFabricClusterCertificate [-ResourceGroupName] <String> [-Name] <String> -CertificateFile <String> [-CertificatePassword

<SecureString>] [-DefaultProfile <IAzureContextContainer>] [-KeyVaultName <String>] [-KeyVaultResouceGroupName <String>] [-Confirm] [-WhatIf]

[<CommonParameters>]



Add-AzureRmServiceFabricClusterCertificate [-ResourceGroupName] <String> [-Name] <String> [-CertificateOutputFolder <String>]

[-CertificatePassword <SecureString>] -CertificateSubjectName <String> [-DefaultProfile <IAzureContextContainer>] [-KeyVaultName <String>]

[-KeyVaultResouceGroupName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]



Add-AzureRmServiceFabricClusterCertificate [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]

-SecretIdentifier <String> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Use Add-AzureRmServiceFabricClusterCertificate to add a secondary cluster certificate, either from an existing Azure key vault or creating a new

Azure key vault using an existing certificate provided or from a new self-signed certificate created. It will override the secondary cluster if

there is any.





PARAMETERS

-CertificateFile <String>

The existing certificate file path.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-CertificateOutputFolder <String>

The folder of the new certificate to be created.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-CertificatePassword <SecureString>

The password of the certificate file.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-CertificateSubjectName <String>

The Dns name of the certificate to be created.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-KeyVaultName <String>

Azure key vault name.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-KeyVaultResouceGroupName <String>

Azure key vault resource group name.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Specify the name of the cluster.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SecretIdentifier <String>

The existing Azure key vault secret Url.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

Microsoft.Azure.Commands.ServiceFabric.Models.PsCluster







NOTES









Example 1



Add-AzureRmServiceFabricClusterCertificate -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster'

-SecretIdentifier 'https://contoso03vault.vault.azure.net/ ... ccc549524f'



This command will add a certificate in the existing Azure key vault as a secondary cluster certificate.





Example 2



PS c:\\> $pwd = ConvertTo-SecureString -String "123" -AsPlainText -Force

PS c:\\> add-AzureRmServiceFabricClusterCertificate -ResourceGroupName 'Group2' -Name 'Contoso02SFCluster' -CertificateSubjectName 'Contoso.com'

-CertificateOutputFolder 'c:\\test' -CertificatePassword $pwd



This command will create a self-signed certificate in the Azure key vault and upgrade the cluster to use it as a secondary cluster certificate.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ertificate

Remove-AzureRmServiceFabricClusterCertificate

New-AzureRmServiceFabricCluster

Add-AzureRmServiceFabricApplicationCertificate