Delen via


Update-AzIotSecuritySolution

Een of meer van de volgende eigenschappen bijwerken in de IoT-beveiligingsoplossing: tags, configuratie van aanbevelingen, door de gebruiker gedefinieerde resources

Syntax

Update-AzIotSecuritySolution
      -Name <String>
      -ResourceGroupName <String>
      [-Tag <Hashtable>]
      [-UserDefinedResource <PSUserDefinedResources>]
      [-RecommendationsConfiguration <PSRecommendationConfiguration[]>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzIotSecuritySolution
      -ResourceId <String>
      [-Tag <Hashtable>]
      [-UserDefinedResource <PSUserDefinedResources>]
      [-RecommendationsConfiguration <PSRecommendationConfiguration[]>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzIotSecuritySolution
      -InputObject <PSIotSecuritySolution>
      [-Tag <Hashtable>]
      [-UserDefinedResource <PSUserDefinedResources>]
      [-RecommendationsConfiguration <PSRecommendationConfiguration[]>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

De cmdlet Update-AzIotSecuritySolution updayes een of meer van de volgende eigenschappen in een specifieke IoT-beveiligingsoplossing: tags, aanbevelingsconfiguratie, door de gebruiker gedefinieerde resources. Alleen de opgegeven eigenschappen worden bijgewerkt in de iot-beveiligingsoplossing. De IoT-beveiligingsoplossing verzamelt beveiligingsgegevens en gebeurtenissen van iot-apparaten en iot-hub om bedreigingen te voorkomen en te detecteren.

Voorbeelden

Voorbeeld 1

$RecConfig = New-AzIotSecuritySolutionRecommendationConfigurationObject -RecommendationType "IoT_OpenPorts" -Enabled $false
$UserDefinedResource = New-AzIotSecuritySolutionUserDefinedResourcesObject -Query 'where type != "microsoft.devices/iothubs" | where name contains "v2"' `
-QuerySubscriptionList @("XXXXXXXX-XXXX-XXXXX-XXXX-XXXXXXXXXXXX")
Update-AzIotSecuritySolution -Name "MySample" -ResourceGroupName "MyResourceGroup" -RecommendationsConfiguration @($RecConfig) -UserDefinedResource $UserDefinedResource

Id: "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft.Security/IoTSecuritySolutions/MySample"
Name: "MySample"
Type: "Microsoft.Security/IoTSecuritySolutions"
Location: "westus"
DisplayName: "MySample"
status: "Enabled"
Export: ["RawEvents"]
DisabledDataSources: ["TwinData"]
Workspace: "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourcegroups/MyResourceGroup/providers/microsoft.operationalinsights/workspaces/MyLA"
AdditionalWorkspaces: null
IotHubs: ["/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourcegroups/MyResourceGroup/providers/microsoft.devices/iothubs/MySample"]
UserDefinedResources: {
	Query: 'where type != "microsoft.devices/iothubs" | where name contains "v2"' 
	QuerySubscriptions: ["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"]
}
RecommendationsConfiguration: [
{
	RecommendationType: "IoT_ACRAuthentication"
	Name: "Service prinicpal not used with ACR repository"
	Status: "Enabled"
}
{
	RecommendationType: "IoT_OpenPorts"
	Name: "Device has open port"
	Status: "Disabled"
}
{
	RecommendationType: "IoT_AgentSendsUnutilizedMessages"
	Name: "Agent sending underutilized messages"
	Status: "Enabled"
}]
AutoDiscoveredResources: ["/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourcegroups/MyResourceGroup/providers/microsoft.devices/iothubs/MySample"]
UnmaskedIpLoggingStatus: "Enabled"

IOT-beveiligingsoplossing 'MySample' bijwerken vanuit resourcegroep 'MyResourceGroup' met aanbevelingsconfiguratie en door de gebruiker gedefinieerde resources

Parameters

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

Type:SwitchParameter
Aliases:cf
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Invoerobject.

Type:PSIotSecuritySolution
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Resourcenaam.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-RecommendationsConfiguration

Aanbevelingen configuratie.

Type:PSRecommendationConfiguration[]
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Naam van de resourcegroep.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Id van de beveiligingsresource waarvoor u de opdracht wilt aanroepen.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-Tag

Tags.

Type:Hashtable
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-UserDefinedResource

Door de gebruiker gedefinieerde resources.

Type:PSUserDefinedResources
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

Type:SwitchParameter
Aliases:wi
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

String

PSIotSecuritySolution

Hashtable

PSUserDefinedResources

PSRecommendationConfiguration[]

Uitvoerwaarden

PSIotSecuritySolution