Get-AzActionGroup
Mendapatkan grup tindakan.
Sintaks
Get-AzActionGroup
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzActionGroup
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzActionGroup
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzActionGroup
-InputObject <IActionGroupIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Deskripsi
Mendapatkan grup tindakan.
Contoh
Contoh 1: Mendapatkan grup tindakan menurut ID langganan
Get-AzActionGroup -SubscriptionId '{subid}'
Location Name ResourceGroupName
-------- ---- -----------------
northcentralus actiongroup1 Monitor-Action
northcentralus actiongroup2 Monitor-Action
Perintah ini mendapatkan daftar grup tindakan berdasarkan langganan tertentu.
Contoh 2: Mendapatkan grup tindakan tertentu dengan grup sumber daya tertentu
Get-AzActionGroup -Name actiongroup1 -ResourceGroupName monitor-action
ArmRoleReceiver : {}
AutomationRunbookReceiver : {}
AzureAppPushReceiver : {}
AzureFunctionReceiver : {}
EmailReceiver : {}
Enabled : False
EventHubReceiver : {}
GroupShortName : ag1
Id : /subscriptions/{subid}/resourceGroups/Monitor-Action/providers/microsoft.insights/actionGroups/actiongroup1
ItsmReceiver : {}
Location : northcentralus
LogicAppReceiver : {}
Name : actiongroup1
ResourceGroupName : Monitor-Action
SmsReceiver : {}
Tag : {
}
Type : Microsoft.Insights/ActionGroups
VoiceReceiver : {}
WebhookReceiver : {}
Perintah ini mendapatkan grup tindakan tertentu dengan grup sumber daya tertentu.
Parameter
-DefaultProfile
Parameter DefaultProfile tidak berfungsi. Gunakan parameter SubscriptionId saat tersedia jika menjalankan cmdlet terhadap langganan yang berbeda.
Jenis: | PSObject |
Alias: | AzureRMContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-InputObject
Parameter Identitas
Jenis: | IActionGroupIdentity |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-Name
Nama grup tindakan.
Jenis: | String |
Alias: | ActionGroupName |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceGroupName
Nama grup sumber daya. Nama tidak peka huruf besar/kecil.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-SubscriptionId
ID langganan target.
Jenis: | String[] |
Position: | Named |
Nilai default: | (Get-AzContext).Subscription.Id |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |