Skip to content

Commit

Permalink
fix(setup): Validate minimum number of characters for DigitalTwins na…
Browse files Browse the repository at this point in the history
…me (Azure#12842)
  • Loading branch information
azabbasi authored Jun 17, 2020
1 parent 9caad5f commit 3c6a978
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Install

### Install the latest Powershell 7

- Make sure you run the script using the latest stable version of [powershell 7](https://github.com/PowerShell/PowerShell/releases)

### Install the latest Azure CLI package

- If already installed, check latest version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ param(
[Parameter(Mandatory)]
[string] $SubscriptionId,

[Parameter()]
[Parameter(Mandatory)]
[ValidateLength(6, 64)]
[string] $DigitalTwinName,

[Parameter()]
[string] $AppRegistrationName
)

Function Connect-AzureSubscription()
Function Connect-AzureSubscription
{
# Ensure the user is logged in
try
Expand Down Expand Up @@ -52,11 +53,6 @@ Connect-AzureSubscription

$Region = $Region.Replace(' ', '')

if (-not $DigitalTwinName)
{
$DigitalTwinName = $ResourceGroup
}

if (-not $AppRegistrationName)
{
$AppRegistrationName = $ResourceGroup
Expand Down

0 comments on commit 3c6a978

Please sign in to comment.