echoing-state-25190
04/15/2025, 12:45 PMechoing-state-25190
04/15/2025, 12:47 PMpulumi import 'azure-native:resources:Resource' myresource1 /subscriptions/xxx-yyyy-zzz/resourceGroups/rg1/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/db1/roles/role1
azure-native:resources:Resource (myresource1):
error: Preview failed: Status=400 Code="NoRegisteredProviderFound" Message="No registered resource provider found for location 'swedencentral' and API version '2024-03-01' for type 'serverGroupsv2'.
And when I tried to use the create using:
var role = new Pulumi.AzureNative.Resources.Resource("role-1", new()
{
ResourceGroupName = "rg1",
ResourceProviderNamespace = "Microsoft.DBforPostgreSQL",
ResourceType = "roles",
ApiVersion = "2022-11-08",
ParentResourcePath = Output.Format($"serverGroupsv2/db1"),
Properties = new Dictionary<string, object?>
{
["password"] = password,
["clusterName"] = db1,
["resourceGroupName"] = rg1,
["roleName"] = username,
},
});
I get:
error: cannot check existence of resource '/subscriptions/xxx-yyyy-zzz/resourceGroups/rg1/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/db1/roles/role1': status code 400, {"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'swedencentral' and API version '2024-03-01' for type 'serverGroupsv2'.
Do anyone know how to solve this issue? I do not want to the "Local packages" solution
Using
azure native 3.1.0
pulumi version v3.162.0echoing-state-25190
04/15/2025, 12:50 PMRole already exists. Create/Update operations are not supported for an existing AzureAD role.
• Introduction of two new required input variables to the ServerGroupRoleArgs compared to the old _RoleArgs_: objectId and principalType. First they have no documentation in the Pulumi docs. If they are specified as empty strings we get that "`AzureAD Authentication is not enabled for this server.`" and since ServerGroupCluster AuthConfig does not seem to work we are not able to enable AAD Authentication for the cluster.tall-librarian-49374
04/15/2025, 3:45 PM2024-03-01
is coming from?echoing-state-25190
04/16/2025, 5:20 AMtall-librarian-49374
04/16/2025, 9:00 AMechoing-state-25190
04/16/2025, 9:03 AM