brief-church-89967
02/15/2023, 2:59 PMenough-caravan-98871
02/16/2023, 3:57 PMpulumi up
after the successful deployment, Pulumi wants to update the VirtualNetwork resource to delete the subnet and peerings. Obviously, I dont want it to do that. This is strange behavior. How can I resolve it? Thanks!ambitious-alligator-62127
02/16/2023, 8:55 PMGRANT azure_pg_admin TO <new_user>;
busy-flower-16072
02/20/2023, 8:05 PMbulky-oil-97030
02/24/2023, 4:23 PMisSftpEnabled
here https://learn.microsoft.com/en-us/azure/templates/microsoft.storage/2022-09-01/storageaccounts?pivots=deployment-language-arm-template#stora[…]acc-1
I can't find anything in the current documentation https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/storageaccount/bulky-oil-97030
02/24/2023, 4:24 PMgray-baker-98982
03/01/2023, 10:41 AMnew SqlContainerResourceArgs
{
Id = "questionnaireResponses",
PartitionKey = new ContainerPartitionKeyArgs { Paths = { "/domain", "/contractType" }, Kind = "Hash" },
}
gray-baker-98982
03/03/2023, 10:44 AMvar secret = new Secret($"keyname", new SecretArgs
{
Properties = new SecretPropertiesArgs
{
Attributes = new SecretAttributesArgs
{
Enabled = true,
},
Value = "SecretValue",
},
SecretName = "keyname",
ResourceGroupName = configResourceGroup.Name,
VaultName = vault.Name,
});
fancy-artist-45287
03/06/2023, 10:33 AMazure-pipeline.yaml
what value should the azureSubscription
property be? Seems to me that it should be the guid
of the Service Connection but that won't work and neither does the A*zure Subscription* id... 🤷♂️
jobs:
- job: deploy_infrastructure
displayName: Deploy Infrastructure
condition: or(eq(variables['Build.Reason'], 'Manual'),or(eq(variables['Build.Reason'], 'PullRequest'),eq(variables['Build.Reason'], 'IndividualCI')))
pool:
vmImage: ubuntu-latest
variables:
- group: Infrastructure
steps:
- checkout: self
submodules: true
- task: Npm@1
displayName: Install dependencies
inputs:
command: "install"
workingDir: "./Infrastructure/"
- task: Pulumi@1
displayName: Deploy Infrastructure
env:
PULUMI_ACCESS_TOKEN: $(PULUMI_ACCESS_TOKEN)
inputs:
command: "up"
args: "--yes --diff --refresh --non-interactive --skip-preview"
cwd: "./Infrastructure/"
stack: "dev"
createStack: true
azureSubscription: "???"
clean-traffic-57578
03/06/2023, 3:58 PMfew-postman-20852
03/07/2023, 1:16 PMfast-vr-6049
03/07/2023, 9:55 PMBasic
and Standard
as sku options. You can make a Dedicated
Event Hubs sku using the Cluster resource. The one that's missing is the Premium sku, and I'm not sure how to create an Event Hub Namespace on that sku. Is it as simple as setting the sku
strings to Premium
, even though that's not listed as valid inputs for the sku
object?gray-baker-98982
03/08/2023, 11:55 AMvar certificate = new Certifiate($"cer-{platform}-sp-{stackName}", new CertifiateArgs
{
KeyVaultId = vault.Id,
CertificatePolicy = policy
});
thousands-electrician-8726
03/12/2023, 8:37 AMconfig:
azure-native:location: westeurope
azure:skipProviderRegistration: "true"
rdpd-dft:FunctionApp:
FunctionAppServicePlan: asp-dft-weeu-ingest-dev-02
FunctionApps:
- FunctionAppName: func-dft-weeu-ingest-dev-02
FunctionAppStorageAccount: strdftingestweeudev02
- FunctionAppName: func-dft-weeu-ingest-logging-dev-02
FunctionAppStorageAccount: strdftingestweeudev02
- FunctionAppName: func-dft-weeu-persist-dev-02
FunctionAppStorageAccount: strdftpersistweeudev2
rdpd-dft:StorageAccounts:
StorageAccounts:
- strdftassetsvcweeudev2
- strdftdevicevcweeudev2
- strdftdatavcweeudev2
- strdftuservcweeudev2
- strdftpersistweeudev2
rdpd-dft:FunctionAppServicePlans:
FunctionAppServicePlans:
- asp-dft-weeu-ingest-dev-02
- asp-dft-weeu-persist-dev-02
I have this config, but I need to be more precise regarding parameters(like storage account, service plan based on each env). Do I need to create a block per each function name? like this:
rdpd-dft:FunctionApp:func-dft-weeu-ingest-dev-02:
FunctionAppServicePlan: asp-dft-weeu-ingest-dev-02
FunctionAppName: func-dft-weeu-ingest-dev-02
gorgeous-pillow-81622
03/13/2023, 5:01 PMpulumi plugin install
.
When running pulumi plugin install
, it fails with:
error: [resource plugin azure-native-sdk-1.95.0] downloading from : failed to download plugin: azure-native-sdk-1.95.0: 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-azure-native-sdk-v1.95.0-darwin-arm64.tar.gz>
Which is expected as the plugin name is azure-native
, not azure-native-sdk
.
I had a look at Pulumi code, and if I'm not mistaken, the issue is the following one:
go list -m -json -mod=mod all
....
....
{
"Path": "<http://github.com/pulumi/pulumi-azure-native-sdk|github.com/pulumi/pulumi-azure-native-sdk>",
"Version": "v1.95.0",
"Time": "2023-02-13T15:33:12Z",
"Dir": "/Users/vincent.boulineau/Documents/Dev/Go/pkg/mod/github.com/pulumi/pulumi-azure-native-sdk@v1.95.0",
"GoMod": "/Users/vincent.boulineau/Documents/Dev/Go/pkg/mod/cache/download/github.com/pulumi/pulumi-azure-native-sdk/@v/v1.95.0.mod",
"GoVersion": "1.17"
}
{
"Path": "<http://github.com/pulumi/pulumi-azure-native-sdk/compute|github.com/pulumi/pulumi-azure-native-sdk/compute>",
"Version": "v1.95.0",
"Time": "2023-02-13T15:33:12Z",
"Dir": "/Users/vincent.boulineau/Documents/Dev/Go/pkg/mod/github.com/pulumi/pulumi-azure-native-sdk/compute@v1.95.0",
"GoMod": "/Users/vincent.boulineau/Documents/Dev/Go/pkg/mod/cache/download/github.com/pulumi/pulumi-azure-native-sdk/compute/@v/v1.95.0.mod",
"GoVersion": "1.17"
}
....
....
There's a pulumi-plugin.json
giving the name azure-native
at Go/pkg/mod/github.com/pulumi/pulumi-azure-native-sdk@v1.95.0/pulumi-plugin.json
But there isn't any at Go/pkg/mod/github.com/pulumi/pulumi-azure-native-sdk/compute@v1.95.0/pulumi-plugin.json
Hence, it returns azure-native-sdk
as a plugin name, which, in fact, does not exist
(Still the same with `1.97.0`: https://github.com/pulumi/pulumi-azure-native-sdk/tree/master/compute)
I believe the fix is to emit a pulumi-plugin.json
for all generated split package, which implies modifying this function: https://github.com/pulumi/pulumi-azure-native/blob/master/provider/cmd/pulumi-gen-azure-native/main.go#L257-L270
I can open a PR for that but I'd like to check that is the preferred way to fix, as I can also see some other ways to fix it.flaky-dusk-9423
03/14/2023, 1:02 PMgray-baker-98982
03/15/2023, 2:48 PMable-thailand-87943
03/15/2023, 2:52 PMbrainy-ocean-92780
03/15/2023, 10:26 PMmelodic-rain-98270
03/16/2023, 7:23 AMazure-native:web/v20181101:WebAppSlot (slotResource):
error: autorest/azure: Service returned an error. Status=<nil> <nil>
which is not helpful at all. The pulumi github issues with similar errors say to search the Azure logs for that resource, but the problem is that the resource does not exist on Azure since the creation failed.
The provisioning script for the WebAppSlot looks like this (TypeScript):
const slotResource = new web.v20181101.WebAppSlot(
"slotResource",
{
name: siteResource.name,
resourceGroupName: resourceGroupVar.name,
location: locationParam,
slot: pulumi.interpolate`${siteResource.name}-deployment`,
serverFarmId: appServicePlan?.name ?? serverFarmIdParam,
},
{
dependsOn: dependencies,
}
);
resourceGroupVar is used in the WebApp, so that works.
siteResource is the WebApp itself, and the resource exist. It is also added to the dependencies list (which WebAppSlot relies depends on).
locationParam is the same as for the WebApp.
slot is uncertain if it works or not. The intention is to dynamically create the slot naming based on the WebApp name.
serverFarmId is the same logic as for the WebApp.
Are there any "next steps" for troubleshooting this in a systematic or coherent way, that allows me to read the specific error message in more detail and work from there?bumpy-area-31683
03/17/2023, 5:45 AMp_vnet_gateway[vnet][p_gw_name] = azure_native.network.v20220901.VirtualNetworkGateway(p_gw_name,
active_active=active_active_mode,
enable_bgp=True,
enable_dns_forwarding=True,
enable_private_ip_address=True,
gateway_type="Vpn",
ip_configurations=[config for config in ip_config_data],
location=location,
resource_group_name=rg[vnet].id,
sku=azure_native.network.VirtualNetworkGatewaySkuArgs(
name=sku,
tier=sku,
),
virtual_network_gateway_name=p_gw_name,
vpn_type="RouteBased",
vpn_gateway_generation="Generation2",
tags=tags
)
azure-native:network/v20220901:VirtualNetworkGateway (system_test_west_us_2_vnet_1_brownfield_vnet_gw):
error: Code="Failed" Message="The async operation failed." AdditionalInfo=[{"message":"No HTTP resource was found that matches the request URI '<https://management.azure.com/subscriptions/1804e4de-f4f1-4306-a60a-b932d5e8d90b/resourceGroups/subscriptions/1804e4de-f4f1-4306-a60a-b932d5e8d90b/resourceGroups/system_test_west_us_2_vnet_1_westus2_rg517fbff6/providers/Microsoft.Network/virtualNetworkGateways/system_test_west_us_2_vnet_1_brownfield_vnet_gw?api-version=2022-09-01>'."}]
damp-honey-93158
03/20/2023, 8:16 PMlittle-apartment-30401
03/21/2023, 8:59 AMambitious-continent-10899
03/21/2023, 8:32 PMerror: accepts at most 1 arg(s), received 2
. According to Pulumi's documentation I should be able to pass more than one arg.ambitious-continent-10899
03/21/2023, 8:34 PMrapid-motherboard-85863
03/22/2023, 10:50 AMfresh-summer-65887
03/22/2023, 5:32 PMerror: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="Field ConditionSets must not be empty"
. I've no idea what ConsiditonSets
is; it certainly isn't a property of Application
. 😬
Any guidance on how to diagnose?
https://www.pulumi.com/registry/packages/azure-native/api-docs/security/application/thousands-electrician-8726
03/23/2023, 2:58 PMbroad-bird-85619
03/24/2023, 11:26 AMsparse-fountain-4597
03/27/2023, 8:11 AMVirtualNetworkLink
to be created for the private zone