Code Monkey home page Code Monkey logo

ansible-playbooks's Introduction

page_type languages products description
sample
yaml
azure
Examples and best practices for building Ansible Playbooks for Azure

Travis CI

Ansible Playbooks for Azure

This repository contains examples and best practices for building Ansible Playbooks for Azure.

Prerequisites

  • Azure Account. If you don't have one, get a free one.

    To authenticate with Azure, generate service principal and expose them as environment variables or store them as a file.

  • Install Ansible

  • Install Azure dependencies package

    pip install ansible[azure]
  • Install azure_preview_modules role.

  • Install azure_preview_module role's dependencies packages.

    pip install -r ~/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt

How to run

To run samples in your local environment,

  • git clone https://github.com/Azure-Samples/ansible-playbooks.git
  • cd ansible-playbooks
  • modify playbook to replace variables with yours, such as resource group name.
  • add Azure credential info by using one of the following options.

First option, set the following environment variables:

AZURE_CLIENT_ID=<service_principal_client_id>
AZURE_SECRET=<service_principal_password>
AZURE_SUBSCRIPTION_ID=<azure_subscription_id>
AZURE_TENANT=<azure_tenant_id>

Second option, add the following content to the file $HOME/.azure/credentials:

[default]
subscription_id=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_id=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
secret=xxxxxxxxxxxxxxxxx
tenant=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Third option, do a az login:

az login
  • ansible-playbook sample.yml

You also could develop your Ansible playbook and run it in Visual Studio Code.

Using Azure cloud shell in Visual Studio Code

Azure cloud shell automatically logs you in your azure subscription so you need not to do anything extra other than login to cluod shell and run the ansible-playbook command with -e switch to provide resource_group_name variable value.

To be able to run Cloud Shell in Visual Studio Code, you will need to install Azure Account Extension in VS Code.

After installing the Azure Account extension, Login to cloud shell in VS code and clone this repository. Upload the Ansible Playbook you want to run to cloud drive and run the following command (replace yourusernameincloudshell with your username value). Make sure you also replace the playbook name and corrosponding variable name expected by playbook.

ansible-playbook /home/yourusernameincloudshell/create_virtualmachine_with_subnet_in_different_resource_group.yml -e "resource_group_name=ansible_test_rg"

How to Contribute

Please refer to Coding Guideline on how to contribute.

Resources

Ansible on Azure

Get Started with Azure

Ansible Playbook

Ansible role azure_preview_modules

Ansible Galaxy for example roles from the Ansible community for deploying many popular applications.

License

MIT License

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Test

Sample playbooks in this repository are tested via travis CI, please see detail CI plan.

ansible-playbooks's People

Contributors

ashishrajsrivastava avatar caohai avatar dd5ht avatar fred-sun avatar imjoseangel avatar jamezrin avatar kyliel avatar lukibahr avatar microsoftopensource avatar msftgits avatar nidr0x avatar pipatji avatar puicchan avatar richeney avatar supernova-eng avatar yungezz avatar yuwzho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-playbooks's Issues

Documentation not clear for create_virtualmachine_with_subnet_in_different_resource_group

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Try to use create_virtualmachine_with_subnet_in_different_resource_group sample

It's very unclear how it should be used and how to set up your Ansible environment so it runs correctly.
I figured out users should run Ansible on the VM that belongs to particular virtual network, and sample should create VM in the same VN. But it's not clear.

Any log messages given by the failure

no log

Expected/desired behavior

doc should be very clear about prerequisites

OS and Version?

Versions

2.7

Mention any other details that might be useful


Thanks! We'll be in touch soon.

playbook MySQLDatabaseCreate.yml failed

Please provide us with the following information:

the playbook failed with below error:

Still running (2 of 50): ansible-playbook ./MySQLDatabaseCreate.yml --extra-vars {"azure_subscription_id":[secure],"azure_tenant":[secure],"azure_client_id":[secure]}
The command ansible-playbook ./MySQLDatabaseCreate.yml --extra-vars {"azure_subscription_id":[secure],"azure_tenant":[secure],"azure_client_id":[secure]} exited with 2.
Log:
 [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
 [WARNING]: No inventory was parsed, only implicit localhost is available
 [WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Azure.azure_preview_modules : debug] *************************************
skipping: [localhost]
TASK [Create a resource group] *************************************************
changed: [localhost]
TASK [Create MySQL Server] *****************************************************
 [WARNING]: Azure API profile latest does not define an entry for
MySQLManagementClient
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating the MySQL Server instance: Azure Error: InvalidEditionSloCombination\nMessage: The edition Basic does not support the service objective MYSQLB50"}
	to retry, use: --limit @/home/travis/build/Azure-Samples/ansible-playbooks/MySQLDatabaseCreate.retry
PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=1   

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

The generalize setting does not generalize the VM, it only marks it as generalized to the platform

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Use ansible-playbooks/SIG_generalized_image/01a-create-generalized-image.yml and the VM will be marked as generalized in Azure, but hasn't actually been generalized.

Any log messages given by the failure

N/A

Expected/desired behavior

There should be something in the sample that runs waagent -deprovision+user to deprovision\generalize the VM before marking the VM as generalized. You could also just have a prerequisite that you will need a VM that has already been generalized and skip creating the VM in this playbook.

OS and Version?

Linux

Versions

N/A

Mention any other details that might be useful


Thanks! We'll be in touch soon.

CI doesn't pick up samples located in subdirectories

All the samples located in subdirectories are ignored.
I suggest that CI should read a file with list of samples that should be tested, as just scanning for "yml" files may be not ideal solution.
Some yml files may be nor exactly samples.
In case of some tests (these in subdirectories), samples should be executed in particular sentence.

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run tests
check if any sample from subdirectory was run

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Ansible playbook error vm_create_windows.yml

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

edited playbook with resource group name as Ansible then run playbook vm_create_windows.yml in ansible

Any log messages given by the failure

TASK [create Azure virtual network in resource group] **************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'Ansible' is undefined\n\nThe error appears to be in '/var/lib/awx/projects/_14__azure_infrastructure_test/vm_create_windows.yml': line 33, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: create Azure virtual network in resource group\n ^ here\n"}

Expected/desired behavior

success creation of virtual network

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
ansible is on linux, linked azure to ansible and was to create a windows server 2016 in azure

Versions

Ansible 2.8

Mention any other details that might be useful

adding existing resource group fails, creating new resource group also fails


Thanks! We'll be in touch soon.

CI doesn't delete resource group

CI didn't pass resource group name to the test.
Also, CI doesn't delete resource group after tests are completed.
This may result in excessive number of resources being left after testing.
Function "delete_resource_group" doesn't exist.

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Just run tests, and see resources created in the subscription

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Playbook vm_create_existingvnet_deployjavaapp.yml fails to complete (two tasks fail)

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Configure Ansible on macos, Linux, or cloudshell. (I tested macos and cloud shell)
  2. Run vm_create_existingvnet_deployjavaapp.yml with ansible-playbook
  3. FAILURE #1 at task "name: wait for the WinRM port to come online" with a time out
  4. Comment out task "name: wait for the WinRM port to come online" to try to continue (cause the ip is present)
  5. Fails at task "name: build sample app" with below error.
    TASK [build sample app] *************************************************************************************************
    fatal: [localhost]: FAILED! => {"changed": true, "cmd": "mvn package", "delta": "0:00:00.007666", "end": "2020-03-01 22:50:05.508385", "msg": "non-zero return code", "rc": 127, "start": "2020-03-01 22:50:05.500719", "stderr": "/bin/sh: mvn: command not found", "stderr_lines": ["/bin/sh: mvn: command not found"], "stdout": "", "stdout_lines": []}

Any log messages given by the failure

Expected/desired behavior

Playbook vm_create_existingvnet_deployjavaapp.yml runs without errors.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
macos Catalina, and Cloud Shell

Versions

Ansible 2.9.5 (latest)

Mention any other details that might be useful


Thanks! We'll be in touch soon.

postsql sample failed

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting

Minimal steps to reproduce

Any log messages given by the failure

https://travis-ci.org/Azure-Samples/ansible-playbooks/jobs/430340484

TASK [Create PostgreSQL Server] ************************************************
 [WARNING]: Azure API profile latest does not define an entry for
PostgreSQLManagementClient
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating the PostgreSQL Server instance: Azure Error: ProvisioningDisabled\nMessage: Gen4 hardware is not supported for this region."}
	to retry, use: --limit @/home/travis/build/Azure-Samples/ansible-playbooks/ansible-playbooks/postgresql_create.retry
PLAY RECAP *********************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=1   

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

webapp.yml fails at TASK [Create App Service on Linux with Java Runtime]

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Install ansible locally, in cloud shell, or using the Ansible VM
  2. Verify ansible is running correctly by creating a resource group, etc.
  3. download the webapp.yml from the repo and run with ansible-playbook webapp.yml
    FIRST ERROR
    Variable 'resource_group_name' is not defined--> fixed (this is a bug)
    SECOND ERROR
  4. Define resource_group_name: "ansible-test-rg"
  5. Fails at step "TASK [Create App Service on Linux with Java Runtime] "

Any log messages given by the failure

WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
[DEPRECATION WARNING]: azure_rm_webapp_facts is kept for backwards compatibility but usage is discouraged. The module documentation details page may
explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: azure_rm_trafficmanagerprofile_facts is kept for backwards compatibility but usage is discouraged. The module documentation
details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.

PLAY [localhost] ************************************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************************
ok: [localhost]

TASK [Create resource group] ************************************************************************************************************************
changed: [localhost]

TASK [Create resource group for app service plan] ***************************************************************************************************
changed: [localhost]

TASK [Create App Service Plan] **********************************************************************************************************************
[WARNING]: The value 1 (type int) in a string field was converted to '1' (type string). If this does not look like what you expect, quote the entire
value to ensure it does not change.
changed: [localhost]

TASK [Create a Linux web app with Java framework and Tomcat] ****************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: azure.mgmt.web.models.default_error_response_py3.DefaultErrorResponseException: Operation returned an invalid status code 'Conflict'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "/Users/robcamer/.ansible/tmp/ansible-tmp-1583114293.997421-20084909233583/AnsiballZ_azure_rm_webapp.py", line 102, in \n _ansiballz_main()\n File "/Users/robcamer/.ansible/tmp/ansible-tmp-1583114293.997421-20084909233583/AnsiballZ_azure_rm_webapp.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/Users/robcamer/.ansible/tmp/ansible-tmp-1583114293.997421-20084909233583/AnsiballZ_azure_rm_webapp.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.cloud.azure.azure_rm_webapp', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/var/folders/7q/f0fk9fl96zs84r2qhy3xtybm0000gn/T/ansible_azure_rm_webapp_payload_08qtfwsh/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 1070, in \n File "/var/folders/7q/f0fk9fl96zs84r2qhy3xtybm0000gn/T/ansible_azure_rm_webapp_payload_08qtfwsh/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 1066, in main\n File "/var/folders/7q/f0fk9fl96zs84r2qhy3xtybm0000gn/T/ansible_azure_rm_webapp_payload_08qtfwsh/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 548, in init\n File "/var/folders/7q/f0fk9fl96zs84r2qhy3xtybm0000gn/T/ansible_azure_rm_webapp_payload_08qtfwsh/ansible_azure_rm_webapp_payload.zip/ansible/module_utils/azure_rm_common.py", line 348, in init\n File "/var/folders/7q/f0fk9fl96zs84r2qhy3xtybm0000gn/T/ansible_azure_rm_webapp_payload_08qtfwsh/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 762, in exec_module\n File "/var/folders/7q/f0fk9fl96zs84r2qhy3xtybm0000gn/T/ansible_azure_rm_webapp_payload_08qtfwsh/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 851, in create_update_webapp\n File "/usr/local/lib/python3.7/site-packages/azure/mgmt/web/operations/web_apps_operations.py", line 332, in create_or_update\n **operation_config\n File "/usr/local/lib/python3.7/site-packages/azure/mgmt/web/operations/web_apps_operations.py", line 280, in _create_or_update_initial\n raise models.DefaultErrorResponseException(self._deserialize, response)\nazure.mgmt.web.models.default_error_response_py3.DefaultErrorResponseException: Operation returned an invalid status code 'Conflict'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

PLAY RECAP ******************************************************************************************************************************************
localhost : ok=4 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Expected/desired behavior

All tasks complete.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
macOs - Catalina, cloud shell, and Ansible VM in Azure Marketplace

Versions

ansible 2.9.5 "latest"

Mention any other details that might be useful

Here's the run in cloudshell:
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
[DEPRECATION WARNING]: azure_rm_webapp_facts is kept for backwards compatibility but usage is discouraged. The module documentation
details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: azure_rm_trafficmanagerprofile_facts is kept for backwards compatibility but usage is discouraged. The module
documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [localhost] *********************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************
ok: [localhost]

TASK [Create resource group] *********************************************************************************************************
ok: [localhost]

TASK [Create resource group for app service plan] ************************************************************************************
ok: [localhost]

TASK [Create App Service Plan] *******************************************************************************************************
[WARNING]: The value 1 (type int) in a string field was converted to u'1' (type string). If this does not look like what you expect,
quote the entire value to ensure it does not change.
ok: [localhost]

TASK [Create a Linux web app with Java framework and Tomcat] *************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: azure.mgmt.web.models.default_error_response.DefaultErrorResponseException: Operation returned an invalid status code 'Conflict'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "/home/rob/.ansible/tmp/ansible-tmp-1583115073.05-62974939462357/AnsiballZ_azure_rm_webapp.py", line 102, in \n _ansiballz_main()\n File "/home/rob/.ansible/tmp/ansible-tmp-1583115073.05-62974939462357/AnsiballZ_azure_rm_webapp.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/home/rob/.ansible/tmp/ansible-tmp-1583115073.05-62974939462357/AnsiballZ_azure_rm_webapp.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.cloud.azure.azure_rm_webapp', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib/python2.7/runpy.py", line 188, in run_module\n fname, loader, pkg_name)\n File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File "/usr/lib/python2.7/runpy.py", line 72, in _run_code\n exec code in run_globals\n File "/tmp/ansible_azure_rm_webapp_payload_jpoQtw/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 1070, in \n File "/tmp/ansible_azure_rm_webapp_payload_jpoQtw/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 1066, in main\n File "/tmp/ansible_azure_rm_webapp_payload_jpoQtw/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 548, in init\n File "/tmp/ansible_azure_rm_webapp_payload_jpoQtw/ansible_azure_rm_webapp_payload.zip/ansible/module_utils/azure_rm_common.py", line 348, in init\n File "/tmp/ansible_azure_rm_webapp_payload_jpoQtw/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 762, in exec_module\n File "/tmp/ansible_azure_rm_webapp_payload_jpoQtw/ansible_azure_rm_webapp_payload.zip/ansible/modules/cloud/azure/azure_rm_webapp.py", line 851, in create_update_webapp\n File "/opt/ansible/lib/python2.7/site-packages/azure/mgmt/web/operations/web_apps_operations.py", line 332, in create_or_update\n **operation_config\n File "/opt/ansible/lib/python2.7/site-packages/azure/mgmt/web/operations/web_apps_operations.py", line 280, in _create_or_update_initial\n raise models.DefaultErrorResponseException(self._deserialize, response)\nazure.mgmt.web.models.default_error_response.DefaultErrorResponseException: Operation returned an invalid status code 'Conflict'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

PLAY RECAP ***************************************************************************************************************************
localhost : ok=4 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0


Thanks! We'll be in touch soon.

Unable to create azure service principal using ansible

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Below ansible file I have used to create service principal and setting the password. I am getting error


  • hosts: localhost
    connection: local
    vars:
    azure_app_id: "123456"
    tasks:
    • name: Generate password
      set_fact:
      password: "{{ azure_app_id | password_hash('sha512') }}"
      tenant_id: "{{ lookup('env', 'AZURE_TENANT') }}"
      azure_client_id: "{{ lookup('env', 'AZURE_CLIENT_ID') }}"

      • name: Create app Service Principal
        azure.azcollection.azure_rm_adserviceprincipal:
        app_id: "{{ azure_app_id }}"
        state: present
        tenant: "{{ tenant_id }}"
        register: azure_output
        environment:
        AZURE_SUBSCRIPTION_ID: "{{ subscription_id }}"

      • name: Set SPN password
        azure.azcollection.azure_rm_adpassword:
        app_id: "{{ azure_app_id }}"
        service_principal_object_id: "{{ azure_output.object_id }}"
        state: present
        value: "{{ password }}"
        environment:
        AZURE_SUBSCRIPTION_ID: "{{ subscription_id }}"

      • debug:
        var: azure_output

Any log messages given by the failure

Command to execute -
ansible-playbook test.yml --extra-vars "subscription_id=<subscription_id>"

The full traceback is:
File "/tmp/ansible_azure.azcollection.azure_rm_adserviceprincipal_payload_jo7iajtw/ansible_azure.azcollection.azure_rm_adserviceprincipal_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_adserviceprincipal.py", line 153, in create_resource
File "/home/ubuntu/.local/lib/python3.8/site-packages/azure/graphrbac/operations/service_principals_operations.py", line 87, in create
raise models.GraphErrorException(self._deserialize, response)
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"ad_user": null,
"adfs_authority_url": null,
"api_profile": "latest",
"app_id": "123456",
"app_role_assignment_required": null,
"auth_source": "auto",
"cert_validation_mode": null,
"client_id": null,
"cloud_environment": "AzureCloud",
"password": null,
"profile": null,
"secret": null,
"state": "present",
"subscription_id": null,
"tenant": ""
}
},
"msg": "Error creating service principle, app id 123456 - Access Token missing or malformed."
}

Expected/desired behavior

Service principal should gets created

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Ubuntu

Release: 20.04
Codename: focal

Versions

ansible 2.9.6
python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]

Mention any other details that might be useful


Thanks! We'll be in touch soon.

playbook KeyVualtCreate.yml failed to run

Please provide us with the following information:

keyvaultCreate.yml failed with error:

 [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
 [WARNING]: No inventory was parsed, only implicit localhost is available
 [WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Azure.azure_preview_modules : debug] *************************************
skipping: [localhost]
TASK [Create a resource group] *************************************************
changed: [localhost]
TASK [Create instance of Key Vault] ********************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "state is present but all of the following are missing: vault_tenant"}
	to retry, use: --limit @/home/travis/build/Azure-Samples/ansible-playbooks/KeyVaultCreate.retry
PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=1   
/home/travis/.travis/job_stages: line 169:  4859 Terminated              travis_jigger $! $timeout $cmd
test ./KeyVaultCreate.yml failed

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting

Minimal steps to reproduce

run the playbook

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

ACICreatewithACR.yml failed because of no package docker-py

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting

Minimal steps to reproduce

Any log messages given by the failure

TASK [Login docker registry] ***************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import docker-py - No module named docker. Try `pip install docker-py`"}
	to retry, use: --limit @/home/travis/build/Azure-Samples/ansible-playbooks/ACIcreatewithACR.retry

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

keyvault_create.yml: azure_preview_modules reports Ansible version < 2.5.0, when version is 2.10.9

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

On an Ubuntu 18.04 Docker container with Ansible v2.10.9 installed:

  1. Run: ansible-galaxy install azure.azure_preview_modules
  2. Run: pip3 install -r ~/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt
  3. Run ansible-playbook -vvvvv keyvault_create.yml.
    Observe output:
TASK [azure.azure_preview_modules : debug] *********************************************************************************************************************task path: /root/.ansible/roles/azure.azure_preview_modules/tasks/main.yml:7
ok: [localhost] => {
    "msg": [
        "Your Ansible version is lower than 2.5.0",
        "You may need to perform additional steps to install this roles:",
        "  sudo pip install -r /root/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "or",
        "  pip install --user -r /root/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "depending on your ansible setup."
    ]
}
  1. Run command: ansible --version :
ansible 2.10.9
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0]

Any log messages given by the failure

TASK [azure.azure_preview_modules : debug] *********************************************************************************************************************task path: /root/.ansible/roles/azure.azure_preview_modules/tasks/main.yml:7
ok: [localhost] => {
    "msg": [
        "Your Ansible version is lower than 2.5.0",
        "You may need to perform additional steps to install this roles:",
        "  sudo pip install -r /root/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "or",
        "  pip install --user -r /root/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt",
        "depending on your ansible setup."
    ]
}

Expected/desired behavior

If Ansible version >= 2.5.0, then message "Your Ansible version is lower than 2.5.0" should not be outputted.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Linux Ubuntu

Versions

18.04

Mention any other details that might be useful

Azure/azure_preview_modules#389


Thanks! We'll be in touch soon.

playbook PostgreSQLDatabaseCreate.yml failed

Please provide us with the following information:

error is:

Still running (2 of 50): ansible-playbook ./PostgreSQLDatabaseCreate.yml --extra-vars {"azure_subscription_id":[secure],"azure_tenant":[secure],"azure_client_id":[secure]}
The command ansible-playbook ./PostgreSQLDatabaseCreate.yml --extra-vars {"azure_subscription_id":[secure],"azure_tenant":[secure],"azure_client_id":[secure]} exited with 2.
Log:
 [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
 [WARNING]: No inventory was parsed, only implicit localhost is available
 [WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Azure.azure_preview_modules : debug] *************************************
skipping: [localhost]
TASK [Create a resource group] *************************************************
changed: [localhost]
TASK [Create PostgreSQL Server] ************************************************
 [WARNING]: Azure API profile latest does not define an entry for
PostgreSQLManagementClient
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating the PostgreSQL Server instance: Azure Error: InvalidEditionSloCombination\nMessage: The edition Basic does not support the service objective PGSQLS100"}
	to retry, use: --limit @/home/travis/build/Azure-Samples/ansible-playbooks/PostgreSQLDatabaseCreate.retry
PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=1   

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

VMCreateSSH.yml is giving subscription not valid error

This issue is for a: (mark with an x)

  • [ x] bug report -> please search issues before submitting

Minimal steps to reproduce

I have the credentials saved in the ~/.azure/credentials . Using "cloud_environment=AzureUSGovernment"
ansible-playbook VMCreateSSH.yml

Any log messages given by the failure

± |master ✗| → ansible-playbook VMCreateSSH.yml
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [Create Azure VM] *********************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************
ok: [localhost]

TASK [Create a resource group] *************************************************************************************************************
ok: [localhost]

TASK [Create virtual network] **************************************************************************************************************
ok: [localhost]

TASK [Add subnet] **************************************************************************************************************************
ok: [localhost]

TASK [Create public IP address] ************************************************************************************************************
ok: [localhost]

TASK [Create Network Security Group that allows SSH] ***************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating/updating security group testvm - Azure Error: SubscriptionNotFound\nMessage: The subscription 'xxxx-xxxx-xxxxx-xxxx-xxxx' could not be found."}
to retry, use: --limit @/Users/tanvirahmed/Ansible/ansible-playbooks/VMCreateSSH.retry

PLAY RECAP *********************************************************************************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=1

Expected/desired behavior

Playbook to run without any subscription error since it ran just fine for the previous three tasks.

OS and Version?

macOS High Sierra

Versions

Ansible 2.5.1
Python 2.7.10

Mention any other details that might be useful

Missing example for creating a specialized image version with azure_rm_galleryimageversion using storage_profile

I really would appreciate an example how to create a specialized image version with Ansible. I'm trying that since two days without any success - but with Azure CLI it works.

This is essentially my ansible declaration:

    - name: Create a gallery image version form a managed image                              |~
      azure_rm_galleryimageversion:
        resource_group: "{{ resource_group }}"
        gallery_name: "{{ image_gallery }}"
        gallery_image_name: "{{ image_name }}"
        name: "{{ image_version }}"
        location: "{{ location }}"
        publishing_profile:
          end_of_life_date: ""
          exclude_from_latest: no
          replica_count: 2
          storage_account_type: Standard_LRS
          target_regions:
            - name: "{{ location }}"
              regional_replica_count: 1
        storage_profile:
          source_image: "/subscriptions/{{ subscription }}/resourceGroups/{{ resource_group }}/providers/Microsoft.Compute/virtualMachines/{{ vm }}"

Especially the following error message is not helpful:

Error creating the GalleryImageVersion instance: Azure Error: InvalidParameter
Message: The gallery artifact version source can only be specified either directly under storageProfile or within individual OS or data disks. One and only one source type (user image, snapshot, disk, virtual machine) can be provided.
Target: galleryImageVersion.properties.storageProfile.source.id

And the documentation on that does not help at all:

Message: The gallery artifact version source can only be specified either directly under storageProfile or within individual OS or data disks. One and only one source type (user image, snapshot, disk, virtual machine) can be provided.
Cause: The source ID is missing.
Workaround: Ensure that the source ID of the source is present.

The examples on that are outdated, because they're using "managed_image" which is depricated.

CreateVM_ExistingVNET_DeployJavaApp.yml failed for wait port 22 timeout

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting

Minimal steps to reproduce

Any log messages given by the failure

TASK [wait for the WinRM port to come online] **********************************
fatal: [localhost]: FAILED! => {"changed": false, "elapsed": 600, "msg": "Timeout when waiting for 10.0.1.4:22"}
	to retry, use: --limit @/home/travis/build/Azure-Samples/ansible-playbooks/CreateVM_ExistingVNET_DeployJavaApp.retry

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

SQLCreate.yml failed because of resource already exists

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting

Minimal steps to reproduce

Any log messages given by the failure

TASK [Create SQL Server] *******************************************************
 [WARNING]: Azure API profile latest does not define an entry for
SqlManagementClient
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating the SQL Server instance: Azure Error: NameAlreadyExists\nMessage: The name 'sqlansible001' already exists. Choose a different name."}
	to retry, use: --limit @/home/travis/build/Azure-Samples/ansible-playbooks/SQLCreate.retry

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Unsupported framework dotnetcore for Windows web app.

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run this playboook

- name: Create Azure VM
  hosts: localhost
  connection: local
  vars:
    resource_group: "{{ lookup('env', 'RES_GROUP') }}"
    webapp_name: "{{ lookup('env', 'WEB_APP_NAME') }}"
    location: eastus
  tasks:
    - name: Create a resource group
      azure_rm_resourcegroup:
        name: "{{ resource_group }}"
        location: "{{ location }}"
    - name: Create a dotnetcore WebApp
      azure_rm_webapp:
        resource_group: "{{ resource_group }}"
        name: "{{ webapp_name }}"
        plan:
          resource_group: "{{ resource_group }}"
          name: myappplan
          is_linux: false
          sku: S1
          number_of_workers: 1
        frameworks:
          - name: "dotnetcore"
            version: "2.1"

Any log messages given by the failure

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported framework dotnetcore for Windows web app."}

Expected/desired behavior

Create the app service (this version is available via azure portal)

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Container azure-cli + Mac Osx

Versions

Latest, Mojave

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Notice some azure module azure_rm_servicebus_info_module when private end point on resource enable, ansible module not working

PLease correct me if i am wrong , noticed azure_rm_servicebus_info_module when private end point enabled on resource(Azure service bus) , module is not working and giving below error . but same module works for other azure service bus where Private end point option is not enabled.

{
"module_stdout": "",
"module_stderr": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 107, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', init_globals=dict(_module_fqn='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', _modlib_path=modlib_path),\n File "/usr/lib64/python3.9/runpy.py", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 582, in \n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 578, in main\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 435, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/module_utils/azure_rm_common.py", line 473, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1521, in exit_json\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1514, in _return_formatted\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 931, in remove_values\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 470, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpointConnection'>, {'additional_properties': {'location': 'japaneast'}, 'id': '/subscriptions/*********/resourceGroups/-01/providers/Microsoft.ServiceBus/namespaces/mfcsbusjpcompreprodjpe01/privateEndpointConnections/e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'name': 'e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'type': 'Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections', 'system_data': None, 'private_endpoint': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpoint object at 0x7f46500b61f0>, 'private_link_service_connection_state': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.ConnectionState object at 0x7f46500b6400>, 'provisioning_state': 'Succeeded'}\n",
"exception": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 107, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', init_globals=dict(_module_fqn='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', _modlib_path=modlib_path),\n File "/usr/lib64/python3.9/runpy.py", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 582, in \n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 578, in main\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 435, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/module_utils/azure_rm_common.py", line 473, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1521, in exit_json\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1514, in _return_formatted\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 931, in remove_values\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 470, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpointConnection'>, {'additional_properties': {'location': 'japaneast'}, 'id': '/subscriptions/*/resourceGroups/-01/providers/Microsoft.ServiceBus/namespaces/mfcsbusjpcompreprodjpe01/privateEndpointConnections/e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'name': 'e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'type': 'Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections', 'system_data': None, 'private_endpoint': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpoint object at 0x7f46500b61f0>, 'private_link_service_connection_state': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.ConnectionState object at 0x7f46500b6400>, 'provisioning_state': 'Succeeded'}\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1,
"_ansible_no_log": null,
"changed": false
}

azure app service or webapp issues

azure app service or webapp issues:
using existing Azure webapp or app service modules we can only create new ones , but we cant change the configs of existing webapp or app services.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.