Hi Trying to assign a new role to anything in Azu...
# golang
b
Hi Trying to assign a new role to anything in Azure using Authorization.NewRoleAssignment() gives me this error: error: cannot check existence of resource '/%2Fsubscriptions/ssss/FresourceGroups%2Fxxxx%2FprovidersMicrosoft.Network%2FvirtualNetworks%2Fxxxx%2Fsubnets%2Fyyyy/providers/Microsoft.Authorization/roleAssignments/4d97b98b-1d4f-4787-a291-c67834d212e7': status code 400, {"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2020-08-01-preview' is invalid. The supported versions are '2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."}} I've tried the other versions in the Go SDK but the problem is that many of them don't have the NewRoleAssignment func at all and the ones that do, don't work either roleAssign, err := authorization.NewRoleAssignment(m.ctx, name, &authorization.RoleAssignmentArgs{     PrincipalId:                        m.Identity.PrincipalId,     DelegatedManagedIdentityResourceId: pulumi.String(m.Id),     RoleAssignmentName:                 pulumi.String(networkContributorRole.RoleAssignmentName),     RoleDefinitionId:                   pulumi.String(networkContributorRole.RoleDefinitionId),     Scope:                              pulumi.String(scope),   })