Got return code (1).
STDOUT:
STDERR: ERROR: Deployment failed. Correlation ID: 0438dbf7-ebcc-48fa-b3e5-84f88040a2d5. {
"error": {
"code": "OperationNotAllowed",
"message": "Operation results in exceeding quota limits of Core. Maximum allowed: 4, Current in use: 4, Additional requested: 1. Please read more about quota increase at http://aka.ms/corequotaincrease."
}
}
Your free trial subscription isn't eligible for a quota increase. To request a quota increase, first upgrade to a Pay-As-You-Go subscription. Learn more
STDERR: ERROR: The subscription 'XXXXXXXX' is disabled and therefore marked as read only. You cannot perform any write actions on this subscription until it is re-enabled.
# az account list --output table
A few accounts are skipped as they don't have 'Enabled' state. Use '--all' to display them.
Name CloudName SubscriptionId State
------------- ----------- ------------------------------------ -------
Pay-As-You-Go AzureCloud XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Enabled
# az account list --output table --all
Name CloudName SubscriptionId State IsDefault
------------- ----------- ------------------------------------ ------- -----------
免费试用 AzureCloud XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Warned True
Pay-As-You-Go AzureCloud XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Enabled
修改方法使用如下命令:
# az account set --subscription "Pay-As-You-Go"
然后再次检查就可以看到默认改为Pay-As-You-Go
# az account list --output table --all
Name CloudName SubscriptionId State IsDefault
------------- ----------- ------------------------------------ ------- -----------
免费试用 AzureCloud XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Warned
Pay-As-You-Go AzureCloud XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Enabled True