az monitor activity-log alert scope
Comandi
Nome | Descrizione | Tipo | Status |
---|---|---|---|
az monitor activity-log alert scope add |
Aggiungere ambiti a questa regola di avviso del log attività. |
Core | GA |
az monitor activity-log alert scope remove |
Rimuove gli ambiti da questa regola di avviso del log attività. |
Core | GA |
az monitor activity-log alert scope add
Aggiungere ambiti a questa regola di avviso del log attività.
az monitor activity-log alert scope add --scope
[--activity-log-alert-name --name]
[--add]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--remove]
[--reset {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--set]
[--subscription]
Esempio
Aggiungere ambiti a questa regola di avviso del log attività.
az monitor activity-log alert scope add --name MyActivityLogAlerts --resource-group
MyResourceGroup --scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx/resourceGroups/myRG/Microsoft.KeyVault/vaults/mykey
Parametri necessari
Elenco di ambiti da aggiungere. Ogni ambito può essere un ID risorsa o un ID sottoscrizione. Supportare la sintassi abbreviata, json-file e yaml-file. Prova "??" per mostrare di più.
Parametri facoltativi
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Nome dell'avviso del log attività.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Aggiungere un oggetto a un elenco di oggetti specificando un percorso e coppie chiave-valore. Esempio: --add property.listProperty <key=value, string or JSON string>
.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Quando si usa 'set' o 'add', mantenere i valori letterali stringa anziché tentare di eseguire la conversione in JSON.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Valori accettati: | 0, 1, f, false, n, no, t, true, y, yes |
Uno o più ID risorsa (delimitati da spazi). Deve essere un ID risorsa completo contenente tutte le informazioni degli argomenti "ID risorsa". È necessario specificare --ids o altri argomenti "ID risorsa".
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Rimuovere una proprietà o un elemento da un elenco. Esempio: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Rimuovere tutti i gruppi di azioni esistenti prima di aggiungere nuove condizioni.
Proprietà | Valore |
---|---|
Valore predefinito: | False |
Valori accettati: | 0, 1, f, false, n, no, t, true, y, yes |
Nome del gruppo di risorse. È possibile configurare il gruppo predefinito usando az configure --defaults group=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Aggiornare un oggetto specificando un percorso di proprietà e un valore da impostare. Esempio: --set property1.property2=<value>
.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Nome o ID della sottoscrizione. È possibile configurare la posizione predefinito usando az account set -s NAME_OR_ID
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Parametri globali
Aumentare la verbosità dei log per visualizzare tutti i log di debug.
Proprietà | Valore |
---|---|
Valore predefinito: | False |
Mostra questo messaggio Guida, esci.
Mostra solo gli errori, eliminando gli avvisi.
Proprietà | Valore |
---|---|
Valore predefinito: | False |
Output format.
Proprietà | Valore |
---|---|
Valore predefinito: | json |
Valori accettati: | json, jsonc, none, table, tsv, yaml, yamlc |
Stringa di query JMESPath. Per altre informazioni ed esempi, vedere http://jmespath.org/.
Aumentare il livello di dettaglio della registrazione. Usare --debug per log di debug completi.
Proprietà | Valore |
---|---|
Valore predefinito: | False |
az monitor activity-log alert scope remove
Rimuove gli ambiti da questa regola di avviso del log attività.
az monitor activity-log alert scope remove --scope
[--activity-log-alert-name --name]
[--add]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--remove]
[--resource-group]
[--set]
[--subscription]
Parametri necessari
Ambiti da rimuovere. Supportare la sintassi abbreviata, json-file e yaml-file. Prova "??" per mostrare di più.
Parametri facoltativi
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Nome dell'avviso del log attività.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Aggiungere un oggetto a un elenco di oggetti specificando un percorso e coppie chiave-valore. Esempio: --add property.listProperty <key=value, string or JSON string>
.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Quando si usa 'set' o 'add', mantenere i valori letterali stringa anziché tentare di eseguire la conversione in JSON.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Valori accettati: | 0, 1, f, false, n, no, t, true, y, yes |
Uno o più ID risorsa (delimitati da spazi). Deve essere un ID risorsa completo contenente tutte le informazioni degli argomenti "ID risorsa". È necessario specificare --ids o altri argomenti "ID risorsa".
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Rimuovere una proprietà o un elemento da un elenco. Esempio: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Nome del gruppo di risorse. È possibile configurare il gruppo predefinito usando az configure --defaults group=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Aggiornare un oggetto specificando un percorso di proprietà e un valore da impostare. Esempio: --set property1.property2=<value>
.
Proprietà | Valore |
---|---|
Parameter group: | Generic Update Arguments |
Nome o ID della sottoscrizione. È possibile configurare la posizione predefinito usando az account set -s NAME_OR_ID
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Parametri globali
Aumentare la verbosità dei log per visualizzare tutti i log di debug.
Proprietà | Valore |
---|---|
Valore predefinito: | False |
Mostra questo messaggio Guida, esci.
Mostra solo gli errori, eliminando gli avvisi.
Proprietà | Valore |
---|---|
Valore predefinito: | False |
Output format.
Proprietà | Valore |
---|---|
Valore predefinito: | json |
Valori accettati: | json, jsonc, none, table, tsv, yaml, yamlc |
Stringa di query JMESPath. Per altre informazioni ed esempi, vedere http://jmespath.org/.
Aumentare il livello di dettaglio della registrazione. Usare --debug per log di debug completi.
Proprietà | Valore |
---|---|
Valore predefinito: | False |