colossal-room-15708
03/20/2020, 6:07 AMconst requirements = exec("cd cspm; python3.7 -m venv venv; . venv/bin/activate; pip3.7 install -r requirements.txt", (error: { message: any; }, stdout: any, stderr: any) => {
if (error) {
console.log(`error: ${error.message}`);
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
return;
}
console.log(`stdout: ${stdout}`);
});
but if I see it correctly, the following steps (mainly the one zipping everything up) isn't waiting for this to finish. What's the "pulumi way" to wait here?nutritious-judge-27316
03/20/2020, 3:41 PMpowerful-football-81694
03/20/2020, 10:10 PMDotNetCoreCLI@2
task. Anything executing in the pipeline is able to implicitly authenticate to the package feed.
Except the Pulumi Task Extension for Azure DevOps. When the program is built by Pulumi, this authentication for some reason does not work. It is as if the normal environment variables, or some other ambient/contextual thing, are not visible to dotnet.exe when it’s called from Pulumi.colossal-room-15708
03/21/2020, 8:39 AMconst appservicePlan = new azure.appservice.Plan("asp", {
resourceGroupName: resourceGroup.name,
kind: "linux",
sku: { tier: "Dynamic", size: "Y1" },
reserved: true
});
const app = new azure.appservice.ArchiveFunctionApp("App", {
resourceGroupName: resourceGroup.name,
name: functionAppName,
plan: appservicePlan,
version: "~3",
archive: new pulumi.asset.FileArchive("./app"),
appSettings: {
"runtime": "python"
}
});
I deploy this and all is fine, next time around though, Pulumi wants to replace the App Service Plan because on the API the kind
is now functionapp
?
All the examples set kind
to linux
.colossal-room-15708
03/21/2020, 8:46 AMpreview
says it's going to replace the Function App because osType
is not configured.
It's available in <https://github.com/pulumi/pulumi-azure/blob/master/sdk/nodejs/appservice/functionApp.ts>
but seems like it's not exposed in the ArchiveFunctionApp
tall-librarian-49374
03/21/2020, 8:48 AMfunctionapp
for the plan.tall-librarian-49374
03/21/2020, 8:48 AMreserved: true
is what makes it Linuxtall-librarian-49374
03/21/2020, 8:49 AMtall-librarian-49374
03/21/2020, 8:50 AMcolossal-room-15708
03/21/2020, 8:52 AMfunctionapp
makes it windows
, right?
I can have a function running on Linux. Seems like that's not allowed in TF?colossal-room-15708
03/21/2020, 8:52 AMtall-librarian-49374
03/21/2020, 8:57 AMfunctionapp
won’t make it Windowstall-librarian-49374
03/21/2020, 8:59 AMcolossal-room-15708
03/21/2020, 9:14 AMglamorous-policeman-63745
03/21/2020, 9:35 AMpulumi destroy
edit: nvm for some reason I just never found the protected option. Having a fresh look helps unsuprisingly.powerful-football-81694
03/22/2020, 2:55 AMpulumi refresh
not update the stack state to reflect the resources that exist in the target environment but which do not exist in the stack?clean-megabyte-19501
03/22/2020, 6:11 PMbreezy-answer-83664
03/23/2020, 7:18 AMbest-jordan-23853
03/23/2020, 4:36 PMbetter-rainbow-14549
03/23/2020, 5:39 PMbrainy-garden-89849
03/23/2020, 8:37 PMbetter-rainbow-14549
03/24/2020, 9:17 AMbetter-rainbow-14549
03/24/2020, 9:56 AM"@azure/ms-rest-js": "1.8.13"
in my package.json to stop azure bombing out - is that expected?plain-tiger-79744
03/24/2020, 5:57 PMregisterStackTransformation
with C#? I can't find the method for C#.rough-tomato-98795
03/25/2020, 8:01 AMhandsome-optician-50551
03/25/2020, 10:02 AMhandsome-optician-50551
03/26/2020, 1:36 PM${prefix}-api
, {`
`name: ${prefix}-api
,`
resourceGroupName: resourceGroup.name,
apiManagementName: service.name.apply(async (o) => {
if (!pulumi.runtime.isDryRun()) {
await sleep();
}
return o;
}),
`displayName: api-${prefix}
,`
protocols: ["https"],
revision: "1",
path: "weather",
import: {
contentFormat: "swagger-json",
contentValue: "<https://ddm-te-dev-2-as.azurewebsites.net/swagger/v1/swagger.json>"
}
`}, { import: /subscriptions/${subId}/resourceGroups/${prefix}-rg/providers/Microsoft.ApiManagement/service/${prefix}-ams/apis/${prefix}-api
, customTimeouts: { create: "10m", update: "10m" } });`future-kite-91191
03/29/2020, 9:18 AMbright-jordan-62321
03/30/2020, 11:50 AMError waiting for the completion of the creating/updating of databricks workspace "dpworkspaceeadbac04" (resource group "resourcegroup8de3db5b"): code="permissionnotpropagated" message="permission_not_propagated: a retryable error occurred. databricks has not yet received permission to access resources in your managed resource group, which is necessary to set up your workspace. this process could take up to an hour. please retry then.
loud-oyster-36834
03/30/2020, 12:53 PMerror404Document
in the static_website
block of my Storage Account resource. indexDocument
works fine.
Is there something I missunderstood or doing wrong here, or should I just report it as an issue on github?
Can the fact that the key contains numeric values mess something up in some transformation/translation (I am using the Python SDK)?