Skip to content
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

Unable to update custom headers and Expected Status code range #7329

Closed
gursin opened this issue Sep 21, 2018 · 6 comments
Closed

Unable to update custom headers and Expected Status code range #7329

gursin opened this issue Sep 21, 2018 · 6 comments
Assignees
Labels
Network - Traffic Manager Service Attention This issue is responsible by Azure service team.

Comments

@gursin
Copy link

gursin commented Sep 21, 2018

Describe the bug
I am trying to change the custom headers and expected status code range for the monitoring setting for my ATM through azure cloud shell and i get the following error:
Set-AzureRmTrafficManagerProfile : Endpoint name '' is invalid. Endpoint names cannot be empty or all whitespace, and must be up to 260 alphanumeric characters long. The type '' specified for endpoint '' is invalid. Valid endpoint types are: 'Microsoft.Network/trafficManagerProfiles/azureEndpoints', 'Microsoft.Network/trafficManagerProfiles/externalEndpoints', 'Microsoft.Network/trafficManagerProfiles/nestedEndpoints'.
I am following the samples mentioned in the following articles:
https://docs.microsoft.com/en-us/powershell/module/azurerm.trafficmanager/add-azurermtrafficmanagerexpectedstatuscoderange?view=azurermps-6.8.1
To Reproduce
Try the first example mentioned in the following article.
https://docs.microsoft.com/en-us/powershell/module/azurerm.trafficmanager/add-azurermtrafficmanagerexpectedstatuscoderange?view=azurermps-6.8.1
Note : Update an existing traffic manager which already has an endpoint.
Expected behavior
I should be able to update the custom headers and expected status codes
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
using Azure Cloud shell(powershell)
PS Azure:> az --version
azure-cli (2.0.45)
acr (2.1.4)
acs (2.3.2)
advisor (0.6.0)
ams (0.2.3)
appservice (0.2.3)
backup (1.2.1)
batch (3.3.3)
batchai (0.4.2)
billing (0.2.0)
botservice (0.1.0)
cdn (0.1.1)
cloud (2.1.0)
cognitiveservices (0.2.1)
command-modules-nspkg (2.0.2)
configure (2.0.18)
consumption (0.4.0)
container (0.3.3)
core (2.0.45)
cosmosdb (0.2.1)
dla (0.2.2)
dls (0.1.1)
dms (0.1.0)
eventgrid (0.2.0)
eventhubs (0.2.3)
extension (0.2.1)
feedback (2.1.4)
find (0.2.12)
interactive (0.3.28)
iot (0.3.1)
iotcentral (0.1.1)
keyvault (2.2.2)
lab (0.1.1)
maps (0.3.2)
monitor (0.2.3)
network (2.2.4)
nspkg (3.0.3)
policyinsights (0.1.0)
profile (2.1.1)
rdbms (0.3.1)
redis (0.3.2)
relay (0.1.1)
reservations (0.3.2)
resource (2.1.3)
role (2.1.4)
search (0.1.1)
servicebus (0.2.2)
servicefabric (0.1.2)
sql (2.1.3)
storage (2.2.1)
telemetry (1.0.0)
vm (2.2.2
Additional context
Idea is to be able to update custom headers and expected status codes of an existing endpoint

@cormacpayne
Copy link
Member

@gursin would you mind providing the versions of the AzureRM modules you have on your machine? You can do so by running Get-Module -Name AzureRM* -ListAvailable

@gursin87
Copy link

gursin87 commented Sep 21, 2018

@cormacpayne : Apologies. But i am running this from the Azure Cloud Shell from the azure portal. Running this on the cloud shell doesn't list any modules.

image

Just to add to that, had tried it locally from my machine earlier and got the same result. The version of the TrafficManager module was the following

image

@cormacpayne
Copy link
Member

@gursin ah, got it. Cloud Shell has the Az modules installed, so you would have to change AzureRM* to Az* if you wanted to list the modules on there, but it's currently shipping with version 0.1.0. Let me loop in the contacts we have for Traffic Manager to take a look.

@cormacpayne
Copy link
Member

@allencal would you mind taking a look at this issue?

@ttlcgl
Copy link

ttlcgl commented Sep 25, 2018

We have identified the issue, and we are currently working on the fix.
You can still use the previous version of Powershell client to try Custom Headers and Status Codes. If you need to use MultiValue or Subnet routing types, the portal will be the option for now.

We will update here once the issue has been fixed.

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
@ttlcgl
Copy link

ttlcgl commented Oct 1, 2018

@gursin @cormacpayne @allencal this issue has been fixed with the latest version. Please follow the steps below to upgrade your version:

  1. Installing with no previous bits
    Install-Module -Name AzureRM.TrafficManager -Repository PSGallery -Force

  2. Updating from previously installed bits
    Update-Module -Name AzureRM.TrafficManager

Closing the issue now, please let us know if you still have trouble with the package.

Thanks,
Mehmet.

@ttlcgl ttlcgl closed this as completed Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Network - Traffic Manager Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

6 participants