lively-whale-42645
05/17/2022, 9:06 AMmysterious-australia-14256
05/17/2022, 1:08 PMcrooked-stone-6532
05/20/2022, 5:42 AMdamp-honey-93158
05/23/2022, 5:11 AMdamp-honey-93158
05/23/2022, 5:12 AMdamp-honey-93158
05/23/2022, 5:12 AMprivate async Task<Output<string>> GetAcrPullRoleDefinitionId()
{
var configResult = await GetClientConfig.InvokeAsync();
return RoleHelper.ScopedRoleId(configResult.SubscriptionId, RoleHelper.AcrPullRoleDefinitionId);
}
worried-knife-31967
05/23/2022, 9:06 AMworried-knife-31967
05/23/2022, 1:52 PMworried-knife-31967
05/24/2022, 11:10 AMworried-knife-31967
05/24/2022, 11:10 AMcreamy-fall-88031
05/24/2022, 4:45 PMrough-helicopter-14190
05/25/2022, 3:39 PMpulumi up
. See code snippet below. Any help is greatly appreciated! 🎉
from pulumi_azure_native import web
container_app = web.ContainerApp("containerApp",
configuration=web.ConfigurationArgs(
ingress=web.IngressArgs(
external=True,
target_port=3000,
),
),
kind="containerApp",
kube_environment_id=managed_environment.id,
location="East US",
name="supacoda",
resource_group_name=resource_group.name,
template=web.TemplateArgs(
containers=[web.ContainerArgs(
image=f"{os.getenv('DOCKERHUB_USERNAME')}/image:latest",
name="supacoda",
)],
scale=web.ScaleArgs(
max_replicas=5,
min_replicas=1,
rules=[web.ScaleRuleArgs(
custom=web.CustomScaleRuleArgs(
metadata={
"concurrentRequests": "50",
},
type="http",
),
name="httpscalingrule",
)],
),
))
I get the following error even after following azure instructions here to enable the extension and register resources.
• I have looked everywhere and cannot find how to enable this api for the pulumi process.
• Running via the AZ CLI works
• By the way container apps is in preview but this feels more like an issue downstream with pulumi since I can set up container apps just fine via the CLI.
Diagnostics:
azure-native:web:ContainerApp (containerApp):
error: Code="NotFound" Message="ContainerApps APIs are not enabled." Details=[{"Message":"ContainerApps APIs are not enabled."},{"Code":"NotFound"},{"ErrorEntity":{"Code":"NotFound","ExtendedCode":"67003","Message":"ContainerApps APIs are not enabled.","MessageTemplate":"ContainerApps APIs are not enabled.","Parameters":[]}}]
rough-window-15889
05/25/2022, 8:07 PMlittle-library-54601
05/26/2022, 6:16 PMpulumi import
an Azure SQL Server. I'm following the docs at: https://www.pulumi.com/registry/packages/azure-native/api-docs/azuredata/sqlserver/
The example import there is:
pulumi import azure-native:azuredata:SqlServer testsqlserver /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration/sqlServers/testsqlserver
Note in particular the portion following /providers
.
In the Azure portal for the Azure SQL Server instance I'm trying to import, I can't find anything that includes Microsoft.AzureData
or anything following that. The closest I can find is the "Resource ID", which for me looks like:
/subscriptions/{subscription-guid}/resourceGroups/{rg-name}/providers/Microsoft.Sql/servers/{azure-sql-server-resource-name}
I could try to synthesize what's shown in the Pulumi docs example, but I don't now what value I should use (or where I would find it) for the example value testsqlregistration
.
Any guidance or suggestions?? Thanks.little-library-54601
05/27/2022, 2:39 PMrich-airplane-20830
06/01/2022, 1:06 PMagreeable-notebook-99278
06/06/2022, 8:45 PMabundant-florist-34275
06/07/2022, 12:24 PMaks = containerservice.ManagedCluster( ... )
and different nodepools by using ManagedClusterAgentPoolProfileArgs
.
Now Pulumi creates the different virtualmachine scale sets for us.
We also are setting
auto_upgrade_profile=ManagedClusterAutoUpgradeProfileArgs(upgrade_channel=UpgradeChannel.NODE_IMAGE)
which does`nt propagate an upgrade policy to the scaleset config.
Finally we want to activate the auto reimaging process via pulumi, which seems to be in this property:
pulumi_azure_native.compute.VirtualMachineScaleSetArgs.upgrade_policy
But in the end we do not find a way set it directly while creation or later.
Any Idea?
Thanks a lotcrooked-king-6351
06/08/2022, 11:16 AM{subscription-id}
?many-dress-54535
06/08/2022, 3:50 PMstatus code 400, {"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2020-11-01-preview' is invalid. The supported versions are "..<other api versions>.."
do I need to specify the version explicitly for that to work?few-diamond-68626
06/09/2022, 9:44 AMmost-mouse-38002
06/10/2022, 12:18 PMACCSGXDevicePlugin
/ confcom
addon when creating a cluster. Is it possible to define AKS addons that are not already defined by Pulumi?agreeable-notebook-99278
06/12/2022, 6:13 AM--no-wait
option in the azure CLI documentation, but on pulumis side there seems no such property available for StaticSiteCustomDomain
resource. Is there a way to add that?
// Linking custom domain to DNS zone
return new azure_native.web.StaticSiteCustomDomain(
tw.DOMAIN,
{
domainName: tw.DOMAIN,
name: staticWebAppName,
resourceGroupName: resourceGroupName,
validationMethod: "cname-delegation",
},
{
dependsOn: [systemDnsRecord],
},
straight-sunset-92336
06/13/2022, 12:06 PMconst defaultfunctionAppArgs = {
name: name,
resourceGroupName: args.resourcegroupname,
serverFarmId: args.WebAppPlanID,
kind: "functionapp,linux",
isDisabled: false,
linuxFxVersion: 'Python|3.9',
alwaysOn: true,
use32BitWorkerProcess: false,
siteConfig: {
appSettings: [
{
name: 'FUNCTIONS_WORKER_RUNTIME',
value: 'python'
},
{
name: 'FUNCTIONS_EXTENSION_VERSION',
value: '~4'
},
{
name: 'APPINSIGHTS_INSTRUMENTATIONKEY',
value: appinsightscomponent.instrumentationKey
},
{
name: 'AzureWebJobsStorage',
value: storageConnectionString
},
{
name: "WEBSITE_RUN_FROM_PACKAGE",
value: codeBlobUrl
},
{
name: 'WORKSPACE_ID',
value: args.wrkspaceid
},
]
},
};
const functionAppArgs = FunctionAppModifier ? FunctionAppModifier(defaultfunctionAppArgs) : defaultfunctionAppArgs;
const functionapp = new web.WebApp("Policycompliance-webapp", functionAppArgs, { deleteBeforeReplace: true });
gentle-camera-53119
06/13/2022, 1:45 PMerror CS0234: The type or namespace name 'AzureAD' does not exist in the namespace 'Pulumi' (are you missing an assembly reference?) [/Users/XXXXX/XXX/pulumi/cazure/cazure.csproj
most-mouse-38002
06/13/2022, 1:55 PMpowerful-printer-57241
06/15/2022, 3:16 PMclever-address-74879
06/15/2022, 8:52 PMError: code: 255
...
error: building auth config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'
auth method - instructions for which can be found here: <https://www.pulumi.com/docs/intro/cloud-providers/azure/setup/#service-principal-authentication>
Alternatively you can authenticate using the Azure CLI by using a User Account.
I ran this last week and everything worked. Now It's just impossible to get through. I noticed the pulumi cli got bumped a patch version since last week, but I tried to downgrade and that also did nothing. Does anyone have an idea what's going on?clever-address-74879
06/15/2022, 8:55 PMprehistoric-plumber-4881
06/16/2022, 5:30 PMprehistoric-plumber-4881
06/16/2022, 5:30 PMclever-address-74879
06/16/2022, 7:36 PMdamp-honey-93158
06/18/2022, 7:13 PMclever-address-74879
06/19/2022, 6:35 PMprehistoric-plumber-4881
06/19/2022, 6:40 PMclever-address-74879
06/19/2022, 6:41 PMazure-native:resources:ResourceGroup rg-app-test error: building auth config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
prehistoric-plumber-4881
06/19/2022, 6:42 PMclever-address-74879
06/19/2022, 6:44 PMDeployment.RunAsync<BigDayStack>();
This does not work await Pulumi.Deployment.RunAsync(() => { ... });