From 9a1cf214e2836a6dfc66e2ef8deae9a258e9e6bd Mon Sep 17 00:00:00 2001
From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com>
Date: Thu, 28 Jan 2021 08:01:02 -0800
Subject: [PATCH] Upgrade to v2.18.0 of pulumi-terraform-bridge (#140)
---
CHANGELOG.md | 2 +-
.../cmd/pulumi-resource-azuread/schema.json | 38 ++---
provider/go.mod | 4 +-
provider/go.sum | 22 +--
provider/resources.go | 12 ++
sdk/dotnet/Application.cs | 1 +
sdk/dotnet/ApplicationAppRole.cs | 1 +
sdk/dotnet/ApplicationCertificate.cs | 1 +
sdk/dotnet/ApplicationOAuth2Permission.cs | 1 +
sdk/dotnet/ApplicationPassword.cs | 1 +
sdk/dotnet/Group.cs | 1 +
sdk/dotnet/GroupMember.cs | 1 +
sdk/dotnet/Provider.cs | 1 +
sdk/dotnet/ServicePrincipal.cs | 1 +
sdk/dotnet/ServicePrincipalCertificate.cs | 1 +
sdk/dotnet/ServicePrincipalPassword.cs | 1 +
sdk/dotnet/User.cs | 1 +
sdk/dotnet/Utilities.cs | 7 +
sdk/go.mod | 2 +-
sdk/go/azuread/application.go | 11 +-
sdk/go/azuread/applicationAppRole.go | 12 +-
sdk/go/azuread/applicationCertificate.go | 10 +-
sdk/go/azuread/applicationOAuth2Permission.go | 12 +-
sdk/go/azuread/applicationPassword.go | 12 +-
sdk/go/azuread/config/pulumiUtilities.go | 19 +++
sdk/go/azuread/getApplication.go | 1 +
sdk/go/azuread/getClientConfig.go | 2 +-
sdk/go/azuread/getDomains.go | 1 +
sdk/go/azuread/getGroup.go | 1 +
sdk/go/azuread/getGroups.go | 1 +
sdk/go/azuread/getServicePrincipal.go | 3 +
sdk/go/azuread/getUser.go | 1 +
sdk/go/azuread/getUsers.go | 1 +
sdk/go/azuread/group.go | 14 +-
sdk/go/azuread/groupMember.go | 11 +-
sdk/go/azuread/init.go | 132 ++++++++++++++++++
sdk/go/azuread/provider.go | 10 +-
sdk/go/azuread/pulumiUtilities.go | 19 +++
sdk/go/azuread/servicePrincipal.go | 12 +-
sdk/go/azuread/servicePrincipalCertificate.go | 10 +-
sdk/go/azuread/servicePrincipalPassword.go | 12 +-
sdk/go/azuread/user.go | 12 +-
sdk/python/setup.py | 2 +-
43 files changed, 314 insertions(+), 106 deletions(-)
create mode 100644 sdk/go/azuread/init.go
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66e659fb7..8c1d73d7f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@ CHANGELOG
=========
## HEAD (Unreleased)
-_(none)_
+* Upgrading pulumi-terraform-bridge to v2.18.1
---
diff --git a/provider/cmd/pulumi-resource-azuread/schema.json b/provider/cmd/pulumi-resource-azuread/schema.json
index c4f65d095..b23f2a268 100644
--- a/provider/cmd/pulumi-resource-azuread/schema.json
+++ b/provider/cmd/pulumi-resource-azuread/schema.json
@@ -1420,7 +1420,7 @@
},
"resources": {
"azuread:index/application:Application": {
- "description": "Manages an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write owned by applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Application(\"example\", {\n appRoles: [{\n allowedMemberTypes: [\n \"User\",\n \"Application\",\n ],\n description: \"Admins can manage roles and perform all task actions\",\n displayName: \"Admin\",\n isEnabled: true,\n value: \"Admin\",\n }],\n availableToOtherTenants: false,\n displayName: \"example\",\n homepage: \"https://homepage\",\n identifierUris: [\"https://uri\"],\n oauth2AllowImplicitFlow: true,\n oauth2Permissions: [\n {\n adminConsentDescription: \"Allow the application to access example on behalf of the signed-in user.\",\n adminConsentDisplayName: \"Access example\",\n isEnabled: true,\n type: \"User\",\n userConsentDescription: \"Allow the application to access example on your behalf.\",\n userConsentDisplayName: \"Access example\",\n value: \"user_impersonation\",\n },\n {\n adminConsentDescription: \"Administer the example application\",\n adminConsentDisplayName: \"Administer\",\n isEnabled: true,\n type: \"Admin\",\n value: \"administer\",\n },\n ],\n optionalClaims: {\n accessTokens: [\n {\n name: \"myclaim\",\n },\n {\n name: \"otherclaim\",\n },\n ],\n idTokens: [{\n additionalProperties: [\"emit_as_roles\"],\n essential: true,\n name: \"userclaim\",\n source: \"user\",\n }],\n },\n owners: [\"00000004-0000-0000-c000-000000000000\"],\n replyUrls: [\"https://replyurl\"],\n requiredResourceAccesses: [\n {\n resourceAccesses: [\n {\n id: \"...\",\n type: \"Role\",\n },\n {\n id: \"...\",\n type: \"Scope\",\n },\n {\n id: \"...\",\n type: \"Scope\",\n },\n ],\n resourceAppId: \"00000003-0000-0000-c000-000000000000\",\n },\n {\n resourceAccesses: [{\n id: \"...\",\n type: \"Scope\",\n }],\n resourceAppId: \"00000002-0000-0000-c000-000000000000\",\n },\n ],\n type: \"webapp/api\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Application(\"example\",\n app_roles=[azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\n \"User\",\n \"Application\",\n ],\n description=\"Admins can manage roles and perform all task actions\",\n display_name=\"Admin\",\n is_enabled=True,\n value=\"Admin\",\n )],\n available_to_other_tenants=False,\n display_name=\"example\",\n homepage=\"https://homepage\",\n identifier_uris=[\"https://uri\"],\n oauth2_allow_implicit_flow=True,\n oauth2_permissions=[\n azuread.ApplicationOauth2PermissionArgs(\n admin_consent_description=\"Allow the application to access example on behalf of the signed-in user.\",\n admin_consent_display_name=\"Access example\",\n is_enabled=True,\n type=\"User\",\n user_consent_description=\"Allow the application to access example on your behalf.\",\n user_consent_display_name=\"Access example\",\n value=\"user_impersonation\",\n ),\n azuread.ApplicationOauth2PermissionArgs(\n admin_consent_description=\"Administer the example application\",\n admin_consent_display_name=\"Administer\",\n is_enabled=True,\n type=\"Admin\",\n value=\"administer\",\n ),\n ],\n optional_claims=azuread.ApplicationOptionalClaimsArgs(\n access_tokens=[\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"myclaim\",\n ),\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"otherclaim\",\n ),\n ],\n id_tokens=[azuread.ApplicationOptionalClaimsIdTokenArgs(\n additional_properties=[\"emit_as_roles\"],\n essential=True,\n name=\"userclaim\",\n source=\"user\",\n )],\n ),\n owners=[\"00000004-0000-0000-c000-000000000000\"],\n reply_urls=[\"https://replyurl\"],\n required_resource_accesses=[\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Role\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Scope\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Scope\",\n ),\n ],\n resource_app_id=\"00000003-0000-0000-c000-000000000000\",\n ),\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_accesses=[azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Scope\",\n )],\n resource_app_id=\"00000002-0000-0000-c000-000000000000\",\n ),\n ],\n type=\"webapp/api\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.Application(\"example\", new AzureAD.ApplicationArgs\n {\n AppRoles = \n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = \n {\n \"User\",\n \"Application\",\n },\n Description = \"Admins can manage roles and perform all task actions\",\n DisplayName = \"Admin\",\n IsEnabled = true,\n Value = \"Admin\",\n },\n },\n AvailableToOtherTenants = false,\n DisplayName = \"example\",\n Homepage = \"https://homepage\",\n IdentifierUris = \n {\n \"https://uri\",\n },\n Oauth2AllowImplicitFlow = true,\n Oauth2Permissions = \n {\n new AzureAD.Inputs.ApplicationOauth2PermissionArgs\n {\n AdminConsentDescription = \"Allow the application to access example on behalf of the signed-in user.\",\n AdminConsentDisplayName = \"Access example\",\n IsEnabled = true,\n Type = \"User\",\n UserConsentDescription = \"Allow the application to access example on your behalf.\",\n UserConsentDisplayName = \"Access example\",\n Value = \"user_impersonation\",\n },\n new AzureAD.Inputs.ApplicationOauth2PermissionArgs\n {\n AdminConsentDescription = \"Administer the example application\",\n AdminConsentDisplayName = \"Administer\",\n IsEnabled = true,\n Type = \"Admin\",\n Value = \"administer\",\n },\n },\n OptionalClaims = new AzureAD.Inputs.ApplicationOptionalClaimsArgs\n {\n AccessTokens = \n {\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"myclaim\",\n },\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"otherclaim\",\n },\n },\n IdTokens = \n {\n new AzureAD.Inputs.ApplicationOptionalClaimsIdTokenArgs\n {\n AdditionalProperties = \n {\n \"emit_as_roles\",\n },\n Essential = true,\n Name = \"userclaim\",\n Source = \"user\",\n },\n },\n },\n Owners = \n {\n \"00000004-0000-0000-c000-000000000000\",\n },\n ReplyUrls = \n {\n \"https://replyurl\",\n },\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Scope\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Scope\",\n },\n },\n ResourceAppId = \"00000003-0000-0000-c000-000000000000\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Scope\",\n },\n },\n ResourceAppId = \"00000002-0000-0000-c000-000000000000\",\n },\n },\n Type = \"webapp/api\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.NewApplication(ctx, \"example\", \u0026azuread.ApplicationArgs{\n\t\t\tAppRoles: azuread.ApplicationAppRoleArray{\n\t\t\t\t\u0026azuread.ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Admins can manage roles and perform all task actions\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\t\t\tValue: pulumi.String(\"Admin\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAvailableToOtherTenants: pulumi.Bool(false),\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tHomepage: pulumi.String(\"https://homepage\"),\n\t\t\tIdentifierUris: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://uri\"),\n\t\t\t},\n\t\t\tOauth2AllowImplicitFlow: pulumi.Bool(true),\n\t\t\tOauth2Permissions: azuread.ApplicationOauth2PermissionArray{\n\t\t\t\t\u0026azuread.ApplicationOauth2PermissionArgs{\n\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Allow the application to access example on behalf of the signed-in user.\"),\n\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\t\t\tType: pulumi.String(\"User\"),\n\t\t\t\t\tUserConsentDescription: pulumi.String(\"Allow the application to access example on your behalf.\"),\n\t\t\t\t\tUserConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\tValue: pulumi.String(\"user_impersonation\"),\n\t\t\t\t},\n\t\t\t\t\u0026azuread.ApplicationOauth2PermissionArgs{\n\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Administer the example application\"),\n\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\t\t\tType: pulumi.String(\"Admin\"),\n\t\t\t\t\tValue: pulumi.String(\"administer\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tOptionalClaims: \u0026azuread.ApplicationOptionalClaimsArgs{\n\t\t\t\tAccessTokens: azuread.ApplicationOptionalClaimsAccessTokenArray{\n\t\t\t\t\t\u0026azuread.ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"myclaim\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026azuread.ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"otherclaim\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tIdTokens: azuread.ApplicationOptionalClaimsIdTokenArray{\n\t\t\t\t\t\u0026azuread.ApplicationOptionalClaimsIdTokenArgs{\n\t\t\t\t\t\tAdditionalProperties: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"emit_as_roles\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tEssential: pulumi.Bool(true),\n\t\t\t\t\t\tName: pulumi.String(\"userclaim\"),\n\t\t\t\t\t\tSource: pulumi.String(\"user\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"00000004-0000-0000-c000-000000000000\"),\n\t\t\t},\n\t\t\tReplyUrls: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://replyurl\"),\n\t\t\t},\n\t\t\tRequiredResourceAccesses: azuread.ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAccesses: azuread.ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tResourceAppId: pulumi.String(\"00000003-0000-0000-c000-000000000000\"),\n\t\t\t\t},\n\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAccesses: azuread.ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tResourceAppId: pulumi.String(\"00000002-0000-0000-c000-000000000000\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tType: pulumi.String(\"webapp/api\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Applications can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000\n```\n\n ",
+ "description": "Manages an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write owned by applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Application(\"example\", {\n appRoles: [{\n allowedMemberTypes: [\n \"User\",\n \"Application\",\n ],\n description: \"Admins can manage roles and perform all task actions\",\n displayName: \"Admin\",\n isEnabled: true,\n value: \"Admin\",\n }],\n availableToOtherTenants: false,\n displayName: \"example\",\n homepage: \"https://homepage\",\n identifierUris: [\"https://uri\"],\n oauth2AllowImplicitFlow: true,\n oauth2Permissions: [\n {\n adminConsentDescription: \"Allow the application to access example on behalf of the signed-in user.\",\n adminConsentDisplayName: \"Access example\",\n isEnabled: true,\n type: \"User\",\n userConsentDescription: \"Allow the application to access example on your behalf.\",\n userConsentDisplayName: \"Access example\",\n value: \"user_impersonation\",\n },\n {\n adminConsentDescription: \"Administer the example application\",\n adminConsentDisplayName: \"Administer\",\n isEnabled: true,\n type: \"Admin\",\n value: \"administer\",\n },\n ],\n optionalClaims: {\n accessTokens: [\n {\n name: \"myclaim\",\n },\n {\n name: \"otherclaim\",\n },\n ],\n idTokens: [{\n additionalProperties: [\"emit_as_roles\"],\n essential: true,\n name: \"userclaim\",\n source: \"user\",\n }],\n },\n owners: [\"00000004-0000-0000-c000-000000000000\"],\n replyUrls: [\"https://replyurl\"],\n requiredResourceAccesses: [\n {\n resourceAccesses: [\n {\n id: \"...\",\n type: \"Role\",\n },\n {\n id: \"...\",\n type: \"Scope\",\n },\n {\n id: \"...\",\n type: \"Scope\",\n },\n ],\n resourceAppId: \"00000003-0000-0000-c000-000000000000\",\n },\n {\n resourceAccesses: [{\n id: \"...\",\n type: \"Scope\",\n }],\n resourceAppId: \"00000002-0000-0000-c000-000000000000\",\n },\n ],\n type: \"webapp/api\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Application(\"example\",\n app_roles=[azuread.ApplicationAppRoleArgs(\n allowed_member_types=[\n \"User\",\n \"Application\",\n ],\n description=\"Admins can manage roles and perform all task actions\",\n display_name=\"Admin\",\n is_enabled=True,\n value=\"Admin\",\n )],\n available_to_other_tenants=False,\n display_name=\"example\",\n homepage=\"https://homepage\",\n identifier_uris=[\"https://uri\"],\n oauth2_allow_implicit_flow=True,\n oauth2_permissions=[\n azuread.ApplicationOauth2PermissionArgs(\n admin_consent_description=\"Allow the application to access example on behalf of the signed-in user.\",\n admin_consent_display_name=\"Access example\",\n is_enabled=True,\n type=\"User\",\n user_consent_description=\"Allow the application to access example on your behalf.\",\n user_consent_display_name=\"Access example\",\n value=\"user_impersonation\",\n ),\n azuread.ApplicationOauth2PermissionArgs(\n admin_consent_description=\"Administer the example application\",\n admin_consent_display_name=\"Administer\",\n is_enabled=True,\n type=\"Admin\",\n value=\"administer\",\n ),\n ],\n optional_claims=azuread.ApplicationOptionalClaimsArgs(\n access_tokens=[\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"myclaim\",\n ),\n azuread.ApplicationOptionalClaimsAccessTokenArgs(\n name=\"otherclaim\",\n ),\n ],\n id_tokens=[azuread.ApplicationOptionalClaimsIdTokenArgs(\n additional_properties=[\"emit_as_roles\"],\n essential=True,\n name=\"userclaim\",\n source=\"user\",\n )],\n ),\n owners=[\"00000004-0000-0000-c000-000000000000\"],\n reply_urls=[\"https://replyurl\"],\n required_resource_accesses=[\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_accesses=[\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Role\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Scope\",\n ),\n azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Scope\",\n ),\n ],\n resource_app_id=\"00000003-0000-0000-c000-000000000000\",\n ),\n azuread.ApplicationRequiredResourceAccessArgs(\n resource_accesses=[azuread.ApplicationRequiredResourceAccessResourceAccessArgs(\n id=\"...\",\n type=\"Scope\",\n )],\n resource_app_id=\"00000002-0000-0000-c000-000000000000\",\n ),\n ],\n type=\"webapp/api\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.Application(\"example\", new AzureAD.ApplicationArgs\n {\n AppRoles = \n {\n new AzureAD.Inputs.ApplicationAppRoleArgs\n {\n AllowedMemberTypes = \n {\n \"User\",\n \"Application\",\n },\n Description = \"Admins can manage roles and perform all task actions\",\n DisplayName = \"Admin\",\n IsEnabled = true,\n Value = \"Admin\",\n },\n },\n AvailableToOtherTenants = false,\n DisplayName = \"example\",\n Homepage = \"https://homepage\",\n IdentifierUris = \n {\n \"https://uri\",\n },\n Oauth2AllowImplicitFlow = true,\n Oauth2Permissions = \n {\n new AzureAD.Inputs.ApplicationOauth2PermissionArgs\n {\n AdminConsentDescription = \"Allow the application to access example on behalf of the signed-in user.\",\n AdminConsentDisplayName = \"Access example\",\n IsEnabled = true,\n Type = \"User\",\n UserConsentDescription = \"Allow the application to access example on your behalf.\",\n UserConsentDisplayName = \"Access example\",\n Value = \"user_impersonation\",\n },\n new AzureAD.Inputs.ApplicationOauth2PermissionArgs\n {\n AdminConsentDescription = \"Administer the example application\",\n AdminConsentDisplayName = \"Administer\",\n IsEnabled = true,\n Type = \"Admin\",\n Value = \"administer\",\n },\n },\n OptionalClaims = new AzureAD.Inputs.ApplicationOptionalClaimsArgs\n {\n AccessTokens = \n {\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"myclaim\",\n },\n new AzureAD.Inputs.ApplicationOptionalClaimsAccessTokenArgs\n {\n Name = \"otherclaim\",\n },\n },\n IdTokens = \n {\n new AzureAD.Inputs.ApplicationOptionalClaimsIdTokenArgs\n {\n AdditionalProperties = \n {\n \"emit_as_roles\",\n },\n Essential = true,\n Name = \"userclaim\",\n Source = \"user\",\n },\n },\n },\n Owners = \n {\n \"00000004-0000-0000-c000-000000000000\",\n },\n ReplyUrls = \n {\n \"https://replyurl\",\n },\n RequiredResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Role\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Scope\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Scope\",\n },\n },\n ResourceAppId = \"00000003-0000-0000-c000-000000000000\",\n },\n new AzureAD.Inputs.ApplicationRequiredResourceAccessArgs\n {\n ResourceAccesses = \n {\n new AzureAD.Inputs.ApplicationRequiredResourceAccessResourceAccessArgs\n {\n Id = \"...\",\n Type = \"Scope\",\n },\n },\n ResourceAppId = \"00000002-0000-0000-c000-000000000000\",\n },\n },\n Type = \"webapp/api\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.NewApplication(ctx, \"example\", \u0026azuread.ApplicationArgs{\n\t\t\tAppRoles: azuread.ApplicationAppRoleArray{\n\t\t\t\t\u0026azuread.ApplicationAppRoleArgs{\n\t\t\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"User\"),\n\t\t\t\t\t\tpulumi.String(\"Application\"),\n\t\t\t\t\t},\n\t\t\t\t\tDescription: pulumi.String(\"Admins can manage roles and perform all task actions\"),\n\t\t\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\t\t\tValue: pulumi.String(\"Admin\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAvailableToOtherTenants: pulumi.Bool(false),\n\t\t\tDisplayName: pulumi.String(\"example\"),\n\t\t\tHomepage: pulumi.String(\"https://homepage\"),\n\t\t\tIdentifierUris: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://uri\"),\n\t\t\t},\n\t\t\tOauth2AllowImplicitFlow: pulumi.Bool(true),\n\t\t\tOauth2Permissions: azuread.ApplicationOauth2PermissionArray{\n\t\t\t\t\u0026azuread.ApplicationOauth2PermissionArgs{\n\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Allow the application to access example on behalf of the signed-in user.\"),\n\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\t\t\tType: pulumi.String(\"User\"),\n\t\t\t\t\tUserConsentDescription: pulumi.String(\"Allow the application to access example on your behalf.\"),\n\t\t\t\t\tUserConsentDisplayName: pulumi.String(\"Access example\"),\n\t\t\t\t\tValue: pulumi.String(\"user_impersonation\"),\n\t\t\t\t},\n\t\t\t\t\u0026azuread.ApplicationOauth2PermissionArgs{\n\t\t\t\t\tAdminConsentDescription: pulumi.String(\"Administer the example application\"),\n\t\t\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\t\t\tType: pulumi.String(\"Admin\"),\n\t\t\t\t\tValue: pulumi.String(\"administer\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tOptionalClaims: \u0026azuread.ApplicationOptionalClaimsArgs{\n\t\t\t\tAccessTokens: azuread.ApplicationOptionalClaimsAccessTokenArray{\n\t\t\t\t\t\u0026azuread.ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"myclaim\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026azuread.ApplicationOptionalClaimsAccessTokenArgs{\n\t\t\t\t\t\tName: pulumi.String(\"otherclaim\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tIdTokens: azuread.ApplicationOptionalClaimsIdTokenArray{\n\t\t\t\t\t\u0026azuread.ApplicationOptionalClaimsIdTokenArgs{\n\t\t\t\t\t\tAdditionalProperties: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"emit_as_roles\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tEssential: pulumi.Bool(true),\n\t\t\t\t\t\tName: pulumi.String(\"userclaim\"),\n\t\t\t\t\t\tSource: pulumi.String(\"user\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOwners: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"00000004-0000-0000-c000-000000000000\"),\n\t\t\t},\n\t\t\tReplyUrls: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://replyurl\"),\n\t\t\t},\n\t\t\tRequiredResourceAccesses: azuread.ApplicationRequiredResourceAccessArray{\n\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAccesses: azuread.ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Role\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tResourceAppId: pulumi.String(\"00000003-0000-0000-c000-000000000000\"),\n\t\t\t\t},\n\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessArgs{\n\t\t\t\t\tResourceAccesses: azuread.ApplicationRequiredResourceAccessResourceAccessArray{\n\t\t\t\t\t\t\u0026azuread.ApplicationRequiredResourceAccessResourceAccessArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"...\"),\n\t\t\t\t\t\t\tType: pulumi.String(\"Scope\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tResourceAppId: pulumi.String(\"00000002-0000-0000-c000-000000000000\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tType: pulumi.String(\"webapp/api\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Applications can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000\n```\n\n ",
"properties": {
"appRoles": {
"type": "array",
@@ -1726,7 +1726,7 @@
}
},
"azuread:index/applicationAppRole:ApplicationAppRole": {
- "description": "Manages an App Role associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleApplicationAppRole = new azuread.ApplicationAppRole(\"exampleApplicationAppRole\", {\n applicationObjectId: exampleApplication.id,\n allowedMemberTypes: [\"User\"],\n description: \"Admins can manage roles and perform all task actions\",\n displayName: \"Admin\",\n isEnabled: true,\n value: \"administer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_application_app_role = azuread.ApplicationAppRole(\"exampleApplicationAppRole\",\n application_object_id=example_application.id,\n allowed_member_types=[\"User\"],\n description=\"Admins can manage roles and perform all task actions\",\n display_name=\"Admin\",\n is_enabled=True,\n value=\"administer\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleApplicationAppRole = new AzureAD.ApplicationAppRole(\"exampleApplicationAppRole\", new AzureAD.ApplicationAppRoleArgs\n {\n ApplicationObjectId = exampleApplication.Id,\n AllowedMemberTypes = \n {\n \"User\",\n },\n Description = \"Admins can manage roles and perform all task actions\",\n DisplayName = \"Admin\",\n IsEnabled = true,\n Value = \"administer\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationAppRole(ctx, \"exampleApplicationAppRole\", \u0026azuread.ApplicationAppRoleArgs{\n\t\t\tApplicationObjectId: exampleApplication.ID(),\n\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"User\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"Admins can manage roles and perform all task actions\"),\n\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\tValue: pulumi.String(\"administer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApp Roles can be imported using the `object id` of an Application and the `id` of the App Role, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationAppRole:ApplicationAppRole test 00000000-0000-0000-0000-000000000000/role/11111111-1111-1111-1111-111111111111\n```\n\n ",
+ "description": "Manages an App Role associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleApplicationAppRole = new azuread.ApplicationAppRole(\"exampleApplicationAppRole\", {\n applicationObjectId: exampleApplication.id,\n allowedMemberTypes: [\"User\"],\n description: \"Admins can manage roles and perform all task actions\",\n displayName: \"Admin\",\n isEnabled: true,\n value: \"administer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_application_app_role = azuread.ApplicationAppRole(\"exampleApplicationAppRole\",\n application_object_id=example_application.id,\n allowed_member_types=[\"User\"],\n description=\"Admins can manage roles and perform all task actions\",\n display_name=\"Admin\",\n is_enabled=True,\n value=\"administer\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleApplicationAppRole = new AzureAD.ApplicationAppRole(\"exampleApplicationAppRole\", new AzureAD.ApplicationAppRoleArgs\n {\n ApplicationObjectId = exampleApplication.Id,\n AllowedMemberTypes = \n {\n \"User\",\n },\n Description = \"Admins can manage roles and perform all task actions\",\n DisplayName = \"Admin\",\n IsEnabled = true,\n Value = \"administer\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationAppRole(ctx, \"exampleApplicationAppRole\", \u0026azuread.ApplicationAppRoleArgs{\n\t\t\tApplicationObjectId: exampleApplication.ID(),\n\t\t\tAllowedMemberTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"User\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"Admins can manage roles and perform all task actions\"),\n\t\t\tDisplayName: pulumi.String(\"Admin\"),\n\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\tValue: pulumi.String(\"administer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApp Roles can be imported using the `object id` of an Application and the `id` of the App Role, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationAppRole:ApplicationAppRole test 00000000-0000-0000-0000-000000000000/role/11111111-1111-1111-1111-111111111111\n```\n\n ",
"properties": {
"allowedMemberTypes": {
"type": "array",
@@ -1953,7 +1953,7 @@
}
},
"azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission": {
- "description": "Manages an OAuth2 Permission (also known as a Scope) associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleApplicationOAuth2Permission = new azuread.ApplicationOAuth2Permission(\"exampleApplicationOAuth2Permission\", {\n applicationObjectId: exampleApplication.id,\n adminConsentDescription: \"Administer the application\",\n adminConsentDisplayName: \"Administer\",\n isEnabled: true,\n type: \"User\",\n userConsentDescription: \"Administer the application\",\n userConsentDisplayName: \"Administer\",\n value: \"administer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_application_o_auth2_permission = azuread.ApplicationOAuth2Permission(\"exampleApplicationOAuth2Permission\",\n application_object_id=example_application.id,\n admin_consent_description=\"Administer the application\",\n admin_consent_display_name=\"Administer\",\n is_enabled=True,\n type=\"User\",\n user_consent_description=\"Administer the application\",\n user_consent_display_name=\"Administer\",\n value=\"administer\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleApplicationOAuth2Permission = new AzureAD.ApplicationOAuth2Permission(\"exampleApplicationOAuth2Permission\", new AzureAD.ApplicationOAuth2PermissionArgs\n {\n ApplicationObjectId = exampleApplication.Id,\n AdminConsentDescription = \"Administer the application\",\n AdminConsentDisplayName = \"Administer\",\n IsEnabled = true,\n Type = \"User\",\n UserConsentDescription = \"Administer the application\",\n UserConsentDisplayName = \"Administer\",\n Value = \"administer\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationOAuth2Permission(ctx, \"exampleApplicationOAuth2Permission\", \u0026azuread.ApplicationOAuth2PermissionArgs{\n\t\t\tApplicationObjectId: exampleApplication.ID(),\n\t\t\tAdminConsentDescription: pulumi.String(\"Administer the application\"),\n\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\tType: pulumi.String(\"User\"),\n\t\t\tUserConsentDescription: pulumi.String(\"Administer the application\"),\n\t\t\tUserConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\tValue: pulumi.String(\"administer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nOAuth2 Permissions can be imported using the `object id` of an Application and the `id` of the Permission, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission test 00000000-0000-0000-0000-000000000000/scope/11111111-1111-1111-1111-111111111111\n```\n\n ",
+ "description": "Manages an OAuth2 Permission (also known as a Scope) associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleApplicationOAuth2Permission = new azuread.ApplicationOAuth2Permission(\"exampleApplicationOAuth2Permission\", {\n applicationObjectId: exampleApplication.id,\n adminConsentDescription: \"Administer the application\",\n adminConsentDisplayName: \"Administer\",\n isEnabled: true,\n type: \"User\",\n userConsentDescription: \"Administer the application\",\n userConsentDisplayName: \"Administer\",\n value: \"administer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_application_o_auth2_permission = azuread.ApplicationOAuth2Permission(\"exampleApplicationOAuth2Permission\",\n application_object_id=example_application.id,\n admin_consent_description=\"Administer the application\",\n admin_consent_display_name=\"Administer\",\n is_enabled=True,\n type=\"User\",\n user_consent_description=\"Administer the application\",\n user_consent_display_name=\"Administer\",\n value=\"administer\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleApplicationOAuth2Permission = new AzureAD.ApplicationOAuth2Permission(\"exampleApplicationOAuth2Permission\", new AzureAD.ApplicationOAuth2PermissionArgs\n {\n ApplicationObjectId = exampleApplication.Id,\n AdminConsentDescription = \"Administer the application\",\n AdminConsentDisplayName = \"Administer\",\n IsEnabled = true,\n Type = \"User\",\n UserConsentDescription = \"Administer the application\",\n UserConsentDisplayName = \"Administer\",\n Value = \"administer\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationOAuth2Permission(ctx, \"exampleApplicationOAuth2Permission\", \u0026azuread.ApplicationOAuth2PermissionArgs{\n\t\t\tApplicationObjectId: exampleApplication.ID(),\n\t\t\tAdminConsentDescription: pulumi.String(\"Administer the application\"),\n\t\t\tAdminConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\tIsEnabled: pulumi.Bool(true),\n\t\t\tType: pulumi.String(\"User\"),\n\t\t\tUserConsentDescription: pulumi.String(\"Administer the application\"),\n\t\t\tUserConsentDisplayName: pulumi.String(\"Administer\"),\n\t\t\tValue: pulumi.String(\"administer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nOAuth2 Permissions can be imported using the `object id` of an Application and the `id` of the Permission, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission test 00000000-0000-0000-0000-000000000000/scope/11111111-1111-1111-1111-111111111111\n```\n\n ",
"properties": {
"adminConsentDescription": {
"type": "string",
@@ -2093,7 +2093,7 @@
}
},
"azuread:index/applicationPassword:ApplicationPassword": {
- "description": "Manages a Password associated with an Application within Azure Active Directory. Also can be referred to as Client secrets.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleApplicationPassword = new azuread.ApplicationPassword(\"exampleApplicationPassword\", {\n applicationObjectId: exampleApplication.id,\n description: \"My managed password\",\n value: `VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#`,\n endDate: \"2099-01-01T01:02:03Z\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_application_password = azuread.ApplicationPassword(\"exampleApplicationPassword\",\n application_object_id=example_application.id,\n description=\"My managed password\",\n value=\"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n end_date=\"2099-01-01T01:02:03Z\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleApplicationPassword = new AzureAD.ApplicationPassword(\"exampleApplicationPassword\", new AzureAD.ApplicationPasswordArgs\n {\n ApplicationObjectId = exampleApplication.Id,\n Description = \"My managed password\",\n Value = \"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n EndDate = \"2099-01-01T01:02:03Z\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationPassword(ctx, \"exampleApplicationPassword\", \u0026azuread.ApplicationPasswordArgs{\n\t\t\tApplicationObjectId: exampleApplication.ID(),\n\t\t\tDescription: pulumi.String(\"My managed password\"),\n\t\t\tValue: pulumi.String(fmt.Sprintf(\"%v%v%v\", \"VT=uSgbTanZhyz@\", \"%\", \"nL9Hpd+Tfay_MRV#\")),\n\t\t\tEndDate: pulumi.String(\"2099-01-01T01:02:03Z\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPasswords can be imported using the `object id` of an Application and the `key id` of the password, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationPassword:ApplicationPassword test 00000000-0000-0000-0000-000000000000/password/11111111-1111-1111-1111-111111111111\n```\n\n ",
+ "description": "Manages a Password associated with an Application within Azure Active Directory. Also can be referred to as Client secrets.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleApplicationPassword = new azuread.ApplicationPassword(\"exampleApplicationPassword\", {\n applicationObjectId: exampleApplication.id,\n description: \"My managed password\",\n value: `VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#`,\n endDate: \"2099-01-01T01:02:03Z\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_application_password = azuread.ApplicationPassword(\"exampleApplicationPassword\",\n application_object_id=example_application.id,\n description=\"My managed password\",\n value=\"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n end_date=\"2099-01-01T01:02:03Z\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleApplicationPassword = new AzureAD.ApplicationPassword(\"exampleApplicationPassword\", new AzureAD.ApplicationPasswordArgs\n {\n ApplicationObjectId = exampleApplication.Id,\n Description = \"My managed password\",\n Value = \"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n EndDate = \"2099-01-01T01:02:03Z\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationPassword(ctx, \"exampleApplicationPassword\", \u0026azuread.ApplicationPasswordArgs{\n\t\t\tApplicationObjectId: exampleApplication.ID(),\n\t\t\tDescription: pulumi.String(\"My managed password\"),\n\t\t\tValue: pulumi.String(fmt.Sprintf(\"%v%v%v\", \"VT=uSgbTanZhyz@\", \"%\", \"nL9Hpd+Tfay_MRV#\")),\n\t\t\tEndDate: pulumi.String(\"2099-01-01T01:02:03Z\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPasswords can be imported using the `object id` of an Application and the `key id` of the password, e.g.\n\n```sh\n $ pulumi import azuread:index/applicationPassword:ApplicationPassword test 00000000-0000-0000-0000-000000000000/password/11111111-1111-1111-1111-111111111111\n```\n\n ",
"properties": {
"applicationObjectId": {
"type": "string",
@@ -2202,7 +2202,7 @@
}
},
"azuread:index/group:Group": {
- "description": "Manages a Group within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read and write all groups` within the `Windows Azure Active Directory` API. In addition it must also have either the `Company Administrator` or `User Account Administrator` Azure Active Directory roles assigned in order to be able to delete groups. You can assign one of the required Azure Active Directory Roles with the **AzureAD PowerShell Module**, which is available for Windows PowerShell or in the Azure Cloud Shell. Please refer to [this documentation](https://docs.microsoft.com/en-us/powershell/module/azuread/add-azureaddirectoryrolemember) for more details.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Basic example*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Group(\"example\", {\n displayName: \"A-AD-Group\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Group(\"example\", display_name=\"A-AD-Group\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.Group(\"example\", new AzureAD.GroupArgs\n {\n DisplayName = \"A-AD-Group\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"A-AD-Group\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\n*A group with members*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = new azuread.User(\"exampleUser\", {\n displayName: \"J Doe\",\n password: \"notSecure123\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {\n displayName: \"MyGroup\",\n members: [exampleUser.objectId],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.User(\"exampleUser\",\n display_name=\"J Doe\",\n password=\"notSecure123\",\n user_principal_name=\"jdoe@hashicorp.com\")\nexample_group = azuread.Group(\"exampleGroup\",\n display_name=\"MyGroup\",\n members=[example_user.object_id])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleUser = new AzureAD.User(\"exampleUser\", new AzureAD.UserArgs\n {\n DisplayName = \"J Doe\",\n Password = \"notSecure123\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new AzureAD.GroupArgs\n {\n DisplayName = \"MyGroup\",\n Members = \n {\n exampleUser.ObjectId,\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.NewUser(ctx, \"exampleUser\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J Doe\"),\n\t\t\tPassword: pulumi.String(\"notSecure123\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"exampleGroup\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"MyGroup\"),\n\t\t\tMembers: pulumi.StringArray{\n\t\t\t\texampleUser.ObjectId,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Groups can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000\n```\n\n ",
+ "description": "Manages a Group within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read and write all groups` within the `Windows Azure Active Directory` API. In addition it must also have either the `Company Administrator` or `User Account Administrator` Azure Active Directory roles assigned in order to be able to delete groups. You can assign one of the required Azure Active Directory Roles with the **AzureAD PowerShell Module**, which is available for Windows PowerShell or in the Azure Cloud Shell. Please refer to [this documentation](https://docs.microsoft.com/en-us/powershell/module/azuread/add-azureaddirectoryrolemember) for more details.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n*Basic example*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.Group(\"example\", {\n displayName: \"A-AD-Group\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.Group(\"example\", display_name=\"A-AD-Group\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.Group(\"example\", new AzureAD.GroupArgs\n {\n DisplayName = \"A-AD-Group\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.NewGroup(ctx, \"example\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"A-AD-Group\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\n*A group with members*\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = new azuread.User(\"exampleUser\", {\n displayName: \"J Doe\",\n password: \"notSecure123\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {\n displayName: \"MyGroup\",\n members: [exampleUser.objectId],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.User(\"exampleUser\",\n display_name=\"J Doe\",\n password=\"notSecure123\",\n user_principal_name=\"jdoe@hashicorp.com\")\nexample_group = azuread.Group(\"exampleGroup\",\n display_name=\"MyGroup\",\n members=[example_user.object_id])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleUser = new AzureAD.User(\"exampleUser\", new AzureAD.UserArgs\n {\n DisplayName = \"J Doe\",\n Password = \"notSecure123\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new AzureAD.GroupArgs\n {\n DisplayName = \"MyGroup\",\n Members = \n {\n exampleUser.ObjectId,\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleUser, err := azuread.NewUser(ctx, \"exampleUser\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J Doe\"),\n\t\t\tPassword: pulumi.String(\"notSecure123\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroup(ctx, \"exampleGroup\", \u0026azuread.GroupArgs{\n\t\t\tDisplayName: pulumi.String(\"MyGroup\"),\n\t\t\tMembers: pulumi.StringArray{\n\t\t\t\texampleUser.ObjectId,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Groups can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000\n```\n\n ",
"properties": {
"description": {
"type": "string",
@@ -2318,7 +2318,7 @@
}
},
"azuread:index/groupMember:GroupMember": {
- "description": "Manages a single Group Membership within Azure Active Directory.\n\n\u003e **NOTE:** Do not use this resource at the same time as `azuread_group.members`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {});\nconst exampleGroupMember = new azuread.GroupMember(\"exampleGroupMember\", {\n groupObjectId: exampleGroup.id,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_group = azuread.Group(\"exampleGroup\")\nexample_group_member = azuread.GroupMember(\"exampleGroupMember\",\n group_object_id=example_group.id,\n member_object_id=example_user.id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n }));\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new AzureAD.GroupArgs\n {\n });\n var exampleGroupMember = new AzureAD.GroupMember(\"exampleGroupMember\", new AzureAD.GroupMemberArgs\n {\n GroupObjectId = exampleGroup.Id,\n MemberObjectId = exampleUser.Apply(exampleUser =\u003e exampleUser.Id),\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"jdoe@hashicorp.com\"\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGroup, err := azuread.NewGroup(ctx, \"exampleGroup\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroupMember(ctx, \"exampleGroupMember\", \u0026azuread.GroupMemberArgs{\n\t\t\tGroupObjectId: exampleGroup.ID(),\n\t\t\tMemberObjectId: pulumi.String(exampleUser.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Group Members can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n ",
+ "description": "Manages a single Group Membership within Azure Active Directory.\n\n\u003e **NOTE:** Do not use this resource at the same time as `azuread_group.members`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleUser = azuread.getUser({\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\nconst exampleGroup = new azuread.Group(\"exampleGroup\", {});\nconst exampleGroupMember = new azuread.GroupMember(\"exampleGroupMember\", {\n groupObjectId: exampleGroup.id,\n memberObjectId: exampleUser.then(exampleUser =\u003e exampleUser.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_user = azuread.get_user(user_principal_name=\"jdoe@hashicorp.com\")\nexample_group = azuread.Group(\"exampleGroup\")\nexample_group_member = azuread.GroupMember(\"exampleGroupMember\",\n group_object_id=example_group.id,\n member_object_id=example_user.id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleUser = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"jdoe@hashicorp.com\",\n }));\n var exampleGroup = new AzureAD.Group(\"exampleGroup\", new AzureAD.GroupArgs\n {\n });\n var exampleGroupMember = new AzureAD.GroupMember(\"exampleGroupMember\", new AzureAD.GroupMemberArgs\n {\n GroupObjectId = exampleGroup.Id,\n MemberObjectId = exampleUser.Apply(exampleUser =\u003e exampleUser.Id),\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"jdoe@hashicorp.com\"\n\t\texampleUser, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGroup, err := azuread.NewGroup(ctx, \"exampleGroup\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewGroupMember(ctx, \"exampleGroupMember\", \u0026azuread.GroupMemberArgs{\n\t\t\tGroupObjectId: exampleGroup.ID(),\n\t\t\tMemberObjectId: pulumi.String(exampleUser.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Group Members can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111\n```\n\n ",
"properties": {
"groupObjectId": {
"type": "string",
@@ -2363,7 +2363,7 @@
}
},
"azuread:index/servicePrincipal:ServicePrincipal": {
- "description": "Manages a Service Principal associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API. Please see The Granting a Service Principal permission to manage AAD for the required steps.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n homepage: \"http://homepage\",\n identifierUris: [\"http://uri\"],\n replyUrls: [\"http://replyurl\"],\n availableToOtherTenants: false,\n oauth2AllowImplicitFlow: true,\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n appRoleAssignmentRequired: false,\n tags: [\n \"example\",\n \"tags\",\n \"here\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\",\n homepage=\"http://homepage\",\n identifier_uris=[\"http://uri\"],\n reply_urls=[\"http://replyurl\"],\n available_to_other_tenants=False,\n oauth2_allow_implicit_flow=True)\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n app_role_assignment_required=False,\n tags=[\n \"example\",\n \"tags\",\n \"here\",\n ])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n Homepage = \"http://homepage\",\n IdentifierUris = \n {\n \"http://uri\",\n },\n ReplyUrls = \n {\n \"http://replyurl\",\n },\n AvailableToOtherTenants = false,\n Oauth2AllowImplicitFlow = true,\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n AppRoleAssignmentRequired = false,\n Tags = \n {\n \"example\",\n \"tags\",\n \"here\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tHomepage: pulumi.String(\"http://homepage\"),\n\t\t\tIdentifierUris: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"http://uri\"),\n\t\t\t},\n\t\t\tReplyUrls: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"http://replyurl\"),\n\t\t\t},\n\t\t\tAvailableToOtherTenants: pulumi.Bool(false),\n\t\t\tOauth2AllowImplicitFlow: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tAppRoleAssignmentRequired: pulumi.Bool(false),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example\"),\n\t\t\t\tpulumi.String(\"tags\"),\n\t\t\t\tpulumi.String(\"here\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Service Principals can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000\n```\n\n ",
+ "description": "Manages a Service Principal associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API. Please see The Granting a Service Principal permission to manage AAD for the required steps.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {\n homepage: \"http://homepage\",\n identifierUris: [\"http://uri\"],\n replyUrls: [\"http://replyurl\"],\n availableToOtherTenants: false,\n oauth2AllowImplicitFlow: true,\n});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {\n applicationId: exampleApplication.applicationId,\n appRoleAssignmentRequired: false,\n tags: [\n \"example\",\n \"tags\",\n \"here\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\",\n homepage=\"http://homepage\",\n identifier_uris=[\"http://uri\"],\n reply_urls=[\"http://replyurl\"],\n available_to_other_tenants=False,\n oauth2_allow_implicit_flow=True)\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\",\n application_id=example_application.application_id,\n app_role_assignment_required=False,\n tags=[\n \"example\",\n \"tags\",\n \"here\",\n ])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n Homepage = \"http://homepage\",\n IdentifierUris = \n {\n \"http://uri\",\n },\n ReplyUrls = \n {\n \"http://replyurl\",\n },\n AvailableToOtherTenants = false,\n Oauth2AllowImplicitFlow = true,\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n AppRoleAssignmentRequired = false,\n Tags = \n {\n \"example\",\n \"tags\",\n \"here\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", \u0026azuread.ApplicationArgs{\n\t\t\tHomepage: pulumi.String(\"http://homepage\"),\n\t\t\tIdentifierUris: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"http://uri\"),\n\t\t\t},\n\t\t\tReplyUrls: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"http://replyurl\"),\n\t\t\t},\n\t\t\tAvailableToOtherTenants: pulumi.Bool(false),\n\t\t\tOauth2AllowImplicitFlow: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t\tAppRoleAssignmentRequired: pulumi.Bool(false),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example\"),\n\t\t\t\tpulumi.String(\"tags\"),\n\t\t\t\tpulumi.String(\"here\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Service Principals can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000\n```\n\n ",
"properties": {
"appRoleAssignmentRequired": {
"type": "boolean",
@@ -2588,7 +2588,7 @@
}
},
"azuread:index/servicePrincipalPassword:ServicePrincipalPassword": {
- "description": "Manages a Password associated with a Service Principal within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleServicePrincipalPassword = new azuread.ServicePrincipalPassword(\"exampleServicePrincipalPassword\", {\n servicePrincipalId: exampleServicePrincipal.id,\n description: \"My managed password\",\n value: `VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#`,\n endDate: \"2099-01-01T01:02:03Z\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\", application_id=example_application.application_id)\nexample_service_principal_password = azuread.ServicePrincipalPassword(\"exampleServicePrincipalPassword\",\n service_principal_id=example_service_principal.id,\n description=\"My managed password\",\n value=\"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n end_date=\"2099-01-01T01:02:03Z\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n var exampleServicePrincipalPassword = new AzureAD.ServicePrincipalPassword(\"exampleServicePrincipalPassword\", new AzureAD.ServicePrincipalPasswordArgs\n {\n ServicePrincipalId = exampleServicePrincipal.Id,\n Description = \"My managed password\",\n Value = \"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n EndDate = \"2099-01-01T01:02:03Z\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipalPassword(ctx, \"exampleServicePrincipalPassword\", \u0026azuread.ServicePrincipalPasswordArgs{\n\t\t\tServicePrincipalId: exampleServicePrincipal.ID(),\n\t\t\tDescription: pulumi.String(\"My managed password\"),\n\t\t\tValue: pulumi.String(fmt.Sprintf(\"%v%v%v\", \"VT=uSgbTanZhyz@\", \"%\", \"nL9Hpd+Tfay_MRV#\")),\n\t\t\tEndDate: pulumi.String(\"2099-01-01T01:02:03Z\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPasswords can be imported using the `object id` of a Service Principal and the `key id` of the password, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipalPassword:ServicePrincipalPassword test 00000000-0000-0000-0000-000000000000/11111111-1111-1111-1111-111111111111\n```\n\n ",
+ "description": "Manages a Password associated with a Service Principal within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst exampleApplication = new azuread.Application(\"exampleApplication\", {});\nconst exampleServicePrincipal = new azuread.ServicePrincipal(\"exampleServicePrincipal\", {applicationId: exampleApplication.applicationId});\nconst exampleServicePrincipalPassword = new azuread.ServicePrincipalPassword(\"exampleServicePrincipalPassword\", {\n servicePrincipalId: exampleServicePrincipal.id,\n description: \"My managed password\",\n value: `VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#`,\n endDate: \"2099-01-01T01:02:03Z\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample_application = azuread.Application(\"exampleApplication\")\nexample_service_principal = azuread.ServicePrincipal(\"exampleServicePrincipal\", application_id=example_application.application_id)\nexample_service_principal_password = azuread.ServicePrincipalPassword(\"exampleServicePrincipalPassword\",\n service_principal_id=example_service_principal.id,\n description=\"My managed password\",\n value=\"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n end_date=\"2099-01-01T01:02:03Z\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleApplication = new AzureAD.Application(\"exampleApplication\", new AzureAD.ApplicationArgs\n {\n });\n var exampleServicePrincipal = new AzureAD.ServicePrincipal(\"exampleServicePrincipal\", new AzureAD.ServicePrincipalArgs\n {\n ApplicationId = exampleApplication.ApplicationId,\n });\n var exampleServicePrincipalPassword = new AzureAD.ServicePrincipalPassword(\"exampleServicePrincipalPassword\", new AzureAD.ServicePrincipalPasswordArgs\n {\n ServicePrincipalId = exampleServicePrincipal.Id,\n Description = \"My managed password\",\n Value = \"VT=uSgbTanZhyz@%nL9Hpd+Tfay_MRV#\",\n EndDate = \"2099-01-01T01:02:03Z\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleApplication, err := azuread.NewApplication(ctx, \"exampleApplication\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServicePrincipal, err := azuread.NewServicePrincipal(ctx, \"exampleServicePrincipal\", \u0026azuread.ServicePrincipalArgs{\n\t\t\tApplicationId: exampleApplication.ApplicationId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewServicePrincipalPassword(ctx, \"exampleServicePrincipalPassword\", \u0026azuread.ServicePrincipalPasswordArgs{\n\t\t\tServicePrincipalId: exampleServicePrincipal.ID(),\n\t\t\tDescription: pulumi.String(\"My managed password\"),\n\t\t\tValue: pulumi.String(fmt.Sprintf(\"%v%v%v\", \"VT=uSgbTanZhyz@\", \"%\", \"nL9Hpd+Tfay_MRV#\")),\n\t\t\tEndDate: pulumi.String(\"2099-01-01T01:02:03Z\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPasswords can be imported using the `object id` of a Service Principal and the `key id` of the password, e.g.\n\n```sh\n $ pulumi import azuread:index/servicePrincipalPassword:ServicePrincipalPassword test 00000000-0000-0000-0000-000000000000/11111111-1111-1111-1111-111111111111\n```\n\n ",
"properties": {
"description": {
"type": "string",
@@ -2697,7 +2697,7 @@
}
},
"azuread:index/user:User": {
- "description": "Manages a User within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Directory.ReadWrite.All` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.User(\"example\", {\n displayName: \"J. Doe\",\n mailNickname: \"jdoe\",\n password: \"SecretP@sswd99!\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.User(\"example\",\n display_name=\"J. Doe\",\n mail_nickname=\"jdoe\",\n password=\"SecretP@sswd99!\",\n user_principal_name=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.User(\"example\", new AzureAD.UserArgs\n {\n DisplayName = \"J. Doe\",\n MailNickname = \"jdoe\",\n Password = \"SecretP@sswd99!\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.NewUser(ctx, \"example\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J. Doe\"),\n\t\t\tMailNickname: pulumi.String(\"jdoe\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Users can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000\n```\n\n ",
+ "description": "Manages a User within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Directory.ReadWrite.All` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = new azuread.User(\"example\", {\n displayName: \"J. Doe\",\n mailNickname: \"jdoe\",\n password: \"SecretP@sswd99!\",\n userPrincipalName: \"jdoe@hashicorp.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.User(\"example\",\n display_name=\"J. Doe\",\n mail_nickname=\"jdoe\",\n password=\"SecretP@sswd99!\",\n user_principal_name=\"jdoe@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new AzureAD.User(\"example\", new AzureAD.UserArgs\n {\n DisplayName = \"J. Doe\",\n MailNickname = \"jdoe\",\n Password = \"SecretP@sswd99!\",\n UserPrincipalName = \"jdoe@hashicorp.com\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.NewUser(ctx, \"example\", \u0026azuread.UserArgs{\n\t\t\tDisplayName: pulumi.String(\"J. Doe\"),\n\t\t\tMailNickname: pulumi.String(\"jdoe\"),\n\t\t\tPassword: pulumi.String(\"SecretP@sswd99!\"),\n\t\t\tUserPrincipalName: pulumi.String(\"jdoe@hashicorp.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nAzure Active Directory Users can be imported using the `object id`, e.g.\n\n```sh\n $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000\n```\n\n ",
"properties": {
"accountEnabled": {
"type": "boolean",
@@ -3013,7 +3013,7 @@
},
"functions": {
"azuread:index/getApplication:getApplication": {
- "description": "Use this data source to access information about an existing Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all (or owned by) applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = azuread.getApplication({\n displayName: \"My First AzureAD Application\",\n});\nexport const azureAdObjectId = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_application(display_name=\"My First AzureAD Application\")\npulumi.export(\"azureAdObjectId\", example.id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetApplication.InvokeAsync(new AzureAD.GetApplicationArgs\n {\n DisplayName = \"My First AzureAD Application\",\n }));\n this.AzureAdObjectId = example.Apply(example =\u003e example.Id);\n }\n\n [Output(\"azureAdObjectId\")]\n public Output\u003cstring\u003e AzureAdObjectId { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"My First AzureAD Application\"\n\t\texample, err := azuread.LookupApplication(ctx, \u0026azuread.LookupApplicationArgs{\n\t\t\tDisplayName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"azureAdObjectId\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Use this data source to access information about an existing Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all (or owned by) applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = azuread.getApplication({\n displayName: \"My First AzureAD Application\",\n});\nexport const azureAdObjectId = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_application(display_name=\"My First AzureAD Application\")\npulumi.export(\"azureAdObjectId\", example.id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetApplication.InvokeAsync(new AzureAD.GetApplicationArgs\n {\n DisplayName = \"My First AzureAD Application\",\n }));\n this.AzureAdObjectId = example.Apply(example =\u003e example.Id);\n }\n\n [Output(\"azureAdObjectId\")]\n public Output\u003cstring\u003e AzureAdObjectId { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"My First AzureAD Application\"\n\t\texample, err := azuread.LookupApplication(ctx, \u0026azuread.LookupApplicationArgs{\n\t\t\tDisplayName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"azureAdObjectId\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getApplication.\n",
"properties": {
@@ -3165,7 +3165,7 @@
}
},
"azuread:index/getClientConfig:getClientConfig": {
- "description": "Use this data source to access the configuration of the AzureAD provider.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nexport const accountId = current.then(current =\u003e current.clientId);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\npulumi.export(\"accountId\", current.client_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n this.AccountId = current.Apply(current =\u003e current.ClientId);\n }\n\n [Output(\"accountId\")]\n public Output\u003cstring\u003e AccountId { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"accountId\", current.ClientId)\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Use this data source to access the configuration of the AzureAD provider.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst current = azuread.getClientConfig({});\nexport const accountId = current.then(current =\u003e current.clientId);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ncurrent = azuread.get_client_config()\npulumi.export(\"accountId\", current.client_id)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());\n this.AccountId = current.Apply(current =\u003e current.ClientId);\n }\n\n [Output(\"accountId\")]\n public Output\u003cstring\u003e AccountId { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := azuread.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"accountId\", current.ClientId)\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"outputs": {
"description": "A collection of values returned by getClientConfig.\n",
"properties": {
@@ -3193,7 +3193,7 @@
}
},
"azuread:index/getDomains:getDomains": {
- "description": "Use this data source to access information about existing Domains within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Directory.Read.All` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst aadDomains = azuread.getDomains({});\nexport const domains = aadDomains.then(aadDomains =\u003e aadDomains.domains);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\naad_domains = azuread.get_domains()\npulumi.export(\"domains\", aad_domains.domains)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var aadDomains = Output.Create(AzureAD.GetDomains.InvokeAsync());\n this.Domains = aadDomains.Apply(aadDomains =\u003e aadDomains.Domains);\n }\n\n [Output(\"domains\")]\n public Output\u003cstring\u003e Domains { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\taadDomains, err := azuread.GetDomains(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"domains\", aadDomains.Domains)\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Use this data source to access information about existing Domains within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Directory.Read.All` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst aadDomains = azuread.getDomains({});\nexport const domains = aadDomains.then(aadDomains =\u003e aadDomains.domains);\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\naad_domains = azuread.get_domains()\npulumi.export(\"domains\", aad_domains.domains)\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var aadDomains = Output.Create(AzureAD.GetDomains.InvokeAsync());\n this.Domains = aadDomains.Apply(aadDomains =\u003e aadDomains.Domains);\n }\n\n [Output(\"domains\")]\n public Output\u003cstring\u003e Domains { get; set; }\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\taadDomains, err := azuread.GetDomains(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"domains\", aadDomains.Domains)\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getDomains.\n",
"properties": {
@@ -3244,7 +3244,7 @@
}
},
"azuread:index/getGroup:getGroup": {
- "description": "Gets information about an Azure Active Directory group.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Group Display Name)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getGroup({\n displayName: \"A-AD-Group\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_group(display_name=\"A-AD-Group\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetGroup.InvokeAsync(new AzureAD.GetGroupArgs\n {\n DisplayName = \"A-AD-Group\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"A-AD-Group\"\n\t\t_, err := azuread.LookupGroup(ctx, \u0026azuread.LookupGroupArgs{\n\t\t\tDisplayName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Gets information about an Azure Active Directory group.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Group Display Name)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getGroup({\n displayName: \"A-AD-Group\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_group(display_name=\"A-AD-Group\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetGroup.InvokeAsync(new AzureAD.GetGroupArgs\n {\n DisplayName = \"A-AD-Group\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"A-AD-Group\"\n\t\t_, err := azuread.LookupGroup(ctx, \u0026azuread.LookupGroupArgs{\n\t\t\tDisplayName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getGroup.\n",
"properties": {
@@ -3313,7 +3313,7 @@
}
},
"azuread:index/getGroups:getGroups": {
- "description": "Gets Object IDs or Display Names for multiple Azure Active Directory groups.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst groups = pulumi.output(azuread.getGroups({\n names: [\n \"group-a\",\n \"group-b\",\n ],\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ngroups = azuread.get_groups(names=[\n \"group-a\",\n \"group-b\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var groups = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs\n {\n Names = \n {\n \"group-a\",\n \"group-b\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.GetGroups(ctx, \u0026azuread.GetGroupsArgs{\n\t\t\tNames: []string{\n\t\t\t\t\"group-a\",\n\t\t\t\t\"group-b\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Gets Object IDs or Display Names for multiple Azure Active Directory groups.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst groups = pulumi.output(azuread.getGroups({\n names: [\n \"group-a\",\n \"group-b\",\n ],\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\ngroups = azuread.get_groups(names=[\n \"group-a\",\n \"group-b\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var groups = Output.Create(AzureAD.GetGroups.InvokeAsync(new AzureAD.GetGroupsArgs\n {\n Names = \n {\n \"group-a\",\n \"group-b\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.GetGroups(ctx, \u0026azuread.GetGroupsArgs{\n\t\t\tNames: []string{\n\t\t\t\t\"group-a\",\n\t\t\t\t\"group-b\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getGroups.\n",
"properties": {
@@ -3380,7 +3380,7 @@
}
},
"azuread:index/getServicePrincipal:getServicePrincipal": {
- "description": "Gets information about an existing Service Principal associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Application Display Name)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n displayName: \"my-awesome-application\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(display_name=\"my-awesome-application\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n DisplayName = \"my-awesome-application\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"my-awesome-application\"\n\t\t_, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tDisplayName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\n{{% /example %}}\n{{% example %}}\n### By Application ID)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n applicationId: \"00000000-0000-0000-0000-000000000000\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(application_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n ApplicationId = \"00000000-0000-0000-0000-000000000000\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"00000000-0000-0000-0000-000000000000\"\n\t\t_, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tApplicationId: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\n{{% /example %}}\n{{% example %}}\n### By Object ID)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n objectId: \"00000000-0000-0000-0000-000000000000\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(object_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n ObjectId = \"00000000-0000-0000-0000-000000000000\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"00000000-0000-0000-0000-000000000000\"\n\t\t_, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tObjectId: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Gets information about an existing Service Principal associated with an Application within Azure Active Directory.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to both `Read and write all applications` and `Sign in and read user profile` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### By Application Display Name)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n displayName: \"my-awesome-application\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(display_name=\"my-awesome-application\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n DisplayName = \"my-awesome-application\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"my-awesome-application\"\n\t\t_, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tDisplayName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\n{{% /example %}}\n{{% example %}}\n### By Application ID)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n applicationId: \"00000000-0000-0000-0000-000000000000\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(application_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n ApplicationId = \"00000000-0000-0000-0000-000000000000\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"00000000-0000-0000-0000-000000000000\"\n\t\t_, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tApplicationId: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\n{{% /example %}}\n{{% example %}}\n### By Object ID)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getServicePrincipal({\n objectId: \"00000000-0000-0000-0000-000000000000\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_service_principal(object_id=\"00000000-0000-0000-0000-000000000000\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetServicePrincipal.InvokeAsync(new AzureAD.GetServicePrincipalArgs\n {\n ObjectId = \"00000000-0000-0000-0000-000000000000\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"00000000-0000-0000-0000-000000000000\"\n\t\t_, err := azuread.LookupServicePrincipal(ctx, \u0026azuread.LookupServicePrincipalArgs{\n\t\t\tObjectId: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getServicePrincipal.\n",
"properties": {
@@ -3448,7 +3448,7 @@
}
},
"azuread:index/getUser:getUser": {
- "description": "Gets information about an Azure Active Directory user.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getUser({\n userPrincipalName: \"user@hashicorp.com\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_user(user_principal_name=\"user@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"user@hashicorp.com\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"user@hashicorp.com\"\n\t\t_, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Gets information about an Azure Active Directory user.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst example = pulumi.output(azuread.getUser({\n userPrincipalName: \"user@hashicorp.com\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nexample = azuread.get_user(user_principal_name=\"user@hashicorp.com\")\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(AzureAD.GetUser.InvokeAsync(new AzureAD.GetUserArgs\n {\n UserPrincipalName = \"user@hashicorp.com\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"user@hashicorp.com\"\n\t\t_, err := azuread.LookupUser(ctx, \u0026azuread.LookupUserArgs{\n\t\t\tUserPrincipalName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getUser.\n",
"properties": {
@@ -3591,7 +3591,7 @@
}
},
"azuread:index/getUsers:getUsers": {
- "description": "Gets Object IDs or UPNs for multiple Azure Active Directory users.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst users = pulumi.output(azuread.getUsers({\n userPrincipalNames: [\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n ],\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nusers = azuread.get_users(user_principal_names=[\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var users = Output.Create(AzureAD.GetUsers.InvokeAsync(new AzureAD.GetUsersArgs\n {\n UserPrincipalNames = \n {\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.GetUsers(ctx, \u0026azuread.GetUsersArgs{\n\t\t\tUserPrincipalNames: []string{\n\t\t\t\t\"kat@hashicorp.com\",\n\t\t\t\t\"byte@hashicorp.com\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "Gets Object IDs or UPNs for multiple Azure Active Directory users.\n\n\u003e **NOTE:** If you're authenticating using a Service Principal then it must have permissions to `Read directory data` within the `Windows Azure Active Directory` API.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\n\nconst users = pulumi.output(azuread.getUsers({\n userPrincipalNames: [\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n ],\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\n\nusers = azuread.get_users(user_principal_names=[\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n])\n```\n```csharp\nusing Pulumi;\nusing AzureAD = Pulumi.AzureAD;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var users = Output.Create(AzureAD.GetUsers.InvokeAsync(new AzureAD.GetUsersArgs\n {\n UserPrincipalNames = \n {\n \"kat@hashicorp.com\",\n \"byte@hashicorp.com\",\n },\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := azuread.GetUsers(ctx, \u0026azuread.GetUsersArgs{\n\t\t\tUserPrincipalNames: []string{\n\t\t\t\t\"kat@hashicorp.com\",\n\t\t\t\t\"byte@hashicorp.com\",\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getUsers.\n",
"properties": {
@@ -3683,6 +3683,10 @@
"System.Collections.Immutable": "1.6.0"
}
},
+ "go": {
+ "generateResourceContainerTypes": true,
+ "importBasePath": "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+ },
"nodejs": {
"dependencies": {
"@pulumi/pulumi": "^2.15.0"
diff --git a/provider/go.mod b/provider/go.mod
index 177d8b6c6..342e5b65d 100644
--- a/provider/go.mod
+++ b/provider/go.mod
@@ -3,8 +3,8 @@ module github.com/pulumi/pulumi-azuread/provider/v3
go 1.15
require (
- github.com/pulumi/pulumi-terraform-bridge/v2 v2.17.1-0.20201219002337-a0c25bd3e147
- github.com/pulumi/pulumi/sdk/v2 v2.17.0
+ github.com/pulumi/pulumi-terraform-bridge/v2 v2.18.1
+ github.com/pulumi/pulumi/sdk/v2 v2.18.0
github.com/terraform-providers/terraform-provider-azuread/shim v0.0.0
)
diff --git a/provider/go.sum b/provider/go.sum
index df8228410..d4a00a29f 100644
--- a/provider/go.sum
+++ b/provider/go.sum
@@ -68,15 +68,11 @@ github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0=
-github.com/Azure/go-autorest/autorest v0.10.0 h1:mvdtztBqcL8se7MdrUweNieTNi4kfNG6GOJuurQJpuY=
-github.com/Azure/go-autorest/autorest v0.10.0/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630=
github.com/Azure/go-autorest/autorest v0.11.10 h1:j5sGbX7uj1ieYYkQ3Mpvewd4DCsEQ+ZeJpqnSM9pjnM=
github.com/Azure/go-autorest/autorest v0.11.10/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw=
github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc=
github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
-github.com/Azure/go-autorest/autorest/adal v0.8.2 h1:O1X4oexUxnZCaEUGsvMnr8ZGj8HI37tNezwY4npRqA0=
-github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/adal v0.8.3 h1:O1AGG9Xig71FxdX9HO5pGNyZ7TbSyHaVg+5eJO/jSGw=
github.com/Azure/go-autorest/autorest/adal v0.8.3/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/adal v0.9.5 h1:Y3bBUV4rTuxenJJs41HU3qmqsb+auo+a3Lz+PlJPpL0=
@@ -451,8 +447,6 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs=
-github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
@@ -565,15 +559,13 @@ github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
-github.com/pulumi/pulumi-terraform-bridge/v2 v2.17.1-0.20201219002337-a0c25bd3e147 h1:3DL04s5KSGKVeW96H+QRoq1+j9dAnzce7TBa26dkHPM=
-github.com/pulumi/pulumi-terraform-bridge/v2 v2.17.1-0.20201219002337-a0c25bd3e147/go.mod h1:WNWmFEvaMWA1uiwdlmRN+eSKrgT6sL3kNS6z5ltbdbo=
-github.com/pulumi/pulumi/pkg/v2 v2.15.1-0.20201202214525-260620430c4c h1:M4BMhdOt1le+7JtOhR7uOVrpvu9HnN9388AI/Je9/3Y=
-github.com/pulumi/pulumi/pkg/v2 v2.15.1-0.20201202214525-260620430c4c/go.mod h1:xLEDqsipr92IXfe8EJrl8bANoEUtwmBJGBE8X8PKmP0=
+github.com/pulumi/pulumi-terraform-bridge/v2 v2.18.1 h1:1j7tmOWhR3gvK9T8smYmMxqpOj+CbLCYmMvdbwP4bOI=
+github.com/pulumi/pulumi-terraform-bridge/v2 v2.18.1/go.mod h1:UrgBEaSeCcTUfjd4bdYe3YdQpBMr4ewN00wuVH+jDh0=
+github.com/pulumi/pulumi/pkg/v2 v2.18.0 h1:vH+VyzpxWZVW7CSJ7ThD0w6uKXQa5j+TptzyQM6eT2o=
+github.com/pulumi/pulumi/pkg/v2 v2.18.0/go.mod h1:bAbzFeU3gHu1diqcckqUqaFf5dP02BfJlP8dnHwm00k=
github.com/pulumi/pulumi/sdk/v2 v2.2.1/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4=
-github.com/pulumi/pulumi/sdk/v2 v2.15.1-0.20201202214525-260620430c4c h1:nYFMU38MKDY+CuU8LpIw6AaX/wwXMNzINqXvjw5MUtQ=
-github.com/pulumi/pulumi/sdk/v2 v2.15.1-0.20201202214525-260620430c4c/go.mod h1:Z9ifPo/Q0+hUpAyguVx2gp5Sx+CBumnWvYQDhrM8l3E=
-github.com/pulumi/pulumi/sdk/v2 v2.17.0 h1:mFsYS4Qnpk0uGcN4cGPd/S6KWdx92BbudOerxf5JlcA=
-github.com/pulumi/pulumi/sdk/v2 v2.17.0/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o=
+github.com/pulumi/pulumi/sdk/v2 v2.18.0 h1:fOno92mnb/4xoVV+TqtQG0W6KCJLe87JyfBVVhZ8voE=
+github.com/pulumi/pulumi/sdk/v2 v2.18.0/go.mod h1:fCFhRV6NmidWetmgDPA76efL+s0JqLlS54JJIwfOt+o=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20201218231525-9cca98608a5e h1:jl43csgF3BSlNRmjo+TGgjW/uXk9h7+NoR3doKQ0BT4=
@@ -591,7 +583,7 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
-github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
+github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
diff --git a/provider/resources.go b/provider/resources.go
index 1c01888ce..78739dec1 100644
--- a/provider/resources.go
+++ b/provider/resources.go
@@ -15,8 +15,11 @@
package provider
import (
+ "fmt"
+ "path/filepath"
"unicode"
+ "github.com/pulumi/pulumi-azuread/provider/v3/pkg/version"
"github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge"
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfshim/sdk-v2"
"github.com/pulumi/pulumi/sdk/v2/go/common/tokens"
@@ -162,6 +165,15 @@ func Provider() tfbridge.ProviderInfo {
"pulumi": ">=2.15.0,<3.0.0",
},
},
+ Golang: &tfbridge.GolangInfo{
+ ImportBasePath: filepath.Join(
+ fmt.Sprintf("github.com/pulumi/pulumi-%[1]s/sdk/", mainPkg),
+ tfbridge.GetModuleMajorVersion(version.Version),
+ "go",
+ mainPkg,
+ ),
+ GenerateResourceContainerTypes: true,
+ },
CSharp: &tfbridge.CSharpInfo{
PackageReferences: map[string]string{
"Pulumi": "2.*",
diff --git a/sdk/dotnet/Application.cs b/sdk/dotnet/Application.cs
index b98beb71f..c4acbf4bc 100644
--- a/sdk/dotnet/Application.cs
+++ b/sdk/dotnet/Application.cs
@@ -157,6 +157,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/application:Application test 00000000-0000-0000-0000-000000000000
/// ```
///
+ [AzureADResourceType("azuread:index/application:Application")]
public partial class Application : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/ApplicationAppRole.cs b/sdk/dotnet/ApplicationAppRole.cs
index edbcd5785..e5394f7db 100644
--- a/sdk/dotnet/ApplicationAppRole.cs
+++ b/sdk/dotnet/ApplicationAppRole.cs
@@ -52,6 +52,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationAppRole:ApplicationAppRole test 00000000-0000-0000-0000-000000000000/role/11111111-1111-1111-1111-111111111111
/// ```
///
+ [AzureADResourceType("azuread:index/applicationAppRole:ApplicationAppRole")]
public partial class ApplicationAppRole : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/ApplicationCertificate.cs b/sdk/dotnet/ApplicationCertificate.cs
index ac0d73792..50a189f03 100644
--- a/sdk/dotnet/ApplicationCertificate.cs
+++ b/sdk/dotnet/ApplicationCertificate.cs
@@ -48,6 +48,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationCertificate:ApplicationCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111
/// ```
///
+ [AzureADResourceType("azuread:index/applicationCertificate:ApplicationCertificate")]
public partial class ApplicationCertificate : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/ApplicationOAuth2Permission.cs b/sdk/dotnet/ApplicationOAuth2Permission.cs
index d2efc462a..512ae32a7 100644
--- a/sdk/dotnet/ApplicationOAuth2Permission.cs
+++ b/sdk/dotnet/ApplicationOAuth2Permission.cs
@@ -51,6 +51,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission test 00000000-0000-0000-0000-000000000000/scope/11111111-1111-1111-1111-111111111111
/// ```
///
+ [AzureADResourceType("azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission")]
public partial class ApplicationOAuth2Permission : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/ApplicationPassword.cs b/sdk/dotnet/ApplicationPassword.cs
index 875a3e614..6a6eec1b6 100644
--- a/sdk/dotnet/ApplicationPassword.cs
+++ b/sdk/dotnet/ApplicationPassword.cs
@@ -47,6 +47,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/applicationPassword:ApplicationPassword test 00000000-0000-0000-0000-000000000000/password/11111111-1111-1111-1111-111111111111
/// ```
///
+ [AzureADResourceType("azuread:index/applicationPassword:ApplicationPassword")]
public partial class ApplicationPassword : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/Group.cs b/sdk/dotnet/Group.cs
index 60b6df77f..9f7ddc2a6 100644
--- a/sdk/dotnet/Group.cs
+++ b/sdk/dotnet/Group.cs
@@ -72,6 +72,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/group:Group my_group 00000000-0000-0000-0000-000000000000
/// ```
///
+ [AzureADResourceType("azuread:index/group:Group")]
public partial class Group : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/GroupMember.cs b/sdk/dotnet/GroupMember.cs
index 206bbf501..a8346b34d 100644
--- a/sdk/dotnet/GroupMember.cs
+++ b/sdk/dotnet/GroupMember.cs
@@ -49,6 +49,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/groupMember:GroupMember test 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111
/// ```
///
+ [AzureADResourceType("azuread:index/groupMember:GroupMember")]
public partial class GroupMember : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs
index 7ab923e30..edd774a51 100644
--- a/sdk/dotnet/Provider.cs
+++ b/sdk/dotnet/Provider.cs
@@ -15,6 +15,7 @@ namespace Pulumi.AzureAD
/// construction to achieve fine-grained programmatic control over provider settings. See the
/// [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
///
+ [AzureADResourceType("pulumi:providers:azuread")]
public partial class Provider : Pulumi.ProviderResource
{
///
diff --git a/sdk/dotnet/ServicePrincipal.cs b/sdk/dotnet/ServicePrincipal.cs
index a992371d0..9ad115e53 100644
--- a/sdk/dotnet/ServicePrincipal.cs
+++ b/sdk/dotnet/ServicePrincipal.cs
@@ -62,6 +62,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/servicePrincipal:ServicePrincipal test 00000000-0000-0000-0000-000000000000
/// ```
///
+ [AzureADResourceType("azuread:index/servicePrincipal:ServicePrincipal")]
public partial class ServicePrincipal : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/ServicePrincipalCertificate.cs b/sdk/dotnet/ServicePrincipalCertificate.cs
index 713a288c5..eafedd282 100644
--- a/sdk/dotnet/ServicePrincipalCertificate.cs
+++ b/sdk/dotnet/ServicePrincipalCertificate.cs
@@ -52,6 +52,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate test 00000000-0000-0000-0000-000000000000/certificate/11111111-1111-1111-1111-111111111111
/// ```
///
+ [AzureADResourceType("azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate")]
public partial class ServicePrincipalCertificate : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/ServicePrincipalPassword.cs b/sdk/dotnet/ServicePrincipalPassword.cs
index fcfd44651..6a1a5bf08 100644
--- a/sdk/dotnet/ServicePrincipalPassword.cs
+++ b/sdk/dotnet/ServicePrincipalPassword.cs
@@ -51,6 +51,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/servicePrincipalPassword:ServicePrincipalPassword test 00000000-0000-0000-0000-000000000000/11111111-1111-1111-1111-111111111111
/// ```
///
+ [AzureADResourceType("azuread:index/servicePrincipalPassword:ServicePrincipalPassword")]
public partial class ServicePrincipalPassword : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/User.cs b/sdk/dotnet/User.cs
index 8c6f846e2..e498d144a 100644
--- a/sdk/dotnet/User.cs
+++ b/sdk/dotnet/User.cs
@@ -44,6 +44,7 @@ namespace Pulumi.AzureAD
/// $ pulumi import azuread:index/user:User my_user 00000000-0000-0000-0000-000000000000
/// ```
///
+ [AzureADResourceType("azuread:index/user:User")]
public partial class User : Pulumi.CustomResource
{
///
diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs
index 54cc3dc5e..4a07088dc 100644
--- a/sdk/dotnet/Utilities.cs
+++ b/sdk/dotnet/Utilities.cs
@@ -77,4 +77,11 @@ static Utilities()
}
}
}
+
+ internal sealed class AzureADResourceTypeAttribute : Pulumi.ResourceTypeAttribute
+ {
+ public AzureADResourceTypeAttribute(string type) : base(type, Utilities.Version)
+ {
+ }
+ }
}
diff --git a/sdk/go.mod b/sdk/go.mod
index bc77b420d..20e554636 100644
--- a/sdk/go.mod
+++ b/sdk/go.mod
@@ -4,5 +4,5 @@ go 1.15
require (
github.com/pkg/errors v0.9.1
- github.com/pulumi/pulumi/sdk/v2 v2.0.0
+ github.com/pulumi/pulumi/sdk/v2 v2.18.2
)
diff --git a/sdk/go/azuread/application.go b/sdk/go/azuread/application.go
index 06b448a6e..d4a46b678 100644
--- a/sdk/go/azuread/application.go
+++ b/sdk/go/azuread/application.go
@@ -21,6 +21,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -398,15 +399,15 @@ type ApplicationInput interface {
ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
}
-func (Application) ElementType() reflect.Type {
- return reflect.TypeOf((*Application)(nil)).Elem()
+func (*Application) ElementType() reflect.Type {
+ return reflect.TypeOf((*Application)(nil))
}
-func (i Application) ToApplicationOutput() ApplicationOutput {
+func (i *Application) ToApplicationOutput() ApplicationOutput {
return i.ToApplicationOutputWithContext(context.Background())
}
-func (i Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput {
+func (i *Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationOutput)
}
@@ -415,7 +416,7 @@ type ApplicationOutput struct {
}
func (ApplicationOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationOutput)(nil)).Elem()
+ return reflect.TypeOf((*Application)(nil))
}
func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput {
diff --git a/sdk/go/azuread/applicationAppRole.go b/sdk/go/azuread/applicationAppRole.go
index 510f10b4d..f87650a04 100644
--- a/sdk/go/azuread/applicationAppRole.go
+++ b/sdk/go/azuread/applicationAppRole.go
@@ -21,7 +21,7 @@ import (
// package main
//
// import (
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -199,15 +199,15 @@ type ApplicationAppRoleInput interface {
ToApplicationAppRoleOutputWithContext(ctx context.Context) ApplicationAppRoleOutput
}
-func (ApplicationAppRole) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationAppRole)(nil)).Elem()
+func (*ApplicationAppRole) ElementType() reflect.Type {
+ return reflect.TypeOf((*ApplicationAppRole)(nil))
}
-func (i ApplicationAppRole) ToApplicationAppRoleOutput() ApplicationAppRoleOutput {
+func (i *ApplicationAppRole) ToApplicationAppRoleOutput() ApplicationAppRoleOutput {
return i.ToApplicationAppRoleOutputWithContext(context.Background())
}
-func (i ApplicationAppRole) ToApplicationAppRoleOutputWithContext(ctx context.Context) ApplicationAppRoleOutput {
+func (i *ApplicationAppRole) ToApplicationAppRoleOutputWithContext(ctx context.Context) ApplicationAppRoleOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationAppRoleOutput)
}
@@ -216,7 +216,7 @@ type ApplicationAppRoleOutput struct {
}
func (ApplicationAppRoleOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationAppRoleOutput)(nil)).Elem()
+ return reflect.TypeOf((*ApplicationAppRole)(nil))
}
func (o ApplicationAppRoleOutput) ToApplicationAppRoleOutput() ApplicationAppRoleOutput {
diff --git a/sdk/go/azuread/applicationCertificate.go b/sdk/go/azuread/applicationCertificate.go
index 096dc7904..2b1695a9c 100644
--- a/sdk/go/azuread/applicationCertificate.go
+++ b/sdk/go/azuread/applicationCertificate.go
@@ -159,15 +159,15 @@ type ApplicationCertificateInput interface {
ToApplicationCertificateOutputWithContext(ctx context.Context) ApplicationCertificateOutput
}
-func (ApplicationCertificate) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationCertificate)(nil)).Elem()
+func (*ApplicationCertificate) ElementType() reflect.Type {
+ return reflect.TypeOf((*ApplicationCertificate)(nil))
}
-func (i ApplicationCertificate) ToApplicationCertificateOutput() ApplicationCertificateOutput {
+func (i *ApplicationCertificate) ToApplicationCertificateOutput() ApplicationCertificateOutput {
return i.ToApplicationCertificateOutputWithContext(context.Background())
}
-func (i ApplicationCertificate) ToApplicationCertificateOutputWithContext(ctx context.Context) ApplicationCertificateOutput {
+func (i *ApplicationCertificate) ToApplicationCertificateOutputWithContext(ctx context.Context) ApplicationCertificateOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationCertificateOutput)
}
@@ -176,7 +176,7 @@ type ApplicationCertificateOutput struct {
}
func (ApplicationCertificateOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationCertificateOutput)(nil)).Elem()
+ return reflect.TypeOf((*ApplicationCertificate)(nil))
}
func (o ApplicationCertificateOutput) ToApplicationCertificateOutput() ApplicationCertificateOutput {
diff --git a/sdk/go/azuread/applicationOAuth2Permission.go b/sdk/go/azuread/applicationOAuth2Permission.go
index ce860cbdf..45c7c958b 100644
--- a/sdk/go/azuread/applicationOAuth2Permission.go
+++ b/sdk/go/azuread/applicationOAuth2Permission.go
@@ -21,7 +21,7 @@ import (
// package main
//
// import (
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -228,15 +228,15 @@ type ApplicationOAuth2PermissionInput interface {
ToApplicationOAuth2PermissionOutputWithContext(ctx context.Context) ApplicationOAuth2PermissionOutput
}
-func (ApplicationOAuth2Permission) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationOAuth2Permission)(nil)).Elem()
+func (*ApplicationOAuth2Permission) ElementType() reflect.Type {
+ return reflect.TypeOf((*ApplicationOAuth2Permission)(nil))
}
-func (i ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutput() ApplicationOAuth2PermissionOutput {
+func (i *ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutput() ApplicationOAuth2PermissionOutput {
return i.ToApplicationOAuth2PermissionOutputWithContext(context.Background())
}
-func (i ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutputWithContext(ctx context.Context) ApplicationOAuth2PermissionOutput {
+func (i *ApplicationOAuth2Permission) ToApplicationOAuth2PermissionOutputWithContext(ctx context.Context) ApplicationOAuth2PermissionOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationOAuth2PermissionOutput)
}
@@ -245,7 +245,7 @@ type ApplicationOAuth2PermissionOutput struct {
}
func (ApplicationOAuth2PermissionOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationOAuth2PermissionOutput)(nil)).Elem()
+ return reflect.TypeOf((*ApplicationOAuth2Permission)(nil))
}
func (o ApplicationOAuth2PermissionOutput) ToApplicationOAuth2PermissionOutput() ApplicationOAuth2PermissionOutput {
diff --git a/sdk/go/azuread/applicationPassword.go b/sdk/go/azuread/applicationPassword.go
index bc50b2951..1334e4d69 100644
--- a/sdk/go/azuread/applicationPassword.go
+++ b/sdk/go/azuread/applicationPassword.go
@@ -23,7 +23,7 @@ import (
// import (
// "fmt"
//
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -191,15 +191,15 @@ type ApplicationPasswordInput interface {
ToApplicationPasswordOutputWithContext(ctx context.Context) ApplicationPasswordOutput
}
-func (ApplicationPassword) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationPassword)(nil)).Elem()
+func (*ApplicationPassword) ElementType() reflect.Type {
+ return reflect.TypeOf((*ApplicationPassword)(nil))
}
-func (i ApplicationPassword) ToApplicationPasswordOutput() ApplicationPasswordOutput {
+func (i *ApplicationPassword) ToApplicationPasswordOutput() ApplicationPasswordOutput {
return i.ToApplicationPasswordOutputWithContext(context.Background())
}
-func (i ApplicationPassword) ToApplicationPasswordOutputWithContext(ctx context.Context) ApplicationPasswordOutput {
+func (i *ApplicationPassword) ToApplicationPasswordOutputWithContext(ctx context.Context) ApplicationPasswordOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationPasswordOutput)
}
@@ -208,7 +208,7 @@ type ApplicationPasswordOutput struct {
}
func (ApplicationPasswordOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ApplicationPasswordOutput)(nil)).Elem()
+ return reflect.TypeOf((*ApplicationPassword)(nil))
}
func (o ApplicationPasswordOutput) ToApplicationPasswordOutput() ApplicationPasswordOutput {
diff --git a/sdk/go/azuread/config/pulumiUtilities.go b/sdk/go/azuread/config/pulumiUtilities.go
index fa624469d..354c7e367 100644
--- a/sdk/go/azuread/config/pulumiUtilities.go
+++ b/sdk/go/azuread/config/pulumiUtilities.go
@@ -4,10 +4,14 @@
package config
import (
+ "fmt"
"os"
+ "reflect"
+ "regexp"
"strconv"
"strings"
+ "github.com/blang/semver"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
@@ -56,3 +60,18 @@ func getEnvOrDefault(def interface{}, parser envParser, vars ...string) interfac
}
return def
}
+
+// PkgVersion uses reflection to determine the version of the current package.
+func PkgVersion() (semver.Version, error) {
+ type sentinal struct{}
+ pkgPath := reflect.TypeOf(sentinal{}).PkgPath()
+ re := regexp.MustCompile("^.*/pulumi-azuread/sdk(/v\\d+)?")
+ if match := re.FindStringSubmatch(pkgPath); match != nil {
+ vStr := match[1]
+ if len(vStr) == 0 { // If the version capture group was empty, default to v1.
+ return semver.Version{Major: 1}, nil
+ }
+ return semver.MustParse(fmt.Sprintf("%s.0.0", vStr[2:])), nil
+ }
+ return semver.Version{}, fmt.Errorf("failed to determine the package version from %s", pkgPath)
+}
diff --git a/sdk/go/azuread/getApplication.go b/sdk/go/azuread/getApplication.go
index 46ab7af5f..c499de005 100644
--- a/sdk/go/azuread/getApplication.go
+++ b/sdk/go/azuread/getApplication.go
@@ -18,6 +18,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/getClientConfig.go b/sdk/go/azuread/getClientConfig.go
index 479b95608..42caf2b0d 100644
--- a/sdk/go/azuread/getClientConfig.go
+++ b/sdk/go/azuread/getClientConfig.go
@@ -15,7 +15,7 @@ import (
// package main
//
// import (
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/getDomains.go b/sdk/go/azuread/getDomains.go
index a5b7276b1..b583e0e7a 100644
--- a/sdk/go/azuread/getDomains.go
+++ b/sdk/go/azuread/getDomains.go
@@ -18,6 +18,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/getGroup.go b/sdk/go/azuread/getGroup.go
index 21ce11e7b..69b119b5e 100644
--- a/sdk/go/azuread/getGroup.go
+++ b/sdk/go/azuread/getGroup.go
@@ -19,6 +19,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/getGroups.go b/sdk/go/azuread/getGroups.go
index 78d09f3f8..56cb426e0 100644
--- a/sdk/go/azuread/getGroups.go
+++ b/sdk/go/azuread/getGroups.go
@@ -18,6 +18,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/getServicePrincipal.go b/sdk/go/azuread/getServicePrincipal.go
index dc9937949..346256263 100644
--- a/sdk/go/azuread/getServicePrincipal.go
+++ b/sdk/go/azuread/getServicePrincipal.go
@@ -19,6 +19,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -42,6 +43,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -65,6 +67,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/getUser.go b/sdk/go/azuread/getUser.go
index d06a49cbe..af34bf026 100644
--- a/sdk/go/azuread/getUser.go
+++ b/sdk/go/azuread/getUser.go
@@ -18,6 +18,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/getUsers.go b/sdk/go/azuread/getUsers.go
index 377b9ef3c..b2baa0761 100644
--- a/sdk/go/azuread/getUsers.go
+++ b/sdk/go/azuread/getUsers.go
@@ -18,6 +18,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
diff --git a/sdk/go/azuread/group.go b/sdk/go/azuread/group.go
index 2998c8ee4..9e3db5a59 100644
--- a/sdk/go/azuread/group.go
+++ b/sdk/go/azuread/group.go
@@ -22,7 +22,7 @@ import (
// package main
//
// import (
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -45,7 +45,7 @@ import (
// package main
//
// import (
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -204,15 +204,15 @@ type GroupInput interface {
ToGroupOutputWithContext(ctx context.Context) GroupOutput
}
-func (Group) ElementType() reflect.Type {
- return reflect.TypeOf((*Group)(nil)).Elem()
+func (*Group) ElementType() reflect.Type {
+ return reflect.TypeOf((*Group)(nil))
}
-func (i Group) ToGroupOutput() GroupOutput {
+func (i *Group) ToGroupOutput() GroupOutput {
return i.ToGroupOutputWithContext(context.Background())
}
-func (i Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput {
+func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput {
return pulumi.ToOutputWithContext(ctx, i).(GroupOutput)
}
@@ -221,7 +221,7 @@ type GroupOutput struct {
}
func (GroupOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*GroupOutput)(nil)).Elem()
+ return reflect.TypeOf((*Group)(nil))
}
func (o GroupOutput) ToGroupOutput() GroupOutput {
diff --git a/sdk/go/azuread/groupMember.go b/sdk/go/azuread/groupMember.go
index 58ebc5438..2fe00f4a1 100644
--- a/sdk/go/azuread/groupMember.go
+++ b/sdk/go/azuread/groupMember.go
@@ -22,6 +22,7 @@ import (
//
// import (
// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -144,15 +145,15 @@ type GroupMemberInput interface {
ToGroupMemberOutputWithContext(ctx context.Context) GroupMemberOutput
}
-func (GroupMember) ElementType() reflect.Type {
- return reflect.TypeOf((*GroupMember)(nil)).Elem()
+func (*GroupMember) ElementType() reflect.Type {
+ return reflect.TypeOf((*GroupMember)(nil))
}
-func (i GroupMember) ToGroupMemberOutput() GroupMemberOutput {
+func (i *GroupMember) ToGroupMemberOutput() GroupMemberOutput {
return i.ToGroupMemberOutputWithContext(context.Background())
}
-func (i GroupMember) ToGroupMemberOutputWithContext(ctx context.Context) GroupMemberOutput {
+func (i *GroupMember) ToGroupMemberOutputWithContext(ctx context.Context) GroupMemberOutput {
return pulumi.ToOutputWithContext(ctx, i).(GroupMemberOutput)
}
@@ -161,7 +162,7 @@ type GroupMemberOutput struct {
}
func (GroupMemberOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*GroupMemberOutput)(nil)).Elem()
+ return reflect.TypeOf((*GroupMember)(nil))
}
func (o GroupMemberOutput) ToGroupMemberOutput() GroupMemberOutput {
diff --git a/sdk/go/azuread/init.go b/sdk/go/azuread/init.go
new file mode 100644
index 000000000..8be7396eb
--- /dev/null
+++ b/sdk/go/azuread/init.go
@@ -0,0 +1,132 @@
+// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
+// *** Do not edit by hand unless you're certain you know what you are doing! ***
+
+package azuread
+
+import (
+ "fmt"
+
+ "github.com/blang/semver"
+ "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
+)
+
+type module struct {
+ version semver.Version
+}
+
+func (m *module) Version() semver.Version {
+ return m.version
+}
+
+func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
+ switch typ {
+ case "azuread:index/application:Application":
+ r, err = NewApplication(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/applicationAppRole:ApplicationAppRole":
+ r, err = NewApplicationAppRole(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/applicationCertificate:ApplicationCertificate":
+ r, err = NewApplicationCertificate(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/applicationOAuth2Permission:ApplicationOAuth2Permission":
+ r, err = NewApplicationOAuth2Permission(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/applicationPassword:ApplicationPassword":
+ r, err = NewApplicationPassword(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/group:Group":
+ r, err = NewGroup(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/groupMember:GroupMember":
+ r, err = NewGroupMember(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/servicePrincipal:ServicePrincipal":
+ r, err = NewServicePrincipal(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/servicePrincipalCertificate:ServicePrincipalCertificate":
+ r, err = NewServicePrincipalCertificate(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/servicePrincipalPassword:ServicePrincipalPassword":
+ r, err = NewServicePrincipalPassword(ctx, name, nil, pulumi.URN_(urn))
+ case "azuread:index/user:User":
+ r, err = NewUser(ctx, name, nil, pulumi.URN_(urn))
+ default:
+ return nil, fmt.Errorf("unknown resource type: %s", typ)
+ }
+
+ return
+}
+
+type pkg struct {
+ version semver.Version
+}
+
+func (p *pkg) Version() semver.Version {
+ return p.version
+}
+
+func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pulumi.ProviderResource, error) {
+ if typ != "pulumi:providers:azuread" {
+ return nil, fmt.Errorf("unknown provider type: %s", typ)
+ }
+
+ return NewProvider(ctx, name, nil, pulumi.URN_(urn))
+}
+
+func init() {
+ version, err := PkgVersion()
+ if err != nil {
+ fmt.Println("failed to determine package version. defaulting to v1: %v", err)
+ }
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/application",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/applicationAppRole",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/applicationCertificate",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/applicationOAuth2Permission",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/applicationPassword",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/group",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/groupMember",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/servicePrincipal",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/servicePrincipalCertificate",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/servicePrincipalPassword",
+ &module{version},
+ )
+ pulumi.RegisterResourceModule(
+ "azuread",
+ "index/user",
+ &module{version},
+ )
+ pulumi.RegisterResourcePackage(
+ "azuread",
+ &pkg{version},
+ )
+}
diff --git a/sdk/go/azuread/provider.go b/sdk/go/azuread/provider.go
index ed90456b7..b6f100636 100644
--- a/sdk/go/azuread/provider.go
+++ b/sdk/go/azuread/provider.go
@@ -129,15 +129,15 @@ type ProviderInput interface {
ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}
-func (Provider) ElementType() reflect.Type {
- return reflect.TypeOf((*Provider)(nil)).Elem()
+func (*Provider) ElementType() reflect.Type {
+ return reflect.TypeOf((*Provider)(nil))
}
-func (i Provider) ToProviderOutput() ProviderOutput {
+func (i *Provider) ToProviderOutput() ProviderOutput {
return i.ToProviderOutputWithContext(context.Background())
}
-func (i Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
+func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput)
}
@@ -146,7 +146,7 @@ type ProviderOutput struct {
}
func (ProviderOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ProviderOutput)(nil)).Elem()
+ return reflect.TypeOf((*Provider)(nil))
}
func (o ProviderOutput) ToProviderOutput() ProviderOutput {
diff --git a/sdk/go/azuread/pulumiUtilities.go b/sdk/go/azuread/pulumiUtilities.go
index 65c2293fd..60d6bb259 100644
--- a/sdk/go/azuread/pulumiUtilities.go
+++ b/sdk/go/azuread/pulumiUtilities.go
@@ -4,10 +4,14 @@
package azuread
import (
+ "fmt"
"os"
+ "reflect"
+ "regexp"
"strconv"
"strings"
+ "github.com/blang/semver"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
@@ -56,3 +60,18 @@ func getEnvOrDefault(def interface{}, parser envParser, vars ...string) interfac
}
return def
}
+
+// PkgVersion uses reflection to determine the version of the current package.
+func PkgVersion() (semver.Version, error) {
+ type sentinal struct{}
+ pkgPath := reflect.TypeOf(sentinal{}).PkgPath()
+ re := regexp.MustCompile("^.*/pulumi-azuread/sdk(/v\\d+)?")
+ if match := re.FindStringSubmatch(pkgPath); match != nil {
+ vStr := match[1]
+ if len(vStr) == 0 { // If the version capture group was empty, default to v1.
+ return semver.Version{Major: 1}, nil
+ }
+ return semver.MustParse(fmt.Sprintf("%s.0.0", vStr[2:])), nil
+ }
+ return semver.Version{}, fmt.Errorf("failed to determine the package version from %s", pkgPath)
+}
diff --git a/sdk/go/azuread/servicePrincipal.go b/sdk/go/azuread/servicePrincipal.go
index 41665da9d..c16128d4c 100644
--- a/sdk/go/azuread/servicePrincipal.go
+++ b/sdk/go/azuread/servicePrincipal.go
@@ -21,7 +21,7 @@ import (
// package main
//
// import (
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -184,15 +184,15 @@ type ServicePrincipalInput interface {
ToServicePrincipalOutputWithContext(ctx context.Context) ServicePrincipalOutput
}
-func (ServicePrincipal) ElementType() reflect.Type {
- return reflect.TypeOf((*ServicePrincipal)(nil)).Elem()
+func (*ServicePrincipal) ElementType() reflect.Type {
+ return reflect.TypeOf((*ServicePrincipal)(nil))
}
-func (i ServicePrincipal) ToServicePrincipalOutput() ServicePrincipalOutput {
+func (i *ServicePrincipal) ToServicePrincipalOutput() ServicePrincipalOutput {
return i.ToServicePrincipalOutputWithContext(context.Background())
}
-func (i ServicePrincipal) ToServicePrincipalOutputWithContext(ctx context.Context) ServicePrincipalOutput {
+func (i *ServicePrincipal) ToServicePrincipalOutputWithContext(ctx context.Context) ServicePrincipalOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServicePrincipalOutput)
}
@@ -201,7 +201,7 @@ type ServicePrincipalOutput struct {
}
func (ServicePrincipalOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ServicePrincipalOutput)(nil)).Elem()
+ return reflect.TypeOf((*ServicePrincipal)(nil))
}
func (o ServicePrincipalOutput) ToServicePrincipalOutput() ServicePrincipalOutput {
diff --git a/sdk/go/azuread/servicePrincipalCertificate.go b/sdk/go/azuread/servicePrincipalCertificate.go
index ab2bd67b5..71f394ac7 100644
--- a/sdk/go/azuread/servicePrincipalCertificate.go
+++ b/sdk/go/azuread/servicePrincipalCertificate.go
@@ -159,15 +159,15 @@ type ServicePrincipalCertificateInput interface {
ToServicePrincipalCertificateOutputWithContext(ctx context.Context) ServicePrincipalCertificateOutput
}
-func (ServicePrincipalCertificate) ElementType() reflect.Type {
- return reflect.TypeOf((*ServicePrincipalCertificate)(nil)).Elem()
+func (*ServicePrincipalCertificate) ElementType() reflect.Type {
+ return reflect.TypeOf((*ServicePrincipalCertificate)(nil))
}
-func (i ServicePrincipalCertificate) ToServicePrincipalCertificateOutput() ServicePrincipalCertificateOutput {
+func (i *ServicePrincipalCertificate) ToServicePrincipalCertificateOutput() ServicePrincipalCertificateOutput {
return i.ToServicePrincipalCertificateOutputWithContext(context.Background())
}
-func (i ServicePrincipalCertificate) ToServicePrincipalCertificateOutputWithContext(ctx context.Context) ServicePrincipalCertificateOutput {
+func (i *ServicePrincipalCertificate) ToServicePrincipalCertificateOutputWithContext(ctx context.Context) ServicePrincipalCertificateOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServicePrincipalCertificateOutput)
}
@@ -176,7 +176,7 @@ type ServicePrincipalCertificateOutput struct {
}
func (ServicePrincipalCertificateOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ServicePrincipalCertificateOutput)(nil)).Elem()
+ return reflect.TypeOf((*ServicePrincipalCertificate)(nil))
}
func (o ServicePrincipalCertificateOutput) ToServicePrincipalCertificateOutput() ServicePrincipalCertificateOutput {
diff --git a/sdk/go/azuread/servicePrincipalPassword.go b/sdk/go/azuread/servicePrincipalPassword.go
index 260b48893..c68a76b6e 100644
--- a/sdk/go/azuread/servicePrincipalPassword.go
+++ b/sdk/go/azuread/servicePrincipalPassword.go
@@ -23,7 +23,7 @@ import (
// import (
// "fmt"
//
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -197,15 +197,15 @@ type ServicePrincipalPasswordInput interface {
ToServicePrincipalPasswordOutputWithContext(ctx context.Context) ServicePrincipalPasswordOutput
}
-func (ServicePrincipalPassword) ElementType() reflect.Type {
- return reflect.TypeOf((*ServicePrincipalPassword)(nil)).Elem()
+func (*ServicePrincipalPassword) ElementType() reflect.Type {
+ return reflect.TypeOf((*ServicePrincipalPassword)(nil))
}
-func (i ServicePrincipalPassword) ToServicePrincipalPasswordOutput() ServicePrincipalPasswordOutput {
+func (i *ServicePrincipalPassword) ToServicePrincipalPasswordOutput() ServicePrincipalPasswordOutput {
return i.ToServicePrincipalPasswordOutputWithContext(context.Background())
}
-func (i ServicePrincipalPassword) ToServicePrincipalPasswordOutputWithContext(ctx context.Context) ServicePrincipalPasswordOutput {
+func (i *ServicePrincipalPassword) ToServicePrincipalPasswordOutputWithContext(ctx context.Context) ServicePrincipalPasswordOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServicePrincipalPasswordOutput)
}
@@ -214,7 +214,7 @@ type ServicePrincipalPasswordOutput struct {
}
func (ServicePrincipalPasswordOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*ServicePrincipalPasswordOutput)(nil)).Elem()
+ return reflect.TypeOf((*ServicePrincipalPassword)(nil))
}
func (o ServicePrincipalPasswordOutput) ToServicePrincipalPasswordOutput() ServicePrincipalPasswordOutput {
diff --git a/sdk/go/azuread/user.go b/sdk/go/azuread/user.go
index 6e2f8ec60..ac5dcbfdb 100644
--- a/sdk/go/azuread/user.go
+++ b/sdk/go/azuread/user.go
@@ -21,7 +21,7 @@ import (
// package main
//
// import (
-// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread"
+// "github.com/pulumi/pulumi-azuread/sdk/v3/go/azuread/"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
@@ -342,15 +342,15 @@ type UserInput interface {
ToUserOutputWithContext(ctx context.Context) UserOutput
}
-func (User) ElementType() reflect.Type {
- return reflect.TypeOf((*User)(nil)).Elem()
+func (*User) ElementType() reflect.Type {
+ return reflect.TypeOf((*User)(nil))
}
-func (i User) ToUserOutput() UserOutput {
+func (i *User) ToUserOutput() UserOutput {
return i.ToUserOutputWithContext(context.Background())
}
-func (i User) ToUserOutputWithContext(ctx context.Context) UserOutput {
+func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserOutput)
}
@@ -359,7 +359,7 @@ type UserOutput struct {
}
func (UserOutput) ElementType() reflect.Type {
- return reflect.TypeOf((*UserOutput)(nil)).Elem()
+ return reflect.TypeOf((*User)(nil))
}
func (o UserOutput) ToUserOutput() UserOutput {
diff --git a/sdk/python/setup.py b/sdk/python/setup.py
index 22d174107..0eb440572 100644
--- a/sdk/python/setup.py
+++ b/sdk/python/setup.py
@@ -48,7 +48,7 @@ def readme():
packages=find_packages(),
package_data={
'pulumi_azuread': [
- 'py.typed'
+ 'py.typed',
]
},
install_requires=[