better-rainbow-14549
06/04/2020, 9:21 AMwarning: getEventhubNamespace is deprecated: azure.eventhub.getEventhubNamespace has been deprecated in favor of azure.eventhub.getNamespace
warning: EventHubConsumerGroup is deprecated: azure.eventhub.EventHubConsumerGroup has been deprecated in favor of azure.eventhub.ConsumerGroup
those warnings are incorrect - those are both servicebus resources not eventhub (or at least they were last time this warning happened)rhythmic-finland-36256
06/04/2020, 12:05 PMBasic
to Standard
SKU fails with strange error message. Deleting and recreating with the same code worked though.plain-tiger-79744
06/04/2020, 3:52 PMrough-tomato-98795
06/05/2020, 7:31 AMable-beard-29160
06/05/2020, 12:13 PMexport const app = new azuread.Application('app', {
requiredResourceAccesses: [
Apps.WindowsAzureActiveDirectory.withRoles(roles => [
roles.Application.ReadWrite.All,
roles.Application.ReadWrite.OwnedBy,
]),
],
});
Instead of this:
export const app = new azuread.Application('app', {
requiredResourceAccesses: [
{
resourceAppId: '00000002-0000-0000-c000-000000000000',
resourceAccesses: [
{
id: "1cda74f2-2616-4834-b122-5cb1b07f8a59",
type: "Role",
},
{
id: "824c81eb-e3f8-4ee6-8f6d-de7f50d565b7",
type: "Role",
},
],
},
],
});
acoustic-rose-89683
06/05/2020, 12:30 PMchilly-crayon-19101
06/07/2020, 9:04 PMimport * as azure from "@pulumi/azure";
import * as configuration from "./IConfiguration";
let config = new pulumi.Config().requireObject<configuration.IConfiguration>("configuration");
const resourceGroup = new azure.core.ResourceGroup("resourceGroup", {
name: config.resourceGroupName
});
const apiStorageAccount = new azure.storage.Account("cvStorageAccount", {
name: `${config.appName}storage`,
resourceGroupName: resourceGroup.name,
accountReplicationType: "LRS",
accountTier: "Standard",
accountKind: "StorageV2"
}, {additionalSecretOutputs: ["primaryConnectionString"]});
const app = new azure.appservice.ArchiveFunctionApp("functionApp", {
resourceGroup,
name: `${config.appName}back`,
archive: new pulumi.asset.FileArchive("../src/CurriculumVitaeApi/bin/Release/netcoreapp3.1/publish"),
appSettings: {
"runtime": "dotnet",
"CvApiDataConnectionString": apiStorageAccount.primaryConnectionString,
"GetBlobPath": "curriculumvitae/{id}.json",
"ContainerName": "curriculumvitae"
}
});
export let baseurl = app.functionApp.defaultHostname.apply(x => `https://${x}`);
export let functionsHostKey = app.functionApp.getHostKeys().masterKey; //make me a secret please!
export let storageConnectionString = apiStorageAccount.primaryConnectionString;
mysterious-australia-14256
06/09/2020, 11:25 AMmysterious-australia-14256
06/09/2020, 1:23 PMnumerous-artist-1705
06/10/2020, 5:34 PMfamous-jelly-72366
06/11/2020, 7:58 AMaz ad sp create-for-rbac
to pulumi? Thinking it must be something with making an Application, ServicePrincipal and ServicePrincipalPasswordfamous-jelly-72366
06/11/2020, 2:58 PMServicePrincipalPassword::k8s-dev-SpPassword-Client: Error parsing Application Password ID: Credential ID should be in
the format {objectId}/{keyType}/{keyId} - but got "xxxx"
plain-tiger-79744
06/12/2020, 9:38 AMPulumi.Azure.Authorization.Assignment
, but when I try to user a group for PrincipalId
I get the error message: Status=400 Code="UnmatchedPrincipalType" Message="The PrincipalId 'xyz' has type 'Group' , which is different from specified PrinciaplType 'ServicePrincipal'." I can not set a PrincipalType, there is no such property available.limited-carpenter-34991
06/12/2020, 10:41 AMvar apiManagementService = new Pulumi.Azure.ApiManagement.Service($"{namePlaceHolder}", new Pulumi.Azure.ApiManagement.ServiceArgs
{
ResourceGroupName = resourceGroup,
PublisherName = "my company",
PublisherEmail = "<mailto:developer@mycompany.com|developer@mycompany.com>",
SkuName = "Developer_1",
});
I have also then a var app = new FunctioApp ...
wet-noon-14291
06/13/2020, 7:55 PMlet options = CustomResourceOptions()
options.AdditionalSecretOutputs <- ["AdminPassword"] |> ResizeArray
Registry(name,
RegistryArgs(
Sku = input "basic",
ResourceGroupName = io resourceGroup.Name,
AdminEnabled = input true
), options = options)
but that doesn't seem to do the trick.wet-noon-14291
06/13/2020, 8:29 PMImage
, but how do I do it with an existing image?limited-carpenter-34991
06/15/2020, 12:52 PMapimanagement.BackendClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="ValidationError" Message="One or more fields contain incorrect values:" Details=[{"code":"ValidationError","message":"Value should represent absolute http URL","target":"resourceId"}]
I create the backend with
var backend = new Backend($"{namePlaceHolder}", new BackendArgs
{
ApiManagementName = apiManagementService.Name,
ResourceGroupName = resourceGroup,
Protocol = "http",
ResourceId = functionApp.Id,
Description = "functionApp Backend",
Title = "functionAppBackend",
Url = "<https://backendname2644/>"
});
curved-alarm-76356
06/15/2020, 5:09 PMrhythmic-finland-36256
06/15/2020, 7:03 PMwet-noon-14291
06/16/2020, 7:59 PMbetter-rainbow-14549
06/17/2020, 11:29 AMexport type CommonProperties<A, B> = { [K in keyof A & keyof B]: A[K] extends B[K] ? K : never };
export type AzureSubnetResult = CommonProperties<azure.network.GetSubnetResult, azure.network.Subnet>;
but it does mean I have to specify it either long-form as a type in the function, or create a new type from it for each resource. Is this something that could be added to the generated TF code somehow? Any reasons why it's bad practice or not?curved-alarm-76356
06/17/2020, 1:54 PMpulumi preview
command hangs (more than 20min). I have tried to add the --debug
option but there is no output.
2. While I run the same command on the Azure Pipeline Task of Pulumi (using the same SP) I get a weird error:`error: getting secrets manager: secrets (code=InvalidArgument): azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to ********/decrypt?api-version=7.0: StatusCode=400 -- Original Error: adal: Refresh request failed. Status Code = '400'. Response body: {"error":"invalid_request","error_description":"Identity not found"}.` I have triple checked and the SP has the correct rights on the KeyVault.
3. In the pipeline (using the Azure Pipeline Task of Pulumi) the stack select
command fails almost 50% of the time to find my stack.
What am I doing wrong?wet-noon-14291
06/17/2020, 2:34 PMrhythmic-vegetable-87369
06/18/2020, 8:15 AMrhythmic-vegetable-87369
06/18/2020, 8:16 AMrhythmic-vegetable-87369
06/18/2020, 8:17 AMvar matchnetConfirmationsApiNamedValue = new NamedValue("matchnetconfirmationsapi-key", new NamedValueArgs
{
ResourceGroupName = resourceGroup.Name,
ApiManagementName = confirmationApiService.Name,
DisplayName = "matchnetconfirmationsapi-key",
Value = "Qxxxx8g==",
Secret = true,
Name = "matchnetconfirmationsapi-key"
});
var backendApi = new Backend("ApiBackend", new BackendArgs
{
ResourceGroupName = resourceGroup.Name,
ApiManagementName = confirmationApiService.Name,
ResourceId = "<https://management.azure.com/subscriptions/xxx/resourceGroups/matchnet-assessments-rg/providers/Microsoft.Web/sites/MatchnetConfirmationsApi>",
Protocol = "http",
Url = "<https://matchnetconfirmationsapi.azurewebsites.net/api>",
Credentials = new BackendCredentialsArgs
{
Header = { { "x-functions-key", matchnetConfirmationsApiNamedValue.Name } }
}
},
new CustomResourceOptions()
{
DependsOn = { matchnetConfirmationsApiNamedValue }
}
);
future-kite-91191
06/18/2020, 2:28 PMTemplateDeployment
resource.
I'm getting this error:
Error validating Template for Deployment "adyen-sa" (Resource Group "uel-dev-rg"): Deployment template validation failed: 'Template parameter JToken type is not valid. Expected 'Integer'. Actual 'String'. Please see <https://aka.ms/resource-manager-parameter-files> for usage details.'.
This is caused by the ARM template input parameters that some of them expect an integer as input. Problem is that TemplateDeploymentArgs
has field
readonly parameters?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
..that ony accepts string parameter values? Is there a way to use integer ARM template parameters with ``TemplateDeployment` ?
Here's a sample of the ARM json template:
{
"$schema": "<http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#>",
"contentVersion": "1.0.0.0",
"parameters": {
"OutputErrorPolicy": {
"type": "string",
"allowedValues": [
"Drop",
"Stop"
]
},
"EventsLateArrivalMaxDelayInSeconds": {
"type": "int"
},
"EventsOutOfOrderMaxDelayInSeconds": {
"type": "int"
},
So here EventsOutOfOrderMaxDelayInSeconds
parameter is of type int
but in the Pulumi code I cannot use
const asa = new azure.core.TemplateDeployment("blabla", {
name: "blabla",
deploymentMode: "Incremental",
resourceGroupName: resourceGroup.name,
templateBody: fs.readFileSync("template.json").toString(),
parameters: {
"OutputErrorPolicy": "Stop",
"EventsOutOfOrderMaxDelayInSeconds": 0,
"EventsOutOfOrderPolicy": "Adjust",
"StreamingUnits": "6",
This does not compile at the line EventsOutOfOrderMaxDelayInSeconds": 0,
as 0
should be provided as a stringenough-kite-69616
06/19/2020, 3:37 PM<postgres://username>:password@hostname:port/dbname
enough-kite-69616
06/19/2020, 3:38 PMprefix${v}suffix
)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee https://pulumi.io/help/outputs for more details."numerous-artist-1705
06/21/2020, 8:21 AMnumerous-artist-1705
06/21/2020, 8:21 AMbillowy-army-68599
06/21/2020, 2:23 PMpulumi-aws
). You can see this in the provider's changelog
which terraform bug are you referring to?numerous-artist-1705
06/21/2020, 3:34 PMbillowy-army-68599
06/21/2020, 7:35 PMnumerous-artist-1705
06/21/2020, 8:08 PM