Share via


ArmServiceBusModelFactory.ServiceBusAccessKeys Method

Definition

Initializes a new instance of ServiceBusAccessKeys.

public static Azure.ResourceManager.ServiceBus.Models.ServiceBusAccessKeys ServiceBusAccessKeys (string primaryConnectionString = default, string secondaryConnectionString = default, string aliasPrimaryConnectionString = default, string aliasSecondaryConnectionString = default, string primaryKey = default, string secondaryKey = default, string keyName = default);
static member ServiceBusAccessKeys : string * string * string * string * string * string * string -> Azure.ResourceManager.ServiceBus.Models.ServiceBusAccessKeys
Public Shared Function ServiceBusAccessKeys (Optional primaryConnectionString As String = Nothing, Optional secondaryConnectionString As String = Nothing, Optional aliasPrimaryConnectionString As String = Nothing, Optional aliasSecondaryConnectionString As String = Nothing, Optional primaryKey As String = Nothing, Optional secondaryKey As String = Nothing, Optional keyName As String = Nothing) As ServiceBusAccessKeys

Parameters

primaryConnectionString
String

Primary connection string of the created namespace authorization rule.

secondaryConnectionString
String

Secondary connection string of the created namespace authorization rule.

aliasPrimaryConnectionString
String

Primary connection string of the alias if GEO DR is enabled.

aliasSecondaryConnectionString
String

Secondary connection string of the alias if GEO DR is enabled.

primaryKey
String

A base64-encoded 256-bit primary key for signing and validating the SAS token.

secondaryKey
String

A base64-encoded 256-bit primary key for signing and validating the SAS token.

keyName
String

A string that describes the authorization rule.

Returns

A new ServiceBusAccessKeys instance for mocking.

Applies to