forked from dsccommunity/DscWorkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some cleanup and documentation added (dsccommunity#163)
* Added documentation * Cleanup * Added back reference configuration files * Cleanup
- Loading branch information
Showing
11 changed files
with
60 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
Lab Guest Configuration/10 Azure Guest Configuration Lab.ps1
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
14 changes: 14 additions & 0 deletions
14
Lab Guest Configuration/20 Azure Guest Configuration Lab Customizations.ps1
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#Get-AzPolicyAssignment -Scope $resourceGroup.ResourceId | ||
$subscriptionId = '<SubscriptionId>' | ||
$resourceGroupName = '<ResourceGroupName>' | ||
$machineName = '<MachineName>' | ||
|
||
$uri = "https://management.azure.com/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/virtualMachines/$machineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments?api-version=2022-01-25" | ||
|
||
Invoke-AzRestMethod -Method GET -Uri $uri | Select-Object -ExpandProperty content | ConvertFrom-Json | | ||
Select-Object -ExpandProperty value | | ||
Format-Table Name, | ||
@{ | ||
Name = 'AssignmentType' | ||
Expression = { $PSItem.properties.guestConfiguration.assignmentType } | ||
}, | ||
@{ | ||
Name = 'LastComplianceStatusChecked' | ||
Expression = { $PSItem.properties.lastComplianceStatusChecked } | ||
}, | ||
@{ | ||
Name = 'ComplianceStatus' | ||
Expression = { $PSItem.properties.complianceStatus } | ||
}, | ||
@{ | ||
Name = 'Version' | ||
Expression = { $PSItem.properties.guestConfiguration.version } | ||
} |
12 changes: 0 additions & 12 deletions
12
source/GCPackages/UserAmyNotPresent/UserAmyNotPresent.config.ps1
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
source/GCPackages/UserAmyPresent/UserAmyPresent.config.ps1
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.