Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/adlsgen2setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ async def create_or_get_group(self, group_name: str):
logging.info(f"Could not find group {group_name}, creating...")
group = {
"displayName": group_name,
"groupTypes": ["Unified"],
"securityEnabled": self.security_enabled_groups,
"groupTypes": ["Unified"],
# If Unified does not work for you, then you may need the following settings instead:
# "mailEnabled": False,
# "mailNickname": group_name,
}
async with session.post("https://graph.microsoft.com/v1.0/groups", json=group) as response:
content = await response.json()
Expand Down
2 changes: 1 addition & 1 deletion scripts/adlsgen2setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

. ./scripts/loadenv.sh

if [ -n "$AZURE_ADLS_GEN2_STORAGE_ACCOUNT" ]; then
if [ -z "$AZURE_ADLS_GEN2_STORAGE_ACCOUNT" ]; then
echo 'AZURE_ADLS_GEN2_STORAGE_ACCOUNT must be set to continue'
exit 1
fi
Expand Down