Extracting Azure API parameters can be done using a third-party management tool, i.e. panel management Azure, and the following shares the way to extract Azure Api using cloud cli on Azure panel.
Create Api parameters directly through Cli in Azure Control Panel
The creation command is as follows (the subscription id is output in the api)
az ad sp create-for-rbac --role owner --sdk-auth --years 99 --scopes /subscriptions/订阅ID
You can also use (the api does not output the subscription id)
sub_id=$(az account list --query [].id -o tsv)
az ad sp create-for-rbac --role contributor --scopes /subscriptions/$sub_id
Tip:The first execution of the cli command will create a bucket, remember to delete it after generating the API parameters.