Need help with getting started #132
Replies: 3 comments 3 replies
-
The required env vars when running in interactive mode are |
Beta Was this translation helpful? Give feedback.
-
Hello Tobias. It looks like I'm ok now. It turns out I had the wrong secret value in my environment variables. C:\Windows\system32>IntuneCD-startbackup -m 1 -o yaml -p C:\IntuneCD |
Beta Was this translation helpful? Give feedback.
-
Happy to hear you were able to get going :) |
Beta Was this translation helpful? Give feedback.
-
Hello. I went through all the preliminary steps for getting the project started but I'm sure I'm missing something here.
Created Azure App Registration with permissions
DeviceManagementApps.ReadWrite.All
DeviceManagementConfiguration.ReadWrite.All
DeviceManagementServiceConfig.ReadWrite.All
DeviceManagementManagedDevices.ReadWrite.All
Group.Read.All
Policy.Read.All
Policy.ReadWrite.ConditionalAccess
Installed Python and enabled it to set the path
Installed IntuneCD with pip install IntuneCD
--upgrade works
--help works
Connected to MSGraph as Global Admin in PowerShell
But when I try to run the following, I am getting errors:
C:\Windows\system32>IntuneCD-startbackup -m 1 -o yaml -p C:\IntuneCD -i
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\MODAdministrator\AppData\Local\Programs\Python\Python311\Scripts\IntuneCD-startbackup.exe_main.py", line 7, in
File "C:\Users\MODAdministrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\IntuneCD\run_backup.py", line 164, in start
token = getAuth(
^^^^^^^^
File "C:\Users\MODAdministrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\IntuneCD\get_authparams.py", line 44, in getAuth
raise Exception("One or more os.environ variables not set")
Exception: One or more os.environ variables not set
Not sure what os.environ variables it is talking about.
I found this comment on another discussion and added it: configure PYTHONUTF8 to 1
Beta Was this translation helpful? Give feedback.
All reactions