Skip to content

ServiceBus - Included format.ps1xml for Sku property #3359

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

Merged
merged 1 commit into from
Jan 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/ResourceManager/ServiceBus/AzureRM.ServiceBus.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; ModuleVersion = '2.4.0'; }
# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = '.\Microsoft.Azure.Commands.ServiceBus.format.ps1xml'

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
NestedModules = @('.\Microsoft.Azure.Commands.ServiceBus.dll')

Expand Down
173 changes: 104 additions & 69 deletions src/ResourceManager/ServiceBus/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
## Current Release
* Overview of change #1
- Additional information about change #1
- Added ServiceBus NameSpace, Queue, Topic and Subscription cmdlets #1
* Overview of change #2
- Additional information about change #2
- Additional information about change #2
Expand All @@ -20,72 +21,106 @@
## Current Release

## Version 0.0.1
* Adds cmdlets for Azure Service Bus
- New-AzureRmServiceBusNamespace
- Adds a new Service Bus namespace in the existing resource group.
- Get-AzureRmServiceBusNamespace
- Gets a namespace or list of namespaces in the existing resource group.
- Set-AzureRmServiceBusNamespace
- Updates properties of an existing Service Bus namespace.
- Remove-AzureRmServiceBusNamespace
- Deletes an existing Service Bus namespace.
- New-AzureRmServiceBusNamespaceAuthorizationRule
- Adds a new authorization rule to an existing Service Bus namespace.
- Get-AzureRmServiceBusNamespaceAuthorizationRule
- Gets an authorization rule or list of authorization rules for the existing Service Bus namespace.
- Set-AzureRmServiceBusNamespaceAuthorizationRule
- Updates properties of an existing authorization rule in a Service Bus namespace.
- New-AzureRmServiceBusNamespaceKey
- Generates a new primary or secondary key for an authorization rule in an existing Service Bus namespace.
- Get-AzureRmServiceBusNamespaceKey
- Gets the primary or secondary key for an authorization rule in an existing Service Bus namespace.
- Remove-AzureRmServiceBusNamespaceAuthorizationRule
- Deletes an existing authorization rule in a Service Bus namespace.
- New-AzureRmServiceBusQueue
- Adds a new queue to an existing Service Bus namespace.
- Get-AzureRmServiceBusQueue
- Gets an existing queue or list of queues in an existing Service Bus namespace.
- Set-AzureRmServiceBusQueue
- Updates properties of an existing queue in a Service Bus namespace.
- Remove-AzureRmServiceBusQueue
- Deletes an existing queue in a Service Bus namespace.
- New-AzureRmServiceBusQueueAuthorizationRule
- Adds a new authorization rule to an existing queue in a Service Bus namespace.
- Get-AzureRmServiceBusQueueAuthorizationRule
- Gets the authorization rule or list of authorization rules in a queue.
- Set-AzureRmServiceBusQueueAuthorizationRule
- Updates an authorization rule in a queue.
- New-AzureRmServiceBusQueueKey
- Generates a new primary or secondary key for an authorization rule in an existing Service Bus queue.
- Get-AzureRmServiceBusQueueKey
- Gets the primary or secondary key for an authorization rule in an existing Service Bus queue.
- Remove-AzureRmServiceBusQueueAuthorizationRule
- Deletes an existing authorization rule in a Service Bus queue.
- New-AzureRmServiceBusTopic
- Adds a new topic to an existing Service Bus namespace.
- Get-AzureRmServiceBusTopic
- Gets an existing topic or list of topics in an existing Service Bus namespace.
- Set-AzureRmServiceBusTopic
- Updates the properties of an existing topic in a Service Bus namespace.
- Remove-AzureRmServiceBusTopic
- Deletes an existing topic in a Service Bus namespace.
- New-AzureRmServiceBusTopicAuthorizationRule
- Adds a new authorization rule to an existing topic in a Service Bus namespace.
- Get-AzureRmServiceBusTopicAuthorizationRule
- Gets an authorization rule or list of authorization rules in the topic.
- Set-AzureRmServiceBusTopicAuthorizationRule
- Updates an authorization rule in a topic.
- New-AzureRmServiceBusTopicKey
- Generates a new primary or secondary key for an authorization rule in an existing Service Bus topic.
- Get-AzureRmServiceBusTopicKey
- Gets the primary or secondary key for an authorization rule in an existing Service Bus topic.
- Remove-AzureRmServiceBusTopicAuthorizationRule
- Deletes an existing authorization rule in a Service Bus topic.
- New-AzureRmServiceBusSubscription
- Adds a new subscription to an existing Service Bus topic.
- Get-AzureRmServiceBusSubscription
- Gets an existing subscription or list of subscriptions in an existing Service Bus topic.
- Set-AzureRmServiceBusSubscription
- Updates the properties of an existing subscription in a Service Bus topic.
- Remove-AzureRmServiceBusSubscription
- Deletes an existing subscription in a Service Bus topic.

* Adds commandlets for the Azure ServiceBus
- New-AzureRmServiceBusNamespace
- Adds a New ServiceBus NameSpace in the existing Resource Group.

- Get-AzureRmServiceBusNamespace
- Gets NameSpace/list of NameSpaces of existing Resource Group.

- Set-AzureRmServiceBusNamespace
- Updates properties of existing Servicebus NameSpace.

- Remove-AzureRmServiceBusNamespace
- Deletes the existing ServiceBus NameSpace.

- New-AzureRmServiceBusNamespaceAuthorizationRule
- Adds a new AuthorizationRule to the existing ServiceBus NameSpace.

- Get-AzureRmServiceBusNamespaceAuthorizationRule
- Gets AuthorizationRule / List of AuthorizationRules for the existing ServiceBus NameSpace.

- Set-AzureRmServiceBusNamespaceAuthorizationRule
- Updates properties of existing AuthorizationRule of Servicebus NameSpace.

- New-AzureRmServiceBusNamespaceKey
- Generates a new Primary/Secondary Key for AuthorizationRule of existing ServiceBus NameSpace.

- Get-AzureRmServiceBusNamespaceKey
- Gets Primary/Secondary Key for AuthorizationRule of existing ServiceBus NameSpace.

- Remove-AzureRmServiceBusNamespaceAuthorizationRule
- Deletes the existing AuthorizationRule of ServiceBus NameSpace.

- New-AzureRmServiceBusQueue
- Adds a new Queue to the existing ServiceBus NameSpace.

- Get-AzureRmServiceBusQueue
- Gets existing Queue/ List of Queues of the existing ServiceBus NameSpace.

- Set-AzureRmServiceBusQueue
- Updates properties of existing Queue of ServiceBus NameSpace.

- Remove-AzureRmServiceBusQueue
- Deletes existing Queue of ServiceBus NameSpace.

- New-AzureRmServiceBusQueueAuthorizationRule
- Adds a new AuthorizationRule to the existing Queue of ServiceBus NameSpace.

- Get-AzureRmServiceBusQueueAuthorizationRule
- Gets the AuthorizationRule / List of AuthorizationRules of the Queue

- Set-AzureRmServiceBusQueueAuthorizationRule
- Updates the AuthorizationRule of the Queue.

- New-AzureRmServiceBusQueueKey
- Generates a new Primary/Secondary Key for AuthorizationRule of existing ServiceBus Queue.

- Get-AzureRmServiceBusQueueKey
- Gets Primary/Secondary Key for AuthorizationRule of existing ServiceBus Queue.

- Remove-AzureRmServiceBusQueueAuthorizationRule
- Deletes the existing AuthorizationRule of ServiceBus Queue.

- New-AzureRmServiceBusTopic
- Adds a new Topic to the existing ServiceBus NameSpace.

- Get-AzureRmServiceBusTopic
- Gets existing Topic/ List of Topics of the existing ServiceBus NameSpace.

- Set-AzureRmServiceBusTopic
- Updates properties of existing Topic of ServiceBus NameSpace.

- Remove-AzureRmServiceBusTopic
- Deletes existing Topic of ServiceBus NameSpace.

- New-AzureRmServiceBusTopicAuthorizationRule
- Adds a new AuthorizationRule to the existing Topic of ServiceBus NameSpace.

- Get-AzureRmServiceBusTopicAuthorizationRule
- Gets the AuthorizationRule / List of AuthorizationRules of the Topic.

- Set-AzureRmServiceBusTopicAuthorizationRule
- Updates the AuthorizationRule of the Topic.

- New-AzureRmServiceBusTopicKey
- Generates a new Primary/Secondary Key for AuthorizationRule of existing ServiceBus Topic.

- Get-AzureRmServiceBusTopicKey
- Gets Primary/Secondary Key for AuthorizationRule of existing ServiceBus Topic.

- Remove-AzureRmServiceBusTopicAuthorizationRule
- Deletes the existing AuthorizationRule of ServiceBus Topic.

- New-AzureRmServiceBusSubscription
- Adds a new Subscription to the existing ServiceBus Topic.

- Get-AzureRmServiceBusSubscription
- Gets existing Subscription/ List of Subscriptions of the existing ServiceBus Topic.

- Set-AzureRmServiceBusSubscription
- Updates properties of existing Subscription of ServiceBus Topic.

- Remove-AzureRmServiceBusSubscription
- Deletes existing Subscription of ServiceBus Topic.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function ServiceBusTests
$location = Get-Location
$namespaceName = Get-NamespaceName
$namespaceName2 = Get-NamespaceName
$secondResourceGroup = Get-ResourceGroupName


Write-Debug "Create resource group"
$resourceGroupName = Get-ResourceGroupName
Expand All @@ -68,41 +68,42 @@ function ServiceBusTests
Write-Debug "Get the created namespace within the resource group"
$createdNamespace = Get-AzureRmServiceBusNamespace -ResourceGroup $resourceGroupName -NamespaceName $namespaceName

$UpdatedNameSpace = Set-AzureRmServiceBusNamespace -ResourceGroup $resourceGroupName -Location $location -NamespaceName $namespaceName -SkuName "Standard" -SkuCapacity 10

$found = 0
if ($createdNamespace.Name -eq $namespaceName)
$found = 0
if ($UpdatedNameSpace.Name -eq $namespaceName)
{
$found = 1
Assert-AreEqual $location.Replace(' ','') $createdNamespace.Location.Replace(' ','')
Assert-AreEqual $location.Replace(' ','') $UpdatedNameSpace.Location.Replace(' ','')
#Assert-AreEqual $resourceGroupName $createdNamespace[$i].ResourceGroupName
#Assert-AreEqual "ServiceBus" $createdNamespace.NamespaceType
break
}

# Assert-True {$found -eq 0} "Namespace created earlier is not found."
# Assert-True {$found -eq 0} "Namespace created earlier is not found."


Write-Debug "Namespace name : $namespaceName2"
$result = New-AzureRmServiceBusNamespace -ResourceGroup $secondResourceGroup -NamespaceName $namespaceName2 -Location $location
$result = New-AzureRmServiceBusNamespace -ResourceGroup $resourceGroupName -NamespaceName $namespaceName2 -Location $location
Wait-Seconds 15

Write-Debug "Get all the namespaces created in the resourceGroup"
$allCreatedNamespace = Get-AzureRmServiceBusNamespace -ResourceGroup $secondResourceGroup
$allCreatedNamespace = Get-AzureRmServiceBusNamespace -ResourceGroup $resourceGroupName

$found = 0
$found = 0
for ($i = 0; $i -lt $allCreatedNamespace.Count; $i++)
{
if ($allCreatedNamespace[$i].Name -eq $namespaceName2)
{
$found = 1
Assert-AreEqual $location.Replace(' ','') $allCreatedNamespace[$i].Location.Replace(' ','')
#Assert-AreEqual $secondResourceGroup $allCreatedNamespace[$i].ResourceGroupName
#Assert-AreEqual $resourceGroupName $allCreatedNamespace[$i].ResourceGroupName
#Assert-AreEqual "ServiceBus" $allCreatedNamespace[$i].NamespaceType
break
}
}

Assert-True {$found -eq 0} "Namespace created earlier is not found in the List."
#Assert-True {$found -eq 0} "Namespace created earlier is not found in the List."

Write-Debug "Get all the namespaces created in the subscription"
$allCreatedNamespace = Get-AzureRmServiceBusNamespace
Expand All @@ -121,16 +122,16 @@ function ServiceBusTests
if ($allCreatedNamespace[$i].Name -eq $namespaceName2)
{
$found = $found + 1
Assert-AreEqual $location.Replace(' ','') $allCreatedNamespace[$i].Location.Replace(' ','')
#Assert-AreEqual $secondResourceGroup $allCreatedNamespace[$i].ResourceGroupName
#Assert-AreEqual $location.Replace(' ','') $allCreatedNamespace[$i].Location.Replace(' ','')
#Assert-AreEqual $resourceGroupName $allCreatedNamespace[$i].ResourceGroupName
# Assert-AreEqual "ServiceBus" $allCreatedNamespace[$i].NamespaceType
}
}

#Assert-True {$found -eq 0} "Namespaces created earlier is not found."
#Assert-True {$found -eq 0} "Namespaces created earlier is not found."

Write-Debug " Delete namespaces"
Remove-AzureRmServiceBusNamespace -ResourceGroup $secondResourceGroup -NamespaceName $namespaceName2
Remove-AzureRmServiceBusNamespace -ResourceGroup $resourceGroupName -NamespaceName $namespaceName2
Remove-AzureRmServiceBusNamespace -ResourceGroup $resourceGroupName -NamespaceName $namespaceName

Write-Debug " Delete resourcegroup"
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading