sparse-dream-33326
11/19/2020, 11:23 AMsparse-dream-33326
11/19/2020, 11:23 AMerror: graphrbac.ApplicationsClient#Create: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Unknown" Message="Unknown service error" Details=[{"odata.error":{"code":"Authorization_RequestDenied","date":"2020-11-19T11:21:33","message":{"lang":"en","value":"Insufficient privileges to complete the operation."},"requestId":"06ba91b6-f8dd-4c13-ad44-3edd92d780b9"}}]
sparse-dream-33326
11/19/2020, 11:24 AMsparse-dream-33326
11/19/2020, 4:19 PMancient-painter-14846
11/19/2020, 4:29 PMerror: 1 error occurred: updating urn:pulumi:dev::*****-infrastructure::azure:cosmosdb/sqlContainer:SqlContainer::dev: ID was missing the 'sqlDatabases' element
Using CLI 2.13.2. Dependencies:
"dependencies": {
"@pulumi/azure": "^3.30.1",
"@pulumi/kubernetes": "^2.7.1",
"@pulumi/pulumi": "^2.14.0"
}
early-sugar-1496
11/22/2020, 2:49 PMManagedClusterArgs.AgentPoolProfiles
calm-motorcycle-72397
11/23/2020, 8:36 PMcalm-motorcycle-72397
11/24/2020, 2:22 PMearly-television-40911
11/24/2020, 4:46 PMconst plan = new web.AppServicePlan("plan", {
resourceGroupName: resourceGroup.name,
name: "linux-asp",
location: resourceGroup.location,
kind: "Linux",
sku: selectedSku,
});
const cpuAlert = new insights.MetricAlert(
"cpuAlertName",
{
actions: [],
autoMitigate: false,
criteria: cpuCriteria,
description: "description",
enabled: true,
evaluationFrequency: "Pt1m",
location: "global",
resourceGroupName: resourceGroup.name,
ruleName: "cpuAlertName",
scopes: [plan.id],
severity: 3,
tags: {},
windowSize: "Pt15m",
},
{ dependsOn: plan },
);
if I try to create them together I get the error on the preview:
panic: fatal: A failure has occurred: Unrecognized structpb value kind in RPC[Provider[azure-nextgen, 0xc00052d7a0]
but if create the app service plan first then add the metric alert it works. Does anyone have any ideas on how to create them together?ancient-painter-14846
11/25/2020, 3:37 PM/subscriptions/*********-****-****-****-************/resourceGroups/rg-dev/providers/Microsoft.DocumentDB/databaseAccounts/regionalcosmos/apis/sql/databases/regionaldb/containers/dev
But if I do an az cosmos sql container list
, now this resource have the following ID:
/subscriptions/*********-****-****-****-************/resourceGroups/rg-dev/providers/Microsoft.DocumentDB/databaseAccounts/regionalcosmos/sqlDatabases/regionaldb/containers/dev
Because if this, I have the following error when trying to do a `pulumi up`:
ID was missing the 'sqlDatabases' element
Is there any way of fixing it? Maybe deleting from the state and re-importing it?calm-motorcycle-72397
11/27/2020, 7:13 AMbillowy-carpenter-15652
11/27/2020, 6:31 PMbitter-policeman-94135
11/28/2020, 1:41 AMred-lighter-44012
11/28/2020, 2:32 PMPostgresAdminLogin = dbServer.AdministratorLogin;
PostgresAdminPassword = dbServer.AdministratorLoginPassword;
PostgresFqdn = dbServer.Fqdn;
Edit: I fell in my own trap, the output properties were static š the method creating the DB is static so people return the new resource and not assign Output<> in the methods all over the place but only in the constructor. So yeah, I just shot myself in the foot. "senior dev" hahaprehistoric-nail-50687
11/30/2020, 10:30 AMnextgen
? The cli command is this:
az webapp log config --name "$APP_NAME" --resource-group "$RG_NAME" --docker-container-logging filesystem
But I canāt find any equivalent for it in pulumifuture-kite-91191
11/30/2020, 11:04 AMearly-sugar-1496
11/30/2020, 11:22 AMmissing required property 'properties.principalId'
, is it because i'm using apply?
using AzureAuth = Pulumi.AzureNextGen.Authorization.Latest;
new AzureAuth.RoleAssignment(
$"NetworkContributor",
new AzureAuth.RoleAssignmentArgs
{
Scope = _cluster.NodeResourceGroup!,
RoleAssignmentName = "Network Contributor",
Properties = new AzureAuth.Inputs.RoleAssignmentPropertiesArgs
{
PrincipalId = _cluster.Identity.Apply(identity => identity!.PrincipalId),
RoleDefinitionId = "",
},
});
clever-byte-21551
12/01/2020, 7:48 AMkeyvault
with azure-nextgen
plugin and I couldnāt find how I can create secrets, the keyvault
module only has methods for creating the actual vault but thereās no way to interact with it. (Iām using golang)nice-oyster-71086
12/01/2020, 9:44 PMtall-needle-56640
12/02/2020, 10:09 PMicy-jordan-58549
12/04/2020, 11:37 AMerror: building auth config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
adorable-cricket-58611
12/05/2020, 6:54 PMadorable-cricket-58611
12/05/2020, 6:54 PMwet-noon-14291
12/05/2020, 9:01 PMcool-jewelry-33023
12/06/2020, 11:23 PMprehistoric-nail-50687
12/07/2020, 10:13 AMWebAppHostNameBinding
from azure-nextgen
to add new domains to a WebApp
. This works fine, as long as I only have one domain to add, but if I add multiple domains, then it does not work, because the previous WebAppHostNameBinding
must be finished before I can add a new one. I currently have this:
const subdomains = ["aa", "bb", "cc"];
for (var subd of subdomains) {
var nameBinding = newHostNameBinding(subd, app.name, "<http://topdomain.com|topdomain.com>");
}
function newHostNameBinding(subdomain: string, appName: Input<string>, topdomain: string) {
return new nextgen.WebAppHostNameBinding(
`${environment}-web-host-name-binding-${subdomain}`,
{
name: appName,
resourceGroupName: resourceGroup.name,
hostName: `${subdomain}.${topdomain}`,
},
{ parent: app }
);
}
Ho can I ensure the calls to create a WebAppHostNameBinding
are finished on the Azure site before creating the next one?
The error I currently get is this:
Cannot modify this site because another operation is in progress. Details: Id: 79e4dbe5-ae0e-44a2-9006-13b3e85e4e23, OperationName: Update, CreatedTime: 12/7/2020 9:53:20 AM, RequestId: d371a3b1-9503-4635-8289-2477a33ac7aa, EntityType: 3
boundless-airport-99052
12/07/2020, 12:54 PMterraform azurerm - v2.34.0
provider.
I downgraded to @pulumi/azure - v3.28.0
which uses terraform azurerm v2.33.0
according to https://github.com/pulumi/pulumi-azure/blob/master/CHANGELOG.md
But I still got the same error message
error: azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace resource 'log-f-stack-s-a-sb' has a problem: expected daily_quota_gb to be at least (0.000000), got -1.000000
The daily_quota_gb
property was not present before`terraform azurerm v2.34.0` so I wonder why I still got this error.
Terraform changelog: https://github.com/terraform-providers/terraform-provider-azurerm/releases/tag/v2.34.0
I can also confirm this with this commit which in only present in v2.34Ā - support for theĀazurerm_log_analytics_workspace
Ā property (#8861)daily_quota_gb
tall-needle-56640
12/07/2020, 6:44 PMtall-needle-56640
12/07/2020, 11:37 PMPulumi.Azure
, I did this:
args.AppSettings = InputMap<string>.Merge(defaultAppSettings, args.AppSettings);
Now I'm trying to migrate that code to AzureNextGen
, but I'm not sure how to get it to work. I tried:
var appSettings = args.SiteConfig.Apply(c => c.AppSettings);
args.SiteConfig.Apply(s =>
s.AppSettings = InputMap<string>.Merge(defaultAppSettings, appSettings));
But I get an error:
Argument 2: cannot convert from 'Pulumi.Output<Pulumi.InputList<Pulumi.AzureNextGen.Web.Latest.Inputs.NameValuePairArgs>>' to 'Pulumi.InputMap<string>'So what do I do to make this work? Note
defaultAppSettings
is of type Dictionary<string, string>
.future-kite-91191
12/08/2020, 7:47 AMpulumi up
.
I'm logged in successfully to Azure via az login
still the pulumi up
command keeps asking for interactive sign-in via web page:
To sign in, use a web browser to open the page <https://microsoft.com/devicelogin> and enter the code {code here} to authenticate.
E1208 08:11:52.773315 15608 azure.go:154] Failed to acquire a token: failed acquiring new token: waiting for device code authentication to complete: autorest/adal/devicetoken: Error while retrieving OAuth token: Code Expired
Eventually the command times out. I'm on Pulumi version 2.15.3 and latest npm packages
Additional details: I can get a correct preview of the stack: