< Back
New-AzureRmWcfRelay
Post
NAME New-AzureRmWcfRelay
SYNOPSIS
Creates a WcfRelay in the specified Relay namespace.
SYNTAX
New-AzureRmWcfRelay [-ResourceGroupName] <String> [-Namespace] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [-InputObject
<WcfRelayAttributes>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzureRmWcfRelay [-ResourceGroupName] <String> [-Namespace] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]
[-RequiresClientAuthorization <Boolean>] [-RequiresTransportSecurity <Boolean>] [-UserMetadata <String>] [-WcfRelayType {NetTcp | Http}]
[-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmWcfRelay cmdlet creates a WcfRelay in the specified Relay namespace.
PARAMETERS
-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
-InputObject <WcfRelayAttributes>
WcfRelay object.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
WcfRelay Name.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Namespace <String>
Namespace Name.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiresClientAuthorization <Boolean>
true if client authorization is needed for this relay; otherwise, false
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiresTransportSecurity <Boolean>
true if transport security is needed for this relay; otherwise, false
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Resource Group Name.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-UserMetadata <String>
Gets or sets usermetadata is a placeholder to store user-defined string data for the HybridConnection endpoint.e.g. it can be used to store
descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-WcfRelayType <String>
WcfRelay Type. Possible values include: 'NetTcp' or 'Http'
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
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
-ResourceGroupName
System.String
-NamespaceName
System.String
-WcfRelayName
System.String
-InputObject
Microsoft.Azure.Commands.Relay.Models.WcfRelayAttributes
-WcfRelayType
System.String
-RequiresClientAuthorization
System.Boolean
-RequiresTransportSecurity
System.Boolean
-UserMetadata
System.String
OUTPUTS
Example 1 - InputObject
Microsoft.Azure.Commands.Relay.Models.WcfRelayAttributes
RelayType : Http CreatedAt : 4/26/2017 5:14:46 PM UpdatedAt : 4/26/2017 5:14:46 PM
ListenerCount : RequiresClientAuthorization : False RequiresTransportSecurity : True IsDynamic : False
UserMetadata : TestWCFRelay2 Id :
/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/Default-Storage-WestUS/providers/Microsoft.Rel
ay/namespaces/TestNameSpace-Relay1/WcfRelays/TestWCFRelay2 Name : TestWCFRelay2 Type :
Microsoft.Relay/WcfRelays
Example 2 - Properties
Microsoft.Azure.Commands.Relay.Models.WcfRelayAttributes
RelayType : NetTcp CreatedAt : 4/26/2017 5:20:08 PM UpdatedAt : 4/26/2017 5:20:08 PM
ListenerCount : RequiresClientAuthorization : True RequiresTransportSecurity : True IsDynamic : False
UserMetadata : User Meta data Id :
/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/Default-Storage-WestUS/providers/Microsoft.Rel
ay/namespaces/TestNameSpace-Relay1/WcfRelays/TestWCFRelay Name : TestWCFRelay Type :
Microsoft.Relay/WcfRelays
NOTES
Example 1 - InputObject
PS C:\\> $getWcfRelay = Get-AzureRmWcfRelay -ResourceGroupName Default-ServiceBus-WestUS -NamespaceName TestNameSpace-Relay1 -WcfRelayName
TestWCFRelay1
PS C:\\> $GetWcfRelay.UserMetadata = "TestWCFRelay2"
PS C:\\> $GetWcfRelay.RequiresClientAuthorization = $False
PS C:\\> $GetWcfRelay.RelayType = "Http"
PS C:\\> New-AzureRmWcfRelay -ResourceGroupName Default-Storage-WestUS -Namespace TestNameSpace-Relay1 -Name TestWCFRelay2 -InputObject
Creates a new WcfRelay `TestWCFRelay2` in the specified Relay namespace `TestNameSpace-Relay`.
Example 2 - Properties
PS C:\\> New-AzureRmWcfRelay -ResourceGroupName Default-Storage-WestUS -Namespace TestNameSpace-Relay1 -Name TestWCFRelay -WcfRelayType "NetTcp"
-RequiresClientAuthorization $True -RequiresTransportSecurity $True -UserMetadata "User Meta data"
Creates a new WcfRelay `TestWCFRelay` in the specified Relay namespace `TestNameSpace-Relay1`.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rmwcfrelay
SYNOPSIS
Creates a WcfRelay in the specified Relay namespace.
SYNTAX
New-AzureRmWcfRelay [-ResourceGroupName] <String> [-Namespace] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [-InputObject
<WcfRelayAttributes>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzureRmWcfRelay [-ResourceGroupName] <String> [-Namespace] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]
[-RequiresClientAuthorization <Boolean>] [-RequiresTransportSecurity <Boolean>] [-UserMetadata <String>] [-WcfRelayType {NetTcp | Http}]
[-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmWcfRelay cmdlet creates a WcfRelay in the specified Relay namespace.
PARAMETERS
-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
-InputObject <WcfRelayAttributes>
WcfRelay object.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
WcfRelay Name.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Namespace <String>
Namespace Name.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiresClientAuthorization <Boolean>
true if client authorization is needed for this relay; otherwise, false
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiresTransportSecurity <Boolean>
true if transport security is needed for this relay; otherwise, false
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Resource Group Name.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-UserMetadata <String>
Gets or sets usermetadata is a placeholder to store user-defined string data for the HybridConnection endpoint.e.g. it can be used to store
descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-WcfRelayType <String>
WcfRelay Type. Possible values include: 'NetTcp' or 'Http'
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
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
-ResourceGroupName
System.String
-NamespaceName
System.String
-WcfRelayName
System.String
-InputObject
Microsoft.Azure.Commands.Relay.Models.WcfRelayAttributes
-WcfRelayType
System.String
-RequiresClientAuthorization
System.Boolean
-RequiresTransportSecurity
System.Boolean
-UserMetadata
System.String
OUTPUTS
Example 1 - InputObject
Microsoft.Azure.Commands.Relay.Models.WcfRelayAttributes
RelayType : Http CreatedAt : 4/26/2017 5:14:46 PM UpdatedAt : 4/26/2017 5:14:46 PM
ListenerCount : RequiresClientAuthorization : False RequiresTransportSecurity : True IsDynamic : False
UserMetadata : TestWCFRelay2 Id :
/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/Default-Storage-WestUS/providers/Microsoft.Rel
ay/namespaces/TestNameSpace-Relay1/WcfRelays/TestWCFRelay2 Name : TestWCFRelay2 Type :
Microsoft.Relay/WcfRelays
Example 2 - Properties
Microsoft.Azure.Commands.Relay.Models.WcfRelayAttributes
RelayType : NetTcp CreatedAt : 4/26/2017 5:20:08 PM UpdatedAt : 4/26/2017 5:20:08 PM
ListenerCount : RequiresClientAuthorization : True RequiresTransportSecurity : True IsDynamic : False
UserMetadata : User Meta data Id :
/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/Default-Storage-WestUS/providers/Microsoft.Rel
ay/namespaces/TestNameSpace-Relay1/WcfRelays/TestWCFRelay Name : TestWCFRelay Type :
Microsoft.Relay/WcfRelays
NOTES
Example 1 - InputObject
PS C:\\> $getWcfRelay = Get-AzureRmWcfRelay -ResourceGroupName Default-ServiceBus-WestUS -NamespaceName TestNameSpace-Relay1 -WcfRelayName
TestWCFRelay1
PS C:\\> $GetWcfRelay.UserMetadata = "TestWCFRelay2"
PS C:\\> $GetWcfRelay.RequiresClientAuthorization = $False
PS C:\\> $GetWcfRelay.RelayType = "Http"
PS C:\\> New-AzureRmWcfRelay -ResourceGroupName Default-Storage-WestUS -Namespace TestNameSpace-Relay1 -Name TestWCFRelay2 -InputObject
Creates a new WcfRelay `TestWCFRelay2` in the specified Relay namespace `TestNameSpace-Relay`.
Example 2 - Properties
PS C:\\> New-AzureRmWcfRelay -ResourceGroupName Default-Storage-WestUS -Namespace TestNameSpace-Relay1 -Name TestWCFRelay -WcfRelayType "NetTcp"
-RequiresClientAuthorization $True -RequiresTransportSecurity $True -UserMetadata "User Meta data"
Creates a new WcfRelay `TestWCFRelay` in the specified Relay namespace `TestNameSpace-Relay1`.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rmwcfrelay