Skip to content

Commit

Permalink
[Fixes] Update VM domainJoin parameter usage (#1711)
Browse files Browse the repository at this point in the history
* Update readme.md

Readme PR per request by Rainer Halanek PR related to bug I submitted (#1595). Updated the domain join settings to the correct ones to domain join correctly. The previous ones in the readme do not work and would attempt to join a blank workgroup. Reference: https://docs.microsoft.com/en-us/azure/active-directory-domain-services/join-windows-vm-template

* Update deploy.bicep @description on the extensionDomainJoinPassword param to match readme change

In response to @ahmadabdalla 's request in the PR review. Module param description updated to reflect change in readme to correct domain join settings.

* Update readme.md

Updated same changes in domain join setting parameters as in vm readme. Also changed parameter description in readme

* Update readme.md

Updated the readme parameter description to match the changes.

* Update deploy.bicep

Updated parameter description for extensionDomainJoinPassword to match changes

* Update deploy.bicep

Description for parameter updated to match changes in readme
  • Loading branch information
jriekse5555 authored Aug 1, 2022
1 parent ee3299c commit 31dedb3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ param licenseType string = ''
@description('Optional. Specifies if Windows VM disks should be encrypted with Server-side encryption + Customer managed Key.')
param enableServerSideEncryption bool = false

@description('Optional. Required if domainName is specified. Password of the user specified in domainJoinUser parameter.')
@description('Optional. Required if name is specified. Password of the user specified in user parameter.')
@secure()
param extensionDomainJoinPassword string = ''

Expand Down
22 changes: 11 additions & 11 deletions modules/Microsoft.Compute/virtualMachineScaleSets/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The following resources are required to be able to deploy this resource.
| `extensionDependencyAgentConfig` | object | `{object}` | | The configuration for the [Dependency Agent] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionDiskEncryptionConfig` | object | `{object}` | | The configuration for the [Disk Encryption] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionDomainJoinConfig` | object | `{object}` | | The configuration for the [Domain Join] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionDomainJoinPassword` | secureString | `''` | | Required if domainName is specified. Password of the user specified in domainJoinUser parameter. |
| `extensionDomainJoinPassword` | secureString | `''` | | Required if name is specified. Password of the user specified in user parameter. |
| `extensionDSCConfig` | object | `{object}` | | The configuration for the [Desired State Configuration] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionMonitoringAgentConfig` | object | `{object}` | | The configuration for the [Monitoring Agent] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionNetworkWatcherAgentConfig` | object | `{object}` | | The configuration for the [Network Watcher Agent] extension. Must at least contain the ["enabled": true] property to be executed. |
Expand Down Expand Up @@ -386,11 +386,11 @@ nicConfigurations: [
"value": {
"enabled": true,
"settings": {
"domainName": "contoso.com",
"domainJoinUser": "test.user@testcompany.com",
"domainJoinOU": "OU=testOU; DC=contoso; DC=com",
"domainJoinRestart": true,
"domainJoinOptions": 3
"name": "contoso.com",
"user": "test.user@testcompany.com",
"ouPath": "OU=testOU; DC=contoso; DC=com",
"restart": true,
"options": 3
}
}
},
Expand All @@ -412,11 +412,11 @@ nicConfigurations: [
extensionDomainJoinConfig: {
enabled: true
settings: {
domainName: 'contoso.com'
domainJoinUser: 'test.user@testcompany.com'
domainJoinOU: 'OU=testOU; DC=contoso; DC=com'
domainJoinRestart: true
domainJoinOptions: 3
name: 'contoso.com'
user: 'test.user@testcompany.com'
ouPath: 'OU=testOU; DC=contoso; DC=com'
restart: true
options: 3
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/Microsoft.Compute/virtualMachines/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ param enableServerSideEncryption bool = false
@description('Optional. Specifies whether extension operations should be allowed on the virtual machine. This may only be set to False when no extensions are present on the virtual machine.')
param allowExtensionOperations bool = true

@description('Optional. Required if domainName is specified. Password of the user specified in domainJoinUser parameter.')
@description('Optional. Required if name is specified. Password of the user specified in user parameter.')
@secure()
param extensionDomainJoinPassword string = ''

Expand Down
22 changes: 11 additions & 11 deletions modules/Microsoft.Compute/virtualMachines/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ This module deploys one Virtual Machine with one or multiple nics and optionally
| `extensionDependencyAgentConfig` | object | `{object}` | | The configuration for the [Dependency Agent] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionDiskEncryptionConfig` | object | `{object}` | | The configuration for the [Disk Encryption] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionDomainJoinConfig` | object | `{object}` | | The configuration for the [Domain Join] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionDomainJoinPassword` | secureString | `''` | | Required if domainName is specified. Password of the user specified in domainJoinUser parameter. |
| `extensionDomainJoinPassword` | secureString | `''` | | Required if name is specified. Password of the user specified in user parameter. |
| `extensionDSCConfig` | object | `{object}` | | The configuration for the [Desired State Configuration] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionMonitoringAgentConfig` | object | `{object}` | | The configuration for the [Monitoring Agent] extension. Must at least contain the ["enabled": true] property to be executed. |
| `extensionNetworkWatcherAgentConfig` | object | `{object}` | | The configuration for the [Network Watcher Agent] extension. Must at least contain the ["enabled": true] property to be executed. |
Expand Down Expand Up @@ -496,11 +496,11 @@ configurationProfileAssignments: [
"value": {
"enabled": true,
"settings": {
"domainName": "contoso.com",
"domainJoinUser": "test.user@testcompany.com",
"domainJoinOU": "OU=testOU; DC=contoso; DC=com",
"domainJoinRestart": true,
"domainJoinOptions": 3
"name": "contoso.com",
"user": "test.user@testcompany.com",
"ouPath": "OU=testOU; DC=contoso; DC=com",
"restart": true,
"options": 3
}
}
},
Expand All @@ -522,11 +522,11 @@ configurationProfileAssignments: [
extensionDomainJoinConfig: {
enabled: true
settings: {
domainName: 'contoso.com'
domainJoinUser: 'test.user@testcompany.com'
domainJoinOU: 'OU=testOU; DC=contoso; DC=com'
domainJoinRestart: true
domainJoinOptions: 3
name: 'contoso.com'
user: 'test.user@testcompany.com'
ouPath: 'OU=testOU; DC=contoso; DC=com'
restart: true
options: 3
}
}
Expand Down

0 comments on commit 31dedb3

Please sign in to comment.