glamorous-helmet-50600
05/21/2021, 8:08 PMglamorous-helmet-50600
05/21/2021, 8:09 PMjolly-stone-87333
05/22/2021, 11:59 AMvar exampleBlob = new Azure.Storage.Blob("blob-" + name, new Azure.Storage.BlobArgs
{
StorageAccountName = storageAccount.Name,
StorageContainerName = container.Name,
Type = "Block",
Source = new FileAsset(file),
}, new CustomResourceOptions() { Parent = this, DependsOn = new InputList<Resource>() { container, storageAccount } });
var exampleDatabase = new Azure.Sql.Database( name, new Azure.Sql.DatabaseArgs
{
MaxSizeGb = size.MaxSize,
Edition = size.Edition,
RequestedServiceObjectiveName = size.ServiceObjectiveLevel,
ResourceGroupName = ResourceGroup.Name,
ServerName = sqlServer.Name,
Import = new DatabaseImportArgs()
{
AdministratorLogin = username,
AdministratorLoginPassword = password,
AuthenticationType = "SQL",
StorageKey = storageAccount.PrimaryAccessKey,
StorageKeyType = "StorageAccessKey",
OperationMode = "Import",
StorageUri = exampleBlob.Url
},
Collation = DatabaseCollation
}, new CustomResourceOptions() { Parent = this, DependsOn = new InputList<Resource>() { sqlServer, storageAccount, exampleBlob } });
return Output.All(sqlServer.Name, exampleDatabase.Name, password).Apply(f=> $"Data Source={f[0]}.<http://database.windows.net;Initial|database.windows.net;Initial> Catalog={f[1]};User ID={username};Password={f[2]};");
billowy-vr-96461
05/23/2021, 5:12 AMfreezing-memory-87554
05/24/2021, 12:50 PMacceptable-printer-2467
05/25/2021, 7:31 PMglamorous-helmet-50600
05/25/2021, 9:46 PMIndexingPolicy = new AzureNative.DocumentDB.Inputs.IndexingPolicyArgs
{
Automatic = true,
ExcludedPaths = {},
IncludedPaths =
{
new AzureNative.DocumentDB.Inputs.IncludedPathArgs
{
Indexes =
{
new AzureNative.DocumentDB.Inputs.IndexesArgs
{
DataType = "String",
Kind = "Range",
Precision = -1,
},
new AzureNative.DocumentDB.Inputs.IndexesArgs
{
DataType = "Number",
Kind = "Range",
Precision = -1,
},
new AzureNative.DocumentDB.Inputs.IndexesArgs {
Kind = "Spatial",
DataType = "Point"
}
},
Path = "/*",
},
},
IndexingMode = "consistent",
},
It's as per documentation, but when I check the container via the portal this is the indexing policy:
{
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/*"
}
],
"excludedPaths": [
{
"path": "/\"_etag\"/?"
}
],
"spatialIndexes": [
{
"path": "/*",
"types": [
"Point",
"LineString",
"Polygon",
"MultiPolygon"
]
}
]
}
Any clues?bright-shampoo-60925
05/27/2021, 12:31 AMpowerful-printer-57241
05/27/2021, 9:16 AMpulumi preview --json
manually in a PowerShell script, parse the JSON output and act on whether there are any modifications.better-shampoo-48884
05/27/2021, 9:51 AMconst aksIngresssManagedIdentity = await azure.managedidentity.getUserAssignedIdentity({...stuff...})
What happens when the identity I'm trying to get does not exist?
Basically I'm trying to simplify some rules, and I'd like to conditionally link the ingress managed identity with AKS if and only if it exists (obviously). But I'm unsure of what the result of aksIngressManagedIdentity would be when it cannot find the identity that i'm looking for - so not sure what conditional I could use when it fails the lookup.
edit: or would this be a good case for a try { } catch { } type thing?gorgeous-country-43026
05/27/2021, 10:15 AMazure.network.PublicIPAddress
to populate in such a way that it will always have the IP address available under ipAddress
property? It's type signature in TS is Output<string | undefined>
which I'm assuming is due to the fact that this output won't wait until it has got the IP address?billowy-vr-96461
05/27/2021, 7:01 PMlistNamespaceKeys
(from Service Bus) to wait for the service bus resource's creation and resource group first?rough-tomato-98795
06/01/2021, 8:52 AMsquare-eye-69977
06/01/2021, 1:39 PMrough-truck-68200
06/02/2021, 6:59 AMsoft deleted
state for Computer Vision resources, and need to manually purge the resource before running pulumi (the resource was previously created and deleted with pulumi), is anyone aware of it? and if so, any property I need to use or known workaround?
error: creating Cognitive Services Account. cognitiveservices.AccountsClient#Create: Failure sending request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="FlagMustBeSetForRestore" Message="An existing resource with ID '{resource id here}' has been soft-deleted. To restore the resource, you must specify 'restore' to be 'true' in the property. If you don't want to restore existing resource, please purge it first."
any help is appreciated
thanks!careful-river-95363
06/02/2021, 10:09 AMminiature-leather-70472
06/02/2021, 10:54 AMnew Authorization.RoleAssignment($"{name}-aks-subnet-aci-role", new Authorization.RoleAssignmentArgs
{
RoleAssignmentName = new RandomUuid($"{name}-Network-Contributor-Aci-Uuid").Result,
Scope = args.ResourceGroupId,
PrincipalId = aks.AddonProfiles.Apply(profiles => profiles!["AciConnectorLinux"].Identity.ObjectId),
RoleDefinitionId = roleDefinitionId,
PrincipalType = Authorization.PrincipalType.ServicePrincipal
}
Pulumi preview is failing on this line:
PrincipalId = aks.AddonProfiles.Apply(profiles => profiles!["AciConnectorLinux"].Identity.ObjectId),
With this error:
System.NullReferenceException: Object reference not set to an instance of an object.
`at Ict.AzureNative.Containers.IctAzureKubernetesCluster.<>c.<.ctor>b__32_7(ImmutableDictionary`2 profiles) in C:\repos\ict-azure-native\src\ict-azure-native\Containers\IctAzureKubernetesCluster.cs:line 254`
Given that this identity is not known until the cluster is created, it is expected to be empty in the initial preview, so why is it trying to work it out rather than waiting on AKS to create first?average-greece-53878
06/02/2021, 4:07 PMVirtualMachineRunCommandByVirtualMachine
and get this error:
Code="OperationNotAllowed" Message="The property 'runCommands' is not valid because the 'Microsoft.Compute/RunCommandPreview' feature is not enabled for this subscription."
average-greece-53878
06/02/2021, 4:07 PMelegant-stone-54832
06/02/2021, 6:54 PMpurple-quill-47375
06/03/2021, 3:26 PMminiature-leather-70472
06/04/2021, 8:44 AMautorest/azure: Service returned an error. Status=<nil> Code="AnotherOperationInProgress" Message="Another operation on this or dependent resource is in progress. To retrieve status of the operation use uri: <https://management.azure.com/subscriptions/892b688f-5e61-4b53-9091-e0ed72aef7a8/providers/Microsoft.Network/locations/westeurope/operations/6d9c24a9-c3f6-4e72-8193-bb618cc9b502?api-version=2020-11-01>." Details=[]
prehistoric-kite-30979
06/04/2021, 6:01 PMbusy-sugar-35016
06/07/2021, 9:05 AMazure_native.eventhub.list_namespace_keys
or azure_native.storage.list_storage_account_keys
. Basically, I want to provision two Azure resources A and B lying in the same Pulumi stack, whereby resource B needs a key value from resource A as a setting property. Thus, I call e.g. list_namespace_keys in the code of resource B and mention the dependency on resource A through opts
.
Nevertheless, pulumi up
immediately fails with the error "invoke of azure-native:eventhub:listNamespaceKeys failed" and "Can not perform requested operation on nested resource. Parent resource 'udp-dev-eventhub-media' not found".
It seems to me that those functions ignore the given dependencies completely and expect the respective resources to exist already. Do you have a working example of how to use those functions correctly?wet-noon-14291
06/07/2021, 9:17 PMenough-butcher-66045
06/08/2021, 5:36 AMenough-butcher-66045
06/08/2021, 5:40 AMwet-noon-14291
06/08/2021, 11:15 AMdeleteBeforeReplace
set to true). I also can't configure azure ad app in "spa mode".red-flower-2343
06/08/2021, 6:04 PMerror: Code="InvalidRequestFormat" Message="Cannot parse the request." Details=[]
using N = Pulumi.AzureNative.Network;
using NI = Pulumi.AzureNative.Network.Inputs;
var privateEndpoint = new N.PrivateEndpoint("privateEndpoint", new N.PrivateEndpointArgs
{
Location = location,
ManualPrivateLinkServiceConnections =
{
new NI.PrivateLinkServiceConnectionArgs
{
GroupIds =
{
"sites",
},
PrivateLinkServiceId = apiAppService.Id,
RequestMessage = "Please manually approve my connection.",
},
},
PrivateEndpointName = "Pulumi-PEP",
ResourceGroupName = platformResourceGroupName,
Subnet = new NI.SubnetArgs{
Id = subnetApps01.Id,
},
});
Any help much appreciated.lemon-garage-82195
06/09/2021, 9:09 AMpulumi up
gives us the expect output, and the resources exist within Azure, however, we've noticed that running the pipeline again pulumi tries to delete a subnet even though there have been no changes made to the config of that subnet. Has anyone experienced a similar issue?lemon-garage-82195
06/09/2021, 9:09 AMpulumi up
gives us the expect output, and the resources exist within Azure, however, we've noticed that running the pipeline again pulumi tries to delete a subnet even though there have been no changes made to the config of that subnet. Has anyone experienced a similar issue?tall-librarian-49374
06/09/2021, 9:30 AMbrave-planet-10645
06/09/2021, 9:30 AM