You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix `Get-ServiceNowAttachment` returning 0 records when the table name didn't match the table class name, [#188](https://github.com/Snow-Shell/servicenow-powershell/issues/188)
2
-
- Update `Add-ServiceNowAttachment``-Table` and `-ID` parameters with the same 'smarts' as other functions with table name lookup
1
+
- Add docker image with each new build and [publish to dockerhub](https://hub.docker.com/repository/docker/gdbarron/servicenow-module). Add the below environment variables to `Get-ServiceNowAuth` for use with docker image, but could be used outside of it as well.
2
+
- SNOW_SERVER: the ServiceNow instance, eg. instance.service-now.com
3
+
- SNOW_TOKEN: pre-generated oauth token. Provide this or SNOW_USER/SNOW_PASS.
Copy file name to clipboardExpand all lines: Readme.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,14 @@ Requires authorization in your ServiceNow tenant. Due to the custom nature of S
22
22
23
23
The ServiceNow module should be installed from the [PowerShell Gallery](https://www.powershellgallery.com/packages/ServiceNow) with `install-module ServiceNow`.
24
24
25
+
A [docker image](https://hub.docker.com/repository/docker/gdbarron/servicenow-module) is also available with [Microsoft's PowerShell base image](https://hub.docker.com/_/microsoft-powershell) and the ServiceNow module preinstalled. The following environment variables should be used:
26
+
- SNOW_SERVER: the ServiceNow instance, eg. instance.service-now.com
27
+
- SNOW_TOKEN: pre-generated oauth token. Provide this or SNOW_USER/SNOW_PASS.
28
+
- SNOW_USER: username to connect to SNOW_SERVER
29
+
- SNOW_PASS: password for SNOW_USER
30
+
31
+
When using the docker image, creating a new session is not required.
32
+
25
33
### Creating a new session
26
34
27
35
Creating a new session will create a script scoped variable `$ServiceNowSession` which will be used by default in other functions.
0 commit comments