Set-AzIotHub
Uppdateringar egenskaperna för en IotHub.
Syntax
Set-AzIotHub
-ResourceGroupName <String>
-Name <String>
-SkuName <PSIotHubSku>
[-Units <Int64>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzIotHub
-ResourceGroupName <String>
-Name <String>
-EventHubRetentionTimeInDays <Int64>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzIotHub
-ResourceGroupName <String>
-Name <String>
[-FileUploadStorageConnectionString <String>]
[-FileUploadContainerName <String>]
[-FileUploadSasUriTtl <TimeSpan>]
[-FileUploadNotificationTtl <TimeSpan>]
[-FileUploadNotificationMaxDeliveryCount <Int32>]
-EnableFileUploadNotifications <Boolean>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzIotHub
-ResourceGroupName <String>
-Name <String>
-CloudToDevice <PSCloudToDeviceProperties>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzIotHub
-ResourceGroupName <String>
-Name <String>
[-RoutingProperties <PSRoutingProperties>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzIotHub
-ResourceGroupName <String>
-Name <String>
[-Routes <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzIotHub
-ResourceGroupName <String>
-Name <String>
[-FallbackRoute <PSFallbackRouteMetadata>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Uppdateringar egenskaperna för en IotHub.
Exempel
Exempel 1 Uppdatera sku:n
Set-AzIotHub -ResourceGroupName "myresourcegroup" -Name "myiothub" -SkuName S1 -Units 5
Uppdatera sku till S1 och enheter till 5 för IotHub med namnet "myiothub"
Exempel 2 Uppdatera eventhub-egenskaperna
Set-AzIotHub -ResourceGroupName "myresourcegroup" -Name "myiothub" -EventHubRetentionTimeInDays 4
Uppdatera kvarhållningstiden för telemetri i dagar till 4 för IotHub med namnet "myiothub"
Parametrar
-CloudToDevice
Egenskaperna för kommandokön för molnet till enheten.
Type: | PSCloudToDeviceProperties |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableFileUploadNotifications
Flagga som anger om meddelanden ska aktiveras för filuppladdning.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EventHubRetentionTimeInDays
Kvarhållningstid i dagar.
Type: | Int64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FallbackRoute
Återställningsväg för routning
Type: | PSFallbackRouteMetadata |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FileUploadContainerName
Namnet på containern som filerna ska laddas upp till.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FileUploadNotificationMaxDeliveryCount
Det maximala leveransantalet för meddelanden om filuppladdning.
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FileUploadNotificationTtl
Time to live-värde för meddelandena i meddelandekön för filuppladdning.
Type: | TimeSpan |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FileUploadSasUriTtl
Tid att leva för den SAS-URI som genereras för filuppladdning.
Type: | TimeSpan |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FileUploadStorageConnectionString
Lagringen anslutningssträng att ladda upp filerna till.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Namnet på IotHub
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Namnet på resursgruppen
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Routes
Vägar som ska läggas till för routning
Type: | List<T>[PSRouteMetadata] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RoutingProperties
Routningsegenskaperna för routning av meddelanden till externa slutpunkter
Type: | PSRoutingProperties |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SkuName
Namnet på SKU:n.
Type: | PSIotHubSku |
Accepted values: | F1, S1, S2, S3, B1, B2, B3 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Units
Antal enheter
Type: | Int64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |