adventurous-garage-59192
01/10/2020, 10:55 AMWorking Directory
setting to point it to the correct spot.powerful-football-81694
01/10/2020, 12:52 PM{
"type": "Microsoft.Sql/servers/databases",
"apiVersion": "2019-06-01-preview",
"name": "ideliverable-licensing/Licensing",
"location": "northeurope",
"sku": {
"name": "GP_S_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5",
"capacity": 1
},
"kind": "v12.0,user,vcore,serverless",
"properties": {
"collation": "SQL_Latin1_General_CP1_CI_AS",
"maxSizeBytes": 17179869184,
"catalogCollation": "SQL_Latin1_General_CP1_CI_AS",
"zoneRedundant": false,
"readScale": "Disabled",
"readReplicaCount": 0,
"autoPauseDelay": 60,
"storageAccountType": "GRS",
"minCapacity": 0.5
}
}
But a lot of these options are missing from the corresponding Pulumi.Azure
classes. How do we specify the “Gen5" SKU, the “serverless” kind, the minimum/maximum number of vcores, and the auto-pause delay? Pulumi.Azure.Sql.DatabaseArgs
don’t include any of these as far as I can tell.
Thankful for any and all guidance!rhythmic-vegetable-87369
01/11/2020, 4:23 PMrhythmic-vegetable-87369
01/11/2020, 4:23 PMrhythmic-vegetable-87369
01/11/2020, 4:23 PMpowerful-football-81694
01/12/2020, 8:54 PMpulumi up
from my Azure Pipeline:
Diagnostics:
azure:core:ResourceGroup (licensing-dev-rg):
error: Error building account: Error getting authenticated object ID: Error listing Service Principals: autorest.DetailedError{Original:adal.tokenRefreshError{message:"adal: Refresh request failed. Status Code = '401'. Response body: {\"error\":\"invalid_client\",\"error_description\":\"AADSTS7000215: Invalid client secret is provided.\\r\\nTrace ID: d537fece-7902-4d0b-8696-debcc5b85900\\r\\nCorrelation ID: 62a70c31-1c5d-4de2-9503-b6c6ba7f555c\\r\\nTimestamp: 2020-01-12 20:48:44Z\",\"error_codes\":[7000215],\"timestamp\":\"2020-01-12 20:48:44Z\",\"trace_id\":\"d537fece-7902-4d0b-8696-debcc5b85900\",\"correlation_id\":\"62a70c31-1c5d-4de2-9503-b6c6ba7f555c\",\"error_uri\":\"<https://login.microsoftonline.com/error?code=7000215>\"}", resp:(*http.Response)(0xc00014c120)}, PackageType:"azure.BearerAuthorizer", Method:"WithAuthorization", StatusCode:401, Message:"Failed to refresh the Token for request to <https://graph.windows.net/***/servicePrincipals?%24filter=appId+eq+%27***%27&api-version=1.6>", ServiceError:[]uint8(nil), Response:(*http.Response)(0xc00014c120)}
Using the Pulumi Task Extension for Azure Pipeline.
My task YAML looks like this:
- task: Pulumi@1
displayName: Create/update Azure resources
inputs:
azureSubscription: 'IDeliverable Azure Subscription'
command: 'up'
args: '--skip-preview --yes'
cwd: 'infra/'
stack: 'dev'
env:
PULUMI_ACCESS_TOKEN: $(PulumiAccessToken)
- script: |
echo "##vso[task.setvariable variable=appName;isOutput=true]$(pulumi stack output appName)"
displayName: Set stack outputs as variables
name: stackVariables
The service connection IDeliverable Azure Subscription
exists and validates fine. The same service connection is also used successfully from other non-Pulumi tasks. I triple-checked the client secrets, even generated new ones and updated and verified, but still Pulumi fails with this.
Any ideas?sticky-lighter-73941
01/14/2020, 4:26 PMrhythmic-vegetable-87369
01/15/2020, 6:17 AMrhythmic-vegetable-87369
01/15/2020, 6:17 AMrhythmic-vegetable-87369
01/15/2020, 6:17 AMrhythmic-vegetable-87369
01/15/2020, 6:17 AMrhythmic-vegetable-87369
01/15/2020, 6:17 AMrhythmic-vegetable-87369
01/15/2020, 6:17 AMrhythmic-vegetable-87369
01/15/2020, 6:18 AMbetter-rainbow-14549
01/16/2020, 4:42 PMnice-guitar-97142
01/16/2020, 7:44 PMsubscriptions/{subscriptionId}/resourceGroups/{rgName}/providers/Microsoft.KeyVault/vaults/{kvName}/keys
subscriptions/{subscriptionId}/resourceGroups/{rgName}/providers/Microsoft.KeyVault/vaults/{kvName}/keys/{keyName}
subscriptions/{subscriptionId}/resourceGroups/{rgName}/providers/Microsoft.KeyVault/vaults/{kvName}/keys/{keyName}/{keyVersion}
jolly-wire-61915
01/16/2020, 11:33 PMazure.cosmosdb.SqlContainer
support the new autopilot throughput feature?rhythmic-vegetable-87369
01/17/2020, 2:35 PMrhythmic-vegetable-87369
01/17/2020, 2:47 PMambitious-ram-5811
01/17/2020, 5:47 PMpowerful-football-81694
01/18/2020, 2:43 PMPulumi.Azure.AppService.Inputs.FunctionAppSiteConfigArgs
class.
Is Pulumi using an older version of the TF provider? How can I find out which provider version is being used?adamant-postman-86832
01/19/2020, 6:53 AMnutritious-judge-27316
01/19/2020, 3:54 PMnutritious-judge-27316
01/19/2020, 3:56 PMplain-eye-9759
01/20/2020, 3:17 PMresource group not found
. despite that the keyVault id contains the full resource id (with the subscription)great-analyst-59265
01/20/2020, 10:13 PM{
"name": "azure-typescript",
"devDependencies": {
"@types/node": "^8.0.0"
},
"dependencies": {
"@pulumi/pulumi": "^1.0.0",
"@pulumi/azure": "^1.0.0",
"@pulumi/kubernetes": "^1.0.0",
"@pulumi/azuread": "^1.0.0"
}
}
ambitious-crayon-56788
01/23/2020, 2:48 PMgetHostKeys()
method is available for the FunctionApp resource. I'm using the ArchiveFunctionApp resource, which doesn't specifically list the method, but I'm hoping that I can still access the keys somehow?
• Documentation: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/azure/appservice/#FunctionApp-getHostKeys
"use strict";
const pulumi = require("@pulumi/pulumi");
const azure = require("@pulumi/azure");
// Create Storage Account (and container) and App Service Plan.
/// Removed to shorted example.
// Create a Function App and deploy code to it.
const functionApp = new azure.appservice.ArchiveFunctionApp("archiveFunctionApp", {
name: "my-function-app",
resourceGroupName: resourceGroup.name,
archive: new pulumi.asset.FileArchive("MyFunctionApp"),
plan: appServicePlan,
account: storageAccount,
container: storageContainer,
version: "~2",
appSettings: {
FUNCTIONS_WORKER_RUNTIME: "powershell"
}
});
exports.FunctionAppHostKeys = functionApp.getHostKeys();
ambitious-crayon-56788
01/28/2020, 1:57 PMazure.appservice.ArchiveFunctionApp
, but when I add the zipBlob
property and remove the archive
property, I'm met with an error -
Error: Deployment [archive] must be provided.The docs describe
zipBlob
as "The blob containing all the code for this FunctionApp".
If I leave the archive
property in place, two blobs are uploaded to Storage - one is my zipBlob
and the other is the randomly named blob created by the ArchiveFunctionApp
.
I'm guessing that there is a way to do this, but the docs seem pretty light on details (in fact they don't seem to mention archive
at all), so I'm not too sure where to go from here?
• Documentation: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/azure/appservice/#ArchiveFunctionApp
const functionApp = new azure.appservice.ArchiveFunctionApp("archiveFunctionApp", {
name: "my-function-app",
resourceGroupName: resourceGroup.name,
archive: new pulumi.asset.FileArchive("./MyArchive"),
plan: appServicePlan,
account: storageAccount,
container: storageContainer,
zipBlob: zipBlob,
version: "~2",
appSettings: {
FUNCTIONS_WORKER_RUNTIME: "powershell"
}
});
nice-guitar-97142
01/28/2020, 4:42 PM@pulumi/pulumi
to 1.9.1 and @pulumi/azure
to 1.11.0 and now get a lot of debug messages around registering resources and data sources for azure in the Diagnostics
section of stdout every time i run up
or pre
. i am not running these commands with a --debug
arg. is this expected behavior, or is it possible i have something mis-configured? (see image in thread)best-jordan-23853
01/28/2020, 9:49 PM