This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-ARMAPIToken { | |
<# | |
.DESCRIPTION | |
Requests a token from STS with the MS Graph specified as the resource/intended audience | |
#> | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory = $True)] | |
[string] | |
$ClientID, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function for getting an MS Graph Token | |
Function Get-MSGraphToken { | |
<# | |
.DESCRIPTION | |
Requests a token from STS with the MS Graph specified as the resource/intended audience | |
#> | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory = $True)] | |
[string] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.14.2 | |
ports: | |
- containerPort: 8123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: command-demo-2 | |
labels: | |
purpose: demonstrate-command | |
spec: | |
containers: | |
- name: command-demo-container | |
image: debian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-AllEntraDevices { | |
<# | |
.SYNOPSIS | |
Retrieves all JSON-formatted Entra device objects using the MS Graph API | |
Author: Andy Robbins (@_wald0) | |
License: GPLv3 | |
Required Dependencies: None | |
.DESCRIPTION |
OlderNewer