az iot ops identity
Note
This reference is part of the azure-iot-ops extension for the Azure CLI (version 2.53.0 or higher). The extension will automatically install the first time you run an az iot ops identity command. Learn more about extensions.
Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Instance identity management.
Commands
Name | Description | Type | Status |
---|---|---|---|
az iot ops identity assign |
Assign a user-assigned managed identity with the instance. |
Extension | Preview |
az iot ops identity remove |
Remove a user-assigned managed identity from the instance. |
Extension | Preview |
az iot ops identity show |
Show the instance identities. |
Extension | Preview |
az iot ops identity assign
Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Assign a user-assigned managed identity with the instance.
This operation includes federation of the identity.
az iot ops identity assign --mi-user-assigned
--name
--resource-group
[--fc]
[--self-hosted-issuer {false, true}]
[--usage {dataflow}]
Examples
Assign and federate a desired user-assigned managed identity.
az iot ops identity assign --name myinstance -g myresourcegroup --mi-user-assigned $UA_MI_RESOURCE_ID
Required Parameters
The resource Id for the desired user-assigned managed identity to use with the instance.
IoT Operations instance name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The federated credential name.
Use the self-hosted oidc issuer for federation.
Indicates the usage type of the associated identity.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az iot ops identity remove
Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Remove a user-assigned managed identity from the instance.
az iot ops identity remove --mi-user-assigned
--name
--resource-group
[--fc]
Examples
Remove the desired user-assigned managed identity from the instance.
az iot ops identity remove --name myinstance -g myresourcegroup --mi-user-assigned $UA_MI_RESOURCE_ID
Required Parameters
The resource Id for the desired user-assigned managed identity to use with the instance.
IoT Operations instance name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The federated credential name.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az iot ops identity show
Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show the instance identities.
az iot ops identity show --name
--resource-group
Examples
Show the identities associated with the target instance.
az iot ops identity show --name myinstance -g myresourcegroup
Required Parameters
IoT Operations instance name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI