Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adlsgen2setup.ps1does not run properly #1966

Open
dmpai-per opened this issue Sep 13, 2024 · 4 comments
Open

adlsgen2setup.ps1does not run properly #1966

dmpai-per opened this issue Sep 13, 2024 · 4 comments

Comments

@dmpai-per
Copy link

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

i followed this guide (https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/login_and_acl.md#azure-data-lake-storage-gen2-setup:~:text=Azure%20Data%20Lake%20Storage%20Gen2%20Setup) to create groups and upload docs from the data folder to the storage account but script is not working

Any log messages given by the failure

image

Expected/desired behavior

groups to be created, docs to be uploaded to storage account

OS and Version?

windows 11

azd version?

run azd version and copy paste here.

Versions

azd version 1.10.1

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@samarjit4290
Copy link

I was getting the same issue earlier . I resolved it by adding the below 2 lines in the create_or_get_group method .
In your create_or_get_group method, when you're constructing the group object before making the POST request to create the group, you need to add the mailEnabled property. Additionally, the mailNickname property is required for groups that have mailEnabled set to true

Original snippet code :-

group = {
    "displayName": group_name,
    "groupTypes": ["Unified"],
    "securityEnabled": self.security_enabled_groups,
}

Add the below 2 lines in this one .

"mailEnabled": False,  # Set to True if the group should have a mailbox
"mailNickname": group_name.replace(" ", "_")  # Provide a mailNickname, even if mailEnabled is False_

Modified snippet code :-

group = {
                    "displayName": group_name,
                    "groupTypes": ["Unified"],
                    "securityEnabled": self.security_enabled_groups,
                    "mailEnabled": False,  # Add mailEnabled property
                    "mailNickname": group_name.replace(" ", "_")  # Add mailNickname
                }

However, after modifyng this code if you are still encountering error like "Authorization_RequestDenied: Tenant admin has not enabled Unified Group creation" , just comment out the below line :-

# "groupTypes": ["Unified"],

Hopefully it should work.

@dmpai-per
Copy link
Author

dmpai-per commented Sep 14, 2024

@samarjit4290 thanks it is working now.

@samarjit4290
Copy link

@dmpai-per You can find the groups in Azure portal directly if you have access to Entra ID (Azure Active Directory). Since you were able to create the groups , I assume you already have access to Entra ID and can view the groups as well . 👍

@dmpai-per
Copy link
Author

@samarjit4290 actually i am using MS Entra ID External (this feature here #1959) so i am not quite sure how to add the external users from the external tenant to the new created groups in the tenant that has the storage account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants