important-flower-8259
08/04/2021, 12:05 AMIn order to delete the public IP, disassociate/detach the Public IP address from the resource.
run into this kind of issue a lot trying to delete/clean things up.miniature-leather-70472
08/04/2021, 10:48 AMSystem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.AggregateException: One or more errors occurred. (Status(StatusCode="Unknown", Detail="invocation of azure-nextgen:authorization/latest:getClientConfig returned an error: transport is closing", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1628073936.146857126","description":"Error received from peer ipv4:127.0.0.1:43909","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"invocation of azure-nextgen:authorization/latest:getClientConfig returned an error: transport is closing","grpc_status":2}"))
---> Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="invocation of azure-nextgen:authorization/latest:getClientConfig returned an error: transport is closing", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1628073936.146857126","description":"Error received from peer ipv4:127.0.0.1:43909","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"invocation of azure-nextgen:authorization/latest:getClientConfig returned an error: transport is closing","grpc_status":2}")
brave-winter-60074
08/04/2021, 11:29 AMbrave-winter-60074
08/04/2021, 11:31 AMmagnificent-bear-48902
08/05/2021, 9:03 AMbrave-planet-10645
08/11/2021, 10:07 AMancient-eve-13947
08/11/2021, 10:49 AMazure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request
I'm using the method with custom scripts (lots of reasons, I cannot change to the task).
For this I have the following Dockerfile
FROM <http://mcr.microsoft.com/dotnet/sdk:5.0|mcr.microsoft.com/dotnet/sdk:5.0> AS base
USER root
RUN apt-get update -y
RUN apt-get install -y
RUN curl -sL <https://deb.nodesource.com/setup_14.x> | bash -
RUN apt-get install -y nodejs
RUN npm i -g yarn
RUN curl -sL <https://aka.ms/InstallAzureCLIDeb> | bash
a `setupPulumi.sh`:
#!/bin/bash
# exit if a command returns a non-zero exit code and also print the commands and their args as they are executed
set -e -x
# Download and install pulumi
curl -fsSL <https://get.pulumi.com/> | bash
export PATH=$PATH:$HOME/.pulumi/bin
# Login into pulumi. This will require the PULUMI_ACCESS_TOKEN environment variable
pulumi login
and the following pipeline definition:
pool:
vmImage: 'ubuntu-latest'
container: 'justanoldman/devops:net5-nodejs14-yarn-azcli'
// ...
- task: Bash@3
displayName: Install pulumi
inputs:
workingDirectory: $(Build.SourcesDirectory)
targetType: inline
script: |
chmod +x ./Infrastructure/pipelines/*.sh
./Infrastructure/pipelines/setupPulumi.sh
env:
PULUMI_ACCESS_TOKEN: $(PulumiToken)
ARM_CLIENT_SECRET: $(DeploymentClientAppSecret)
ARM_SUBSCRIPTION_ID: $(DeploymentTargetSubscriptionId)
ARM_CLIENT_ID: $(DeploymentClientAppId)
ARM_TENANT_ID: $(DeploymentClientTenantId)
- task: CmdLine@2
displayName: Installing node packages
inputs:
workingDirectory: $(Build.SourcesDirectory)/Infrastructure/azureresources
script: |
yarn install
// ...
- task: CmdLine@2
displayName: Update Azure resources excluding B2C
inputs:
workingDirectory: $(Build.SourcesDirectory)/Infrastructure/azureresources
script: |
/home/vsts_azpcontainer/.pulumi/bin/pulumi up --yes --stack Development
env:
PULUMI_ACCESS_TOKEN: $(PulumiToken)
ARM_CLIENT_SECRET: $(DeploymentClientAppSecret)
ARM_SUBSCRIPTION_ID: $(DeploymentTargetSubscriptionId)
ARM_CLIENT_ID: $(DeploymentClientAppId)
ARM_TENANT_ID: $(DeploymentClientTenantId)
I'm using Typescript as the host language for Pulumi.
When I run the steps manually in the same docker image locally, I do not get this error.
Any idea, anyone?clean-alarm-24426
08/11/2021, 11:58 AMwitty-airport-81009
08/11/2021, 2:03 PMimportant-flower-8259
08/12/2021, 7:52 PMbrainy-ocean-92780
08/12/2021, 10:16 PMstraight-intern-77892
08/13/2021, 1:29 PMstraight-intern-77892
08/13/2021, 1:36 PMstraight-intern-77892
08/13/2021, 1:36 PMstraight-intern-77892
08/13/2021, 2:31 PMstraight-intern-77892
08/13/2021, 2:32 PMstraight-intern-77892
08/13/2021, 2:36 PMstraight-intern-77892
08/13/2021, 2:37 PMancient-eve-13947
08/16/2021, 5:07 PMRegistry
no longer has .adminUsername
or .adminPassword
properties.
and the other method - which would be preferable, anyway - with creating a service-principal and using that performs the role assignment like this:
const spAuth = new azure.authorization.Assignment("myauth", {
scope: registry.id,
roleDefinitionName: "acrpush",
principalId: sp.id,
});
but Assignment
has changed to RoleAssignment
and the later doesn't get a roleDefinitionName
, but a roleDefinitionId
. Yet there is no API to get a roleDefintionId by name or to list all role definitions so I could filter for the one with the matching name.ancient-eve-13947
08/17/2021, 2:43 PMadminUserEnabled
, but managed identities as described here?busy-house-95123
08/18/2021, 9:16 AMdatabase = azure_native.dbforpostgresql.Database(
"test-database",
server_name = "my-test-database",
charset="UTF8",
collation="English_United States.1252",
database_name="test_database",
resource_group_name=example_resource_group.name,
)
returns
Code="ResourceNotFound" Message="The Resource 'Microsoft.DBforPostgreSQL/servers/my-test-database' under resource group 'exampleresourcegroupda3e1ab3' was not found. For more details please go to <https://aka.ms/ARMResourceNotFoundFix>"
The resource group name is correct, so is the subscription id, tenant id, etc.enough-butcher-66045
08/19/2021, 4:46 AMenough-butcher-66045
08/19/2021, 5:05 AMbored-spoon-83710
08/24/2021, 8:45 AM<http://github.com/pulumi/pulumi-azure-native/sdk/go/azure/dbforpostgresql/v20210601preview|github.com/pulumi/pulumi-azure-native/sdk/go/azure/dbforpostgresql/v20210601preview>
to create a PostgreSQL Flexible server, but I can’t find how to create a database (like this Terraform resource https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/postgresql_flexible_server_database). Is it something that will be generated from the API like the rest of the resources or is it something that should be manually added (like for configuration in https://github.com/pulumi/pulumi-azure-native/pull/727)?cool-egg-852
08/25/2021, 4:49 PMproud-dusk-33872
08/26/2021, 10:22 AMbrave-winter-60074
08/26/2021, 10:47 AMimportant-holiday-25047
08/26/2021, 2:23 PMbored-dress-18202
08/26/2021, 7:42 PMbrainy-ocean-92780
08/26/2021, 8:05 PM