powerful-football-81694
07/10/2022, 8:35 AMSqlResourceSqlRoleAssignment
type from the DocumentDB
namespace.
It seems Cosmos is only able to create one of these at a time. One of them succeeds, the other gets:
error: Code="PreconditionFailed" Message="There is another user operation in progress which requires an exclusive lock on [orgflow-runner-runner-cdb]. Please retry after sometime.\r\nActivityId: af360631-3ac5-470a-897a-ba45563aabc7, Microsoft.Azure.Documents.Common/2.14.0"
If I retry the pulumi up
then the next time the other one gets created.
Now, our IaC code is very decomposed, with different microservices each owning and contributing their own chunks to the resource tree, and these two role assignments live in different and completely decoupled parts of the code. Therefore it’s not really feasible to have one of them simply do DependsOn
on the other to serialize their creation.
How can we solve this problem?rapid-football-44318
07/11/2022, 2:46 PMwet-noon-14291
07/11/2022, 9:51 PMgentle-airplane-84691
07/12/2022, 1:37 PMglamorous-waitress-51149
07/12/2022, 3:22 PMazure-native:web:AppServicePlan Staging-homepage-appplan error: building auth config: obtain subscription() from Azure CLI: Error parsing json result from the Azure CLI: Error waiting for the Azure CLI: exit status 1
glamorous-waitress-51149
07/13/2022, 8:40 AMacoustic-dress-83560
07/13/2022, 1:08 PMException: invoke of azure-native:storage:listStorageAccountKeys failed: invocation of azure-native:storage:listStorageAccountKeys returned an error: request failed /subscriptions/#######-####-####-####-##########/resourceGroups/rg-core-westeurope-management-81fc415a/providers/Microsoft.Storage/storageAccounts/filesad2a48ab/listKeys: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client '<mailto:my.email@domain.com|my.email@domain.com>' with object id 'dd9058c3-b6eb-4368-9a1c-3572f102d292' does not have authorization to perform action 'Microsoft.Storage/storageAccounts/listKeys/action' over scope '/subscriptions/#######-####-####-####-##########/resourceGroups/rg-core-westeurope-management-81fc415a/providers/Microsoft.Storage/storageAccounts/filesad2a48ab' or the scope is invalid. If access was recently granted, please refresh your credentials."
I've tried refreshing credentials as it says. I'm sure it has the right permissions.
The client is my Azure account, which only had read access over these resources. If I provide myself with full access, then this works, but is not the solution.
Does anyone know where to go from here?happy-parrot-60128
07/16/2022, 7:42 AMwet-noon-14291
07/17/2022, 8:18 PMazure-native
properties in my Pulumi.<stack>.yaml
file, I thought they would be used if I do new azure.Provider(<name>)
in the code, but that doesn't seem to be the case in my case.... or maybe I've got it wrong?ancient-solstice-53934
07/18/2022, 6:32 AMbored-airplane-19518
07/18/2022, 2:34 PMancient-solstice-53934
07/19/2022, 8:14 AMable-engineer-79880
07/20/2022, 3:51 AMicy-jordan-58549
07/20/2022, 10:02 AMDiagnostics:
azure-native:network:VirtualNetworkLink (registry-dns-link):
error: building auth config: obtain subscription(905952ee-ddfb-4ede-9fb3-cf768804753e) from Azure CLI: Error parsing json result from the Azure CLI: Error waiting for the Azure CLI: exit status 1
wet-noon-14291
07/20/2022, 9:41 PMManagedCluster
would do, but apparently the node pools has their own version set somewhere else. I configure the node pools in the agentPoolProfiles
property, but I can't see anything with version there.ancient-solstice-53934
07/21/2022, 12:42 PMdamp-honey-93158
07/24/2022, 7:27 PMdamp-honey-93158
07/24/2022, 9:10 PMbored-airplane-19518
07/25/2022, 1:37 PMancient-solstice-53934
07/25/2022, 6:45 PMgorgeous-accountant-60580
07/26/2022, 11:51 AMancient-solstice-53934
07/28/2022, 10:10 AMrough-window-15889
07/28/2022, 4:10 PMjolly-baker-26598
07/28/2022, 9:39 PM{
"$schema": "<https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#>",
"contentVersion": "1.0.0.0",
"parameters": {
"staticSites_Feedbapp_name": {
"defaultValue": "Feedbapp",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Web/staticSites",
"apiVersion": "2022-03-01",
"name": "[parameters('staticSites_Feedbapp_name')]",
"location": "Central US",
"tags": {},
"sku": {
"name": "Free",
"tier": "Free"
},
"properties": {
"repositoryUrl": <repo url>,
"branch": "main",
"stagingEnvironmentPolicy": "Enabled",
"allowConfigFileUpdates": true,
"provider": "GitHub",
"enterpriseGradeCdnStatus": "Disabled"
}
}
]
}
swift-apple-26877
08/01/2022, 2:41 PMjolly-baker-26598
08/02/2022, 9:02 PMjolly-baker-26598
08/09/2022, 3:30 PMbitter-finland-22989
08/09/2022, 4:19 PMswift-forest-96094
08/10/2022, 2:35 PMadamant-waiter-67103
08/10/2022, 7:30 PMlet vaultPostgresPassword =
Pulumi.AzureNative.KeyVault.Secret(namer "postgresPwd",
Pulumi.AzureNative.KeyVault.SecretArgs(
Properties = Pulumi.AzureNative.KeyVault.Inputs.SecretPropertiesArgs(
Value = io postgresPwd.Result,
Attributes = input (Pulumi.AzureNative.KeyVault.Inputs.SecretAttributesArgs(Enabled = input true)),
ContentType = input "text/plain"
),
ResourceGroupName = io resourceGroup.Name,
SecretName = input "postgresPassword",
VaultName = io keyVault.Name
))
I'm getting this message error: autorest/azure: Service returned an error. Status=400 Code="ParameterNotSpecified" Message="The parameter value is not specified."
I'm not sure why, I'm running pulumi up --yes --refresh -d --skip-preview -v 3
and aren't getting any more informationadamant-waiter-67103
08/10/2022, 7:30 PMlet vaultPostgresPassword =
Pulumi.AzureNative.KeyVault.Secret(namer "postgresPwd",
Pulumi.AzureNative.KeyVault.SecretArgs(
Properties = Pulumi.AzureNative.KeyVault.Inputs.SecretPropertiesArgs(
Value = io postgresPwd.Result,
Attributes = input (Pulumi.AzureNative.KeyVault.Inputs.SecretAttributesArgs(Enabled = input true)),
ContentType = input "text/plain"
),
ResourceGroupName = io resourceGroup.Name,
SecretName = input "postgresPassword",
VaultName = io keyVault.Name
))
I'm getting this message error: autorest/azure: Service returned an error. Status=400 Code="ParameterNotSpecified" Message="The parameter value is not specified."
I'm not sure why, I'm running pulumi up --yes --refresh -d --skip-preview -v 3
and aren't getting any more informationbillowy-army-68599
08/10/2022, 7:31 PMadamant-waiter-67103
08/10/2022, 7:35 PMinput
surrounding SecretPropertiesArgs
.... that was annoying as heckdry-judge-83479
08/12/2022, 10:36 AMadamant-waiter-67103
08/12/2022, 10:45 AMInput<T>
make sure you wrap the assignment inputdry-judge-83479
08/12/2022, 10:50 AMerror: constructing secrets manager of type "cloud": secrets (code=InvalidArgument): keyvault.BaseClient#Decrypt: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadParameter" Message="The parameter is incorrect.\r\n