Set-​Azure​Rm​Vmss​Boot​Diagnostic

Sets the virtual machine scale set boot diagnostics profile.

Syntax

Set-AzureRmVmssBootDiagnostic
   [-VirtualMachineScaleSet] <VirtualMachineScaleSet>
   [[-Enabled] <Boolean>]
   [[-StorageUri] <String>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Sets the virtual machine scale set boot diagnostics profile.

Examples

Example 1: Set the boot diagnostics profile property for a VMSS

PS C:\> $vmss = New-AzureRmVmssConfig -Location $loc -SkuCapacity 2 -SkuName 'Standard_A0'
PS C:\> Set-AzureRmVmssBootDiagnostic -VirtualMachineScaleSet $vmss -Enabled $true -StorageUri $storageUri;
PS C:\> New-AzureRmVmss -ResourceGroupName $rgname -Name "ContosoVMSS" -VirtualMachineScaleSet $vmss;

This command sets boot diagnostics profile property for the VMSS named ContosoVMSS.

Required Parameters

-VirtualMachineScaleSet

Specifies the VMSS object. You can use the New-AzureRmVmssConfig cmdlet to create the object.

Type:VirtualMachineScaleSet
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Enabled

Whether boot diagnostics should be enabled on the virtual machine scale set.

Type:Boolean
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-StorageUri

URI of the storage account to use for placing the console output and screenshot.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet

System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] System.String

Outputs

Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet