編集

次の方法で共有


New-AzActionGroupVoiceReceiverObject

Create an in-memory object for VoiceReceiver.

Syntax

New-AzActionGroupVoiceReceiverObject
   -CountryCode <String>
   -Name <String>
   -PhoneNumber <String>
   [<CommonParameters>]

Description

Create an in-memory object for VoiceReceiver.

Examples

Example 1: create action group voice receiver

New-AzActionGroupVoiceReceiverObject -CountryCode 86 -Name "sample voice" -PhoneNumber 01234567890

CountryCode Name         PhoneNumber                                                                                                   
----------- ----         -----------
86          sample voice 01234567890

This command creates action group voice receiver object.

Parameters

-CountryCode

The country code of the voice receiver.

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

-Name

The name of the voice receiver. Names must be unique across all receivers within an action group.

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

-PhoneNumber

The phone number of the voice receiver.

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

Outputs

VoiceReceiver