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

Deployment fails on azure.de germanycentral #92

Open
Rainer-Kempkes opened this issue Feb 3, 2017 · 6 comments
Open

Deployment fails on azure.de germanycentral #92

Rainer-Kempkes opened this issue Feb 3, 2017 · 6 comments

Comments

@Rainer-Kempkes
Copy link

Because of data privacy and legal issues we have to deploy to azure.de in Germany. Therefore I copied the content of the azuredeploy.json into a template deployment container and deployed it.
I had to kick out the application_insights ressource and its dependencies because it is not available in germany. That was no prob.
But then I ran into an error at the SAS_URI_Generator with Status "BAD_REQUEST":
{ "error": { "code": "InvalidContentLink", "message": "Unable to download deployment content from 'https://mc-n7okzt7dyzw66cb3dzxesxh2no.azurewebsites.net/Deployment/GenerateSASToken?parameters=key=nF8GESkTgKgwm4T9bLX6J7c1HLNX94jLfuD1MCxfAqTP2scde60hW2Ibq0ZnZ+JHbpBCE36hx/ol5qCfyjHKXQ==;trainer_size=Standard_D1_v2'. The tracking Id is '18ffadeb-bd71-4625-83d0-fbe82abc126b'. Please see https://aka.ms/arm-deploy for usage details." } }

Do you know what might have gone wrong?
regards,
Rainer

@Rainer-Kempkes
Copy link
Author

the related ressource in the azuredeploy.json would be:
{ "apiVersion": "2015-01-01", "name": "SAS_Uri_Generator", "type": "Microsoft.Resources/deployments", "dependsOn": [ "Microsoft.Resources/deployments/Management_Center" ], "properties": { "mode": "incremental", "templateLink": { "uri": "[concat(reference('Microsoft.Resources/deployments/Management_Center').outputs.url.value, '/Deployment/GenerateSASToken?parameters=key=', reference('Microsoft.Resources/deployments/Storage').outputs.userStorageAccountKey.value, ';trainer_size=', parameters('online Trainer VM Size'))]" } } },

@Rainer-Kempkes
Copy link
Author

I think I found the bug.
In the file "WebEmptyTemplate.json" in the outputs-section you create a URL ending with ".net":

"value": "[concat('https://', variables('siteName'), '.azurewebsites.net')]"

whereas in German Azure the correct suffix would be ".de".

I will try to avoid this by editing the main JSON template and put the text of the WebEmptyTemplate into the main template. Hope this helps...

regards,
Rainer

@eisber
Copy link
Collaborator

eisber commented Feb 3, 2017 via email

@eisber
Copy link
Collaborator

eisber commented Feb 3, 2017 via email

@Rainer-Kempkes
Copy link
Author

Hi Markus,

I am still struggling with the deployment on azure.de, but I will change the main deploy.json and make a pull request after I've found the solution.

But prior to that I have some questions about customizing my existing deployment on azure.com. For a proof of concept I need to do some changes in the configuration.

  1. Where and how can I customize
    a) the context features? Or is the only way to change the posted JSON? Is there a consistency check if
    a context feature changes?
    b) the action features? MWT has to know the amount of actions to chose randomly and to learn from...
    c) actions? define action features?
  1. model extraction: I extracted the current model vom blob storage, but it contained many hex values and I couldn't read it. Which format is it?

  2. Moving to a productive environment: which actions would you advise to harden the system? The trainer f.e. is running on http, are there any intrusion detection tools running etc.?

Cheers,
Rainer

@eisber
Copy link
Collaborator

eisber commented Feb 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants