az webapp identity
Gestire l'identità gestita dell'app Web.
Comandi
Nome | Descrizione | Tipo | Status |
---|---|---|---|
az webapp identity assign |
Assegnare l'identità gestita all'app Web. |
Core | GA |
az webapp identity remove |
Disabilitare l'identità gestita dell'app Web. |
Core | GA |
az webapp identity show |
Visualizzare l'identità gestita dell'app Web. |
Core | GA |
az webapp identity assign
Assegnare l'identità gestita all'app Web.
az webapp identity assign [--identities]
[--ids]
[--name]
[--resource-group]
[--role]
[--scope]
[--slot]
[--subscription]
Esempio
assegnare un'identità locale e assegnare un ruolo lettore al gruppo di risorse corrente.
az webapp identity assign -g MyResourceGroup -n MyUniqueApp --role reader --scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/MyResourceGroup
abilitare l'identità per l'app Web.
az webapp identity assign -g MyResourceGroup -n MyUniqueApp
assegnare un'identità locale e un'identità assegnata dall'utente a un'app Web.
az webapp identity assign -g MyResourceGroup -n MyUniqueApp --identities [system] myAssignedId
Parametri facoltativi
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Identità separate da spazi da assegnare. Usare '[system]' per fare riferimento all'identità assegnata dal sistema. Impostazione predefinita: '[system]'.
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 |
Nome dell'app Web. Se non specificato, verrà generato un nome in modo casuale. È possibile configurare l'impostazione predefinita usando az configure --defaults web=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Nome del gruppo di risorse. È possibile configurare il gruppo predefinito usando az configure --defaults group=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Nome o ID del ruolo a cui verrà assegnata l'identità gestita.
Proprietà | Valore |
---|---|
Valore predefinito: | Contributor |
L'ambito a cui l'identità gestita ha accesso.
Nome dello slot. Il valore predefinito è lo slot productions, se non specificato.
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 |
Formato dell'output.
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 webapp identity remove
Disabilitare l'identità gestita dell'app Web.
az webapp identity remove [--identities]
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
Esempio
Disabilitare l'identità gestita del sistema dell'app Web
az webapp identity remove --name MyWebApp --resource-group MyResourceGroup
Disabilitare l'identità gestita del sistema dell'app Web e un'identità gestita dall'utente
az webapp identity remove --name MyWebApp --resource-group MyResourceGroup --identities [system] myAssignedId
Parametri facoltativi
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Identità separate da spazi da assegnare. Usare '[system]' per fare riferimento all'identità assegnata dal sistema. Impostazione predefinita: '[system]'.
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 |
Nome dell'app Web. Se non specificato, verrà generato un nome in modo casuale. È possibile configurare l'impostazione predefinita usando az configure --defaults web=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Nome del gruppo di risorse. È possibile configurare il gruppo predefinito usando az configure --defaults group=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Nome dello slot. Il valore predefinito è lo slot productions, se non specificato.
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 |
Formato dell'output.
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 webapp identity show
Visualizzare l'identità gestita dell'app Web.
az webapp identity show [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
Esempio
visualizzare l'identità gestita dell'app Web (generata automaticamente)
az webapp identity show --name MyWebapp --resource-group MyResourceGroup
Parametri facoltativi
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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 |
Nome dell'app Web. Se non specificato, verrà generato un nome in modo casuale. È possibile configurare l'impostazione predefinita usando az configure --defaults web=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Nome del gruppo di risorse. È possibile configurare il gruppo predefinito usando az configure --defaults group=<name>
.
Proprietà | Valore |
---|---|
Parameter group: | Resource Id Arguments |
Nome dello slot. Il valore predefinito è lo slot productions, se non specificato.
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 |
Formato dell'output.
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 |