Skip to content

Latest commit

 

History

History
185 lines (140 loc) · 5.37 KB

File metadata and controls

185 lines (140 loc) · 5.37 KB
external help file ms.assetid online version schema content_git_url original_content_git_url gitcommit
Microsoft.Azure.Commands.NotificationHubs.dll-Help.xml
F7BBEF57-0DC2-4EFF-9AA2-119B3BD19AE6
2.0.0

Set-AzureRmNotificationHub

SYNOPSIS

Sets property values for a notification hub.

SYNTAX

InputFileParameterSet

Set-AzureRmNotificationHub [-ResourceGroup] <String> [-Namespace] <String> [-InputFile] <String> [-Force]
 [-WhatIf] [-Confirm] [<CommonParameters>]

NotificationHubParameterSet

Set-AzureRmNotificationHub [-ResourceGroup] <String> [-Namespace] <String>
 [-NotificationHubObj] <NotificationHubAttributes> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Set-AzureRmNotificationHub cmdlet modifies the property values of a notification hub.

You can modify a notification hub property value in two ways. For one, you can create an instance of the NotificationHubAttributes object and then configure that object with the property values you want the new hub to possess. This can be done through the .NET Framework. You can then copy those property values to your hub by through the NotificationHubObj parameter.

Alternatively, you can create a JSON (JavaScript Object Notation) file that contains the relevant configuration values, then apply those values by through the InputFile parameter. A JSON file is a text file that uses syntax similar to the following:

{
"Name": "ContosoNotificationHub",
"Location": "West US",
}

When used in conjunction with the Set-AzureRmNotificationHub cmdlet, the preceding JSON sample sets the Location value of a notification hub named ContosoNotificationHub to West US.

EXAMPLES

Example 1: Modify the property values for a notification hub

PS C:\>Set-AzureRmNotificationHub -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup" -InputFile "C:\Configuration\Hubs.json"

This command modifies the property values for a notification hub found in the ContosoNamespace namespace and assigned it to the resource group ContosoNotificationsGroup. The property values, as well as the name of the hub to be modified, are not specified in the command. Instead, that information is contained in the input file C:\Configuration\Hubs.json.

PARAMETERS

-Force

Do not ask for confirmation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InputFile

Specifies the path to a JSON file that contains configuration information for the notification hub.

Type: String
Parameter Sets: InputFileParameterSet
Aliases: 

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Namespace

Specifies the namespace to which the notification hub is assigned. Namespaces provide a way to group and categorize notification hubs.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-NotificationHubObj

Specifies the NotificationHubAttributes object that contains configuration information for the hub that this cmdlet modifies.

Type: NotificationHubAttributes
Parameter Sets: NotificationHubParameterSet
Aliases: 

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ResourceGroup

Specifies the resource group to which the notification hub is assigned. Resource groups organize items such as namespaces, notification hubs, and authorization rules in ways that help simply inventory management and Azure administration.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Get-AzureRmNotificationHub

New-AzureRmNotificationHub

Remove-AzureRmNotificationHub