< Back

Add-AzureRmServiceFabricClientCertificate

Tue Jan 29, 2019 10:07 pm

NAME Add-AzureRmServiceFabricClientCertificate



SYNOPSIS

Add common name or thumbprint to the cluster for client authentication purposes.





SYNTAX

Add-AzureRmServiceFabricClientCertificate [-ResourceGroupName] <String> [-Name] <String> [-Admin] [-DefaultProfile <IAzureContextContainer>]

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



Add-AzureRmServiceFabricClientCertificate [-ResourceGroupName] <String> [-Name] <String> [-Admin] -CommonName <String> [-DefaultProfile

<IAzureContextContainer>] -IssuerThumbprint <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Add-AzureRmServiceFabricClientCertificate [-ResourceGroupName] <String> [-Name] <String> [-AdminClientThumbprint <String[]>] [-DefaultProfile

<IAzureContextContainer>] [-ReadonlyClientThumbprint <String[]>] [-Confirm] [-WhatIf] [<CommonParameters>]



Add-AzureRmServiceFabricClientCertificate [-ResourceGroupName] <String> [-Name] <String> -ClientCertificateCommonName

<PSClientCertificateCommonName[]> [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Use Add-AzureRmServiceFabricClientCertificate to add a common name and issuer thumbprint or certificate thumbprint to the cluster, so the client

can use it for authentication.





PARAMETERS

-Admin [<SwitchParameter>]

Client authentication type.



Required? false

Position? named

Default value False

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-AdminClientThumbprint <String[]>

Specify client certificate thumbprint that only has admin permission.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ClientCertificateCommonName <PSClientCertificateCommonName[]>

Specify client common name, issuer thumbprint, and authentication type.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-CommonName <String>

Specify client certificate common name.



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



-IssuerThumbprint <String>

Specify client certificate issuer thumbprint.



Required? true

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



-ReadonlyClientThumbprint <String[]>

Specify client certificate thumbprint that has read only permission.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

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



-Thumbprint <String>

Specify client certificate thumbprint.



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.Collections.Hashtable

System.String



System.Boolean





OUTPUTS

Microsoft.Azure.Commands.ServiceFabric.Models.PsCluster







NOTES









Example 1



PS c:> Add-AzureRmServiceFabricClientCertificate -ResourceGroupName 'Group1' -Name 'Contoso01SFCluster' -Thumbprint

5F3660C715EBBDA31DB1FFDCF508302348DE8E7A -Admin



This command will add the certificate with thumbprint '5F3660C715EBBDA31DB1FFDCF508302348DE8E7A' to the cluster, so the client can use the

certificate as admin to communicate with the cluster.





Example 2



PS c:> Add-AzureRmServiceFabricClientCertificate -ResourceGroupName 'Group2' -Name 'Contoso02SFCluster' -CommonName 'Contoso.com'

-IssuerThumbprint 5F3660C715EBBDA31DB1FFDCF508302348DE8E7A



This command will add a read only client certificate that's common name is 'Contoso.com' and issuer thumbprint is

'5F3660C715EBBDA31DB1FFDCF508302348DE8E7A' to the cluster.







RELATED LINKS

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

Remove-AzureRmServiceFabricClientCertificate