-
Notifications
You must be signed in to change notification settings - Fork 4k
Add Dedicated Host redeploy support #27764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
thomascoats
wants to merge
4
commits into
Azure:main
Choose a base branch
from
thomascoats:redeploy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+111
−36
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -15,16 +15,15 @@ Updates the Dedicated Host. | |
### DefaultParameter (Default) | ||
``` | ||
Update-AzHost [-ResourceGroupName] <String> [-HostGroupName] <String> [-Name] <String> [-Sku <String>] | ||
[-AutoReplaceOnFailure <Boolean>] [-LicenseType <DedicatedHostLicenseTypes>] | ||
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] | ||
[<CommonParameters>] | ||
[-AutoReplaceOnFailure <Boolean>] [-LicenseType <DedicatedHostLicenseTypes>] [-Redeploy <Boolean>] | ||
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] | ||
``` | ||
|
||
### ResourceIdParameter | ||
``` | ||
Update-AzHost [-Sku <String>] [-AutoReplaceOnFailure <Boolean>] [-LicenseType <DedicatedHostLicenseTypes>] | ||
[-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>] | ||
[-WhatIf] [-Confirm] [<CommonParameters>] | ||
[-Redeploy <Boolean>] [-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you regenerate the help md file? I think "Redeploy" should be "SwitchParameter". |
||
[<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
@@ -60,7 +59,7 @@ This command updates the given Sku of a host. | |
Specifies whether the host should be replaced automatically in case of a failure. | ||
|
||
```yaml | ||
Type: System.Boolean | ||
Type: Boolean | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
|
@@ -71,11 +70,26 @@ Accept pipeline input: False | |
Accept wildcard characters: False | ||
``` | ||
|
||
### -Confirm | ||
Prompts you for confirmation before running the cmdlet. | ||
|
||
```yaml | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: cf | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -DefaultProfile | ||
The credentials, account, tenant, and subscription used for communication with Azure. | ||
|
||
```yaml | ||
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer | ||
Type: IAzureContextContainer | ||
Parameter Sets: (All) | ||
Aliases: AzContext, AzureRmContext, AzureCredential | ||
|
||
|
@@ -90,7 +104,7 @@ Accept wildcard characters: False | |
Name of the Host Group. | ||
|
||
```yaml | ||
Type: System.String | ||
Type: String | ||
Parameter Sets: DefaultParameter | ||
Aliases: | ||
|
||
|
@@ -105,7 +119,7 @@ Accept wildcard characters: False | |
Specifies the software license type that will be applied to the VMs deployed on the host. Possible values are: None, Windows_Server_Hybrid, and Windows_Server_Perpetual. Default value is None. | ||
|
||
```yaml | ||
Type: Microsoft.Azure.Management.Compute.Models.DedicatedHostLicenseTypes | ||
Type: DedicatedHostLicenseTypes | ||
Parameter Sets: (All) | ||
Aliases: | ||
Accepted values: None, WindowsServerHybrid, WindowsServerPerpetual | ||
|
@@ -121,7 +135,7 @@ Accept wildcard characters: False | |
Specifies the name of the Host to be updated. | ||
|
||
```yaml | ||
Type: System.String | ||
Type: String | ||
Parameter Sets: DefaultParameter | ||
Aliases: HostName | ||
|
||
|
@@ -132,11 +146,26 @@ Accept pipeline input: True (ByPropertyName) | |
Accept wildcard characters: False | ||
``` | ||
|
||
### -Redeploy | ||
Redeploy the dedicated host. The operation will complete successfully once the dedicated host has migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host after the redeploy check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. | ||
|
||
```yaml | ||
Type: Boolean | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -ResourceGroupName | ||
The name of the resource group. | ||
|
||
```yaml | ||
Type: System.String | ||
Type: String | ||
Parameter Sets: DefaultParameter | ||
Aliases: | ||
|
||
|
@@ -151,7 +180,7 @@ Accept wildcard characters: False | |
Resource Id of the Host to be updated. | ||
|
||
```yaml | ||
Type: System.String | ||
Type: String | ||
Parameter Sets: ResourceIdParameter | ||
Aliases: | ||
|
||
|
@@ -166,7 +195,7 @@ Accept wildcard characters: False | |
The Sku Name that needs to be updated. | ||
|
||
```yaml | ||
Type: System.String | ||
Type: String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
|
@@ -177,27 +206,12 @@ Accept pipeline input: False | |
Accept wildcard characters: False | ||
``` | ||
|
||
### -Confirm | ||
Prompts you for confirmation before running the cmdlet. | ||
|
||
```yaml | ||
Type: System.Management.Automation.SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: cf | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
|
||
### -WhatIf | ||
Shows what would happen if the cmdlet runs. | ||
The cmdlet is not run. | ||
|
||
```yaml | ||
Type: System.Management.Automation.SwitchParameter | ||
Type: SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: wi | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the recording file.