cuddly-smartphone-89735
02/19/2020, 6:41 PMcareful-state-15277
02/20/2020, 2:05 PMcareful-state-15277
02/20/2020, 6:48 PMcareful-state-15277
02/20/2020, 6:53 PMmillions-journalist-34868
02/21/2020, 1:10 PMdelightful-truck-1268
02/22/2020, 12:48 AMmillions-journalist-34868
02/22/2020, 6:36 PMcreamy-keyboard-79767
02/23/2020, 3:53 PMArchiveFunctionApp
).
Trying to add a url to allowed origins in siteConfig.allowedorigins, but the property doesn't existcreamy-keyboard-79767
02/23/2020, 3:54 PMfreezing-waiter-91293
02/24/2020, 11:12 AM- task: Pulumi@1
inputs:
azureSubscription: 'Visual Studio Enterprise ~~'
command: 'up'
loginArgs: '<file://infra/pulumi-state>'
cwd: 'infra'
stack: 'production'`
but it fails because it tries to find the files in <buildDir>/infra/infra/pulumi-state
.
When I use:
loginArgs: '<file://pulumi-state>'
it fails as well because it looks at this path: <buildDir>/pulumi-state
.
What am i doing wrong ?mammoth-train-70005
02/26/2020, 5:23 AMDiagnostics:
azuread:index:GroupMember (app3Member):
error: azuread:index/groupMember:GroupMember resource 'app3Member' has a problem: Missing required property 'memberObjectId'
On the other hand, it works when I comment out the GroupMember
generation, run pulumi up
and deploy the appServices first, the comment the group member generation in and run pulumi up
again. So
with two round trips in works.
I also checked doing forcing an Output<string> with
memberObjectId: pulimi.output(app1Service).apply(app=>app.identity.principalId)
This does not help, also playing around with setting dependsOn does also not helps.
Any Ideas? Running the Script twice (first without the GroupMember generation) seems not a good option. Here is the complete sample (extract of a longer script)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azuread from "@pulumi/azuread";
import { Kinds } from "@pulumi/azure/appservice";
import { Locations } from "@pulumi/azure";
const appName = 'testapp';
const env = 'dev-';
const rgName = `rg-${env}${appName}`;
const planName = `${env}${appName}`;
const serviceName = `${env}${appName}`;
const resourceGroup = new azure.core.ResourceGroup(rgName, {
location: Locations.WestEurope
});
const resourceGroupArgs = {
resourceGroupName: resourceGroup.name,
location: resourceGroup.location
};
const servicePlan = new azure.appservice.Plan(planName, {
...resourceGroupArgs,
kind: <http://Kinds.App|Kinds.App>,
sku: {
capacity: 1,
size: 'B1',
tier: 'Basic'
}
})
const app1Service = new azure.appservice.AppService('app1' + serviceName, {
...resourceGroupArgs,
appServicePlanId: servicePlan.id,
appSettings: {
"ASPNETCORE_ENVIRONMENT": env.startsWith('dev') ? 'development' : 'production'
},
identity: {
type: 'SystemAssigned'
}
})
const app2Service = new azure.appservice.AppService('app2-' + serviceName, {
...resourceGroupArgs,
appServicePlanId: servicePlan.id,
appSettings: {
"ASPNETCORE_ENVIRONMENT": env.startsWith('dev') ? 'development' : 'production'
},
identity: {
type: 'SystemAssigned'
}
})
const app3Service = new azure.appservice.AppService('app3-' + serviceName, {
...resourceGroupArgs,
appServicePlanId: servicePlan.id,
appSettings: {
"ASPNETCORE_ENVIRONMENT": env.startsWith('dev') ? 'development' : 'production'
},
identity: {
type: 'SystemAssigned'
}
})
const appGroupName = `${appName}-App`;
const appGroup = new azuread.Group(appGroupName, {
});
new azuread.GroupMember('app1Member', {
groupObjectId: appGroup.id,
memberObjectId: app1Service.identity.principalId
}, { dependsOn: [appGroup, app1Service] })
new azuread.GroupMember('app2Member', {
groupObjectId: appGroup.id,
memberObjectId: app2Service.identity.principalId
}, { dependsOn: [appGroup, app2Service] })
new azuread.GroupMember('app3Member', {
groupObjectId: appGroup.id,
memberObjectId: app3Service.identity.principalId
}, { dependsOn: [appGroup, app3Service] })
mammoth-train-70005
02/26/2020, 10:38 AMelegant-balloon-59607
02/26/2020, 4:26 PMgray-plastic-11307
02/27/2020, 9:02 AMazure.keyvault.getSecret
.
In the details
section Pulumi lists addition to the data
and password
fields for all certificates..
Any ideas what might be causing this? (I am certain the fetched secrets are the correct ones and mapped correctly)better-rainbow-14549
02/27/2020, 4:17 PMfresh-tent-88504
02/28/2020, 10:39 AMvar vm = new WindowsVirtualMachine("clientvm", new WindowsVirtualMachineArgs
{
Name = "client-vm",
Location = resourceGroup.Location,
ResourceGroupName = resourceGroup.Name,
NetworkInterfaceIds = {networkInterface.Id},
Size = "Standard_D1",
SourceImageReference = new WindowsVirtualMachineSourceImageReferenceArgs
{
Publisher = "MicrosoftWindowsDesktop",
Offer = "Windows-10",
Sku = "rs5-pro",
Version = "latest",
},
AdminPassword = "some password",
AdminUsername = "some username",
OsDisk = new WindowsVirtualMachineOsDiskArgs
{
Caching = "ReadWrite",
Name = "OsDisk",
StorageAccountType = "Standard_LRS",
},
});
When running Pulumi up I get the following error:
└─ azure:compute:WindowsVirtualMachine clientvm 1 error
Diagnostics:
azure:compute:WindowsVirtualMachine (clientvm):
error: unrecognized resource type (Check): azure:compute/windowsVirtualMachine:WindowsVirtualMachine
I realise that this is probably not an adequate amount of information, but so far I would just love to hear if anyone have had a similar issue, or would have any idea as to why this error is happening.
Thanks!broad-dog-22463
02/29/2020, 11:53 AMgorgeous-elephant-23271
02/29/2020, 12:52 PMpulumi config set sshPublicKey < key.rsa.pub
gorgeous-elephant-23271
02/29/2020, 12:53 PMpulumi config set sshPublicKey ([Convert]::ToBase64String( [System.Text.Encoding]::Unicode.GetBytes((get-content keys/public))))
gorgeous-elephant-23271
02/29/2020, 1:08 PMgorgeous-elephant-23271
02/29/2020, 1:38 PMtall-librarian-49374
02/29/2020, 8:56 PMgorgeous-elephant-23271
03/01/2020, 12:45 PMwet-noon-14291
03/02/2020, 10:27 PMResourceGroup
, anyone seen that before?
error: Running program '/Users/tomasjansson/git/mastoj/Quickz/src/Quickz.Infra/bin/Debug/netcoreapp3.1/Quickz.Infra.dll' failed with an unhandled exception:
System.MissingMethodException: Method not found: 'Void Pulumi.CustomResource..ctor(System.String, System.String, Pulumi.ResourceArgs, Pulumi.ResourceOptions)'.
at Pulumi.Azure.Core.ResourceGroup..ctor(String name, ResourceGroupArgs args, CustomResourceOptions options)
at Helpers.createResourceGroup(String name) in /Users/tomasjansson/git/mastoj/Quickz/src/Quickz.Infra/Helpers.fs:line 14
at Program.infra() in /Users/tomasjansson/git/mastoj/Quickz/src/Quickz.Infra/Program.fs:line 5
at Program.main@40.Invoke(Unit arg00@) in /Users/tomasjansson/git/mastoj/Quickz/src/Quickz.Infra/Program.fs:line 40
at Pulumi.FSharp.Deployment.run@48.Invoke()
at Pulumi.Deployment.<>c__DisplayClass75_0.<RunAsync>b__0()
at Pulumi.Stack.RunInitAsync(Func`1 init)
at Pulumi.Deployment.Runner.WhileRunningAsync()
wet-noon-14291
03/02/2020, 10:44 PMnice-businessperson-16226
03/03/2020, 11:49 AMdazzling-rose-37445
03/04/2020, 10:24 AMconst gcosmos = new azure.cosmosdb.Account(config.globalCosmosDb.name,
{
name: config.globalCosmosDb.name,
resourceGroupName: resourceGroup.name,
location: "northeurope",
offerType: "Standard",
geoLocations: [...config.globalCosmosDb.regions],
consistencyPolicy: { consistencyLevel: "Session" }
}
);
And the config in my stack yaml file:
regions:
- location: "North Europe"
failoverPriority: 0
- location: "West US"
failoverPriority: 1
- location: "Southeast Asia"
failoverPriority: 2
The problem is that if I change my config to add a new region, like:
regions:
- location: "North Europe"
failoverPriority: 0
- location: "West US"
failoverPriority: 1
- location: "Southeast Asia"
failoverPriority: 2
- location: "Canada East"
failoverPriority: 3
My pulumi up
deletes my cosmosDb and creates again instead of just updating the geolocations property, like in the image.
Am I doing something wrong? 🤔limited-rainbow-51650
03/04/2020, 4:33 PMcreating...
meanwhile. Does it really take that long for such an instance to be set up?bitter-house-39981
03/04/2020, 4:49 PMbest-jordan-23853
03/05/2020, 1:01 PM